Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5071

Closing sub app in M5 mode throws error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Neutral
    • None
    • 6.0
    • None
    • None

    Description

      Happens only on M5 mode (reachable e.g. via http://contexPath/.magnolia/admincentral-m5) and when clicking on save button, whereas closing the subapp via tab icon works fine.
      Can be reproduced on any content app, e.g. contacts.

      A quick debug session showed that at info.magnolia.ui.framework.app.AppInstanceControllerImpl#stopSubAppInstance the instanceId argument didn't match any subapp, hence subAppDetails.context throwing NPE

      private void stopSubAppInstance(String instanceId) {
       SubAppDetails subAppDetails = subApps.get(instanceId);
      ...
       sendSubAppLifecycleEvent(subAppDetails.context, SubAppLifecycleEvent.Type.STOPPED);
      

      The issue was revealed by info.magnolia.integrationtests.uitest.ItemSelectionUITest#verifyContactIsSelectedAfterCreation which has been temporarily ignored (oddly enough on Jenkins the test didn't fail consistently though). Once the issue is resolved, please re-enable the test.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD