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

Tree view of Configuration app & Pages app get out of sync due to asynchronous delete action

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 5.3
    • 5.3
    • app framework, content app
    • None

      Tree view of configuration app get out of sync when deleting an element.
      To reproduce:
      Go to config app, create a new folder at the root level, click the delete action, confirm:

      • The deleted folder is still visible
      • When refreshing the tree, we got the following error
      • Then no more actions are available

      In fact the browser presenter still refers to the deleted folder and try to refresh the action availability on a deleted item.

      javax.jcr.ItemNotFoundException: e50188c4-0179-4062-8e6f-1916566ceda1
      	at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:384)
      	at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:328)
      	at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:622)
      	at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:536)
      	at org.apache.jackrabbit.core.SessionImpl.getNodeByIdentifier(SessionImpl.java:1102)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNodeByIdentifier(DelegateSessionWrapper.java:182)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNodeByIdentifier(DelegateSessionWrapper.java:182)
      	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNodeByIdentifier(ContentDecoratorSessionWrapper.java:129)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNodeByIdentifier(DelegateSessionWrapper.java:182)
      	at info.magnolia.jcr.wrapper.NodeWrappingDelegateSessionWrapper.getNodeByIdentifier(NodeWrappingDelegateSessionWrapper.java:58)
      	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNodeByIdentifier(DelegateSessionWrapper.java:182)
      	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNodeByIdentifier(ContentDecoratorSessionWrapper.java:129)
      	at info.magnolia.jcr.util.SessionUtil.getNodeByIdentifier(SessionUtil.java:129)
      	at info.magnolia.ui.framework.availability.shorthandrules.IsRootItemAllowedRule.isRoot(IsRootItemAllowedRule.java:62)
      	at info.magnolia.ui.framework.availability.shorthandrules.IsRootItemAllowedRule.isAvailableForItem(IsRootItemAllowedRule.java:83)
      ....
      2014-05-09 09:05:35,492 WARN  info.magnolia.event.SimpleEventBus                : Exception caught when dispatching a class info.magnolia.ui.workbench.event.SelectionChangedEvent event with class info.magnolia.ui.contentapp.browser.BrowserSubApp$1 eventHandler.
      java.lang.NullPointerException
      	at info.magnolia.ui.framework.availability.shorthandrules.IsRootItemAllowedRule.isRoot(IsRootItemAllowedRule.java:64)
      	at info.magnolia.ui.framework.availability.shorthandrules.IsRootItemAllowedRule.isAvailableForItem(IsRootItemAllowedRule.java:83)
      	at info.magnolia.ui.api.availability.AbstractAvailabilityRule.isAvailable(AbstractAvailabilityRule.java:53)
      	at info.magnolia.ui.framework.availability.AvailabilityCheckerImpl.isAvailable(AvailabilityCheckerImpl.java:94)
      	at info.magnolia.ui.contentapp.browser.BrowserSubApp.isSectionVisible(BrowserSubApp.java:330)
      	at info.magnolia.ui.contentapp.browser.BrowserSubApp.getVisibleSection(BrowserSubApp.java:323)
      	at info.magnolia.ui.contentapp.browser.BrowserSubApp.updateActionbar(BrowserSubApp.java:294)
      

        Acceptance criteria

              ehechinger Eric Hechinger
              ehechinger Eric Hechinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD