Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4369

Deletion of content under activation makes activation fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Outdated
    • Icon: Neutral Neutral
    • None
    • 4.4.5
    • activation, workflow
    • None

      when content is scheduled for activation in the future and is deleted in the mean time, scheduled (de)activation should be canceled or at the very least fail gracefully. Currently it ends with stacktrace similar to below and whether workflow is terminated or not depends only on the workflow itself.

      2012-03-27 10:58:04,994 ERROR info.magnolia.cms.core.DefaultContent             : Failed to get handle: af5a5c41-3bc4-433d-bb0d-8c05187b1db3: the item does not exist anymore
      javax.jcr.InvalidItemStateException: af5a5c41-3bc4-433d-bb0d-8c05187b1db3: the item does not exist anymore
      	at org.apache.jackrabbit.core.ItemImpl.sanityCheck(ItemImpl.java:142)
      	at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:1304)
      	at info.magnolia.cms.core.DefaultContent.getHandle(DefaultContent.java:359)
      	at info.magnolia.cms.core.DefaultContent.newNodeDataInstance(DefaultContent.java:215)
      	at info.magnolia.cms.core.AbstractContent.getNodeData(AbstractContent.java:127)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore.deserializeExpressionAsXml(JCRExpressionStore.java:280)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore.access$100(JCRExpressionStore.java:79)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:357)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:366)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:366)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:366)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:366)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:366)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:366)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:366)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.fetchNext(JCRExpressionStore.java:360)
      	at info.magnolia.module.workflow.jcr.JCRExpressionStore$StoreIterator.next(JCRExpressionStore.java:383)
      	at openwfe.org.engine.impl.expool.SimpleExpressionPool.reschedule(SimpleExpressionPool.java:1318)
      	at openwfe.org.engine.impl.expool.SimpleExpressionPool.trigger(SimpleExpressionPool.java:1393)
      	at openwfe.org.time.Scheduler$Entry.trigger(Scheduler.java:490)
      	at openwfe.org.time.Scheduler.wakeup(Scheduler.java:461)
      	at openwfe.org.time.Scheduler$SchedulerThread.run(Scheduler.java:577)
      

        Acceptance criteria

              Unassigned Unassigned
              had Jan Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD