Uploaded image for project: 'Content Types'
  1. Content Types
  2. MGNLCT-84

Git clone operation may register app definition before ct definition and thus break the app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • None
    • None

    Description

      Environment:

      • Magnolia CLI: 3.0.4 (node.js: v8.14.0)
      • git version 2.17.1
      • Ubuntu 18.04 bionic
      • Kernel: x86_64 Linux 4.15.0-42-generic
      • Magnolia 6.0 CE demo

      Tested with for example: 

      https://git.magnolia-cms.com/users/mdrapela/repos/test1-app/browse

       

      When git-cloning a light module (which creates a CT-based content app) from a repository to a magnolia.resources.dir, the order in which the git clone operation fetches the resources may impede the correct registration of an app defined in the light module.

      From the log:

      Both yaml resources are registered (and seen correctly in the Definitions app), but the app doesn't know about the CT definition.

       

      After adding the test1-app an applauncher group, refreshing the view, the tile will show up in the app group, but with a wrong icon and - more importantly - after clicking the app to open it, an error will be thrown:

      2018-12-20 10:28:15,664 INFO info.magnolia.module.ModuleManagerImpl : Stopping module ui-admincentral
      2018-12-20 10:28:15,684 INFO info.magnolia.module.ModuleManagerImpl : Starting module ui-admincentral 
      2018-12-20 10:28:22,732 WARN info.magnolia.ui.framework.app.AppControllerImpl : No default location could be found for the 'test1-app' app, please check subapp configuration. 
      2018-12-20 10:28:22,734 ERROR agnolia.ui.framework.app.AppInstanceControllerImpl: App test1-app failed to start: type java.lang.NullPointerException: type
      

      A temporary fix

      Touch the app's definition file (test1-app.yaml) after cloning the light module, so that it gets re-registered. Then the app starts working:

       

       

       

       

       

       

       

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mdrapela Martin Drápela
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD