[MAGNOLIA-4369] Deletion of content under activation makes activation fail Created: 11/Apr/12 Updated: 15/Mar/21 Resolved: 15/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | activation, workflow |
| Affects Version/s: | 4.4.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jan Haderka | Assignee: | Unassigned |
| Resolution: | Outdated | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Description |
|
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) |