[
http://jira.magnolia-cms.com/browse/MGNLWORKFLOW-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Antener updated MGNLWORKFLOW-18:
----------------------------------------
Attachment: JCRExpressionStoreCleanupTest.java
patch.diff
Attached test case and patch.
There is a problem with the use of
org.apache.jackrabbit.commons.iterator.FilteringNodeIterator in
info.magnolia.module.workflow.jcr.JCRExpressionStore#deleteAndRemoveEmptyParents
The check on size()==0 cannot work because the implementation of this filtering
node iterator always returns -1. It is explained in
javax.jcr.RangeIterator#getSize
Cheers
Andy
> Empty nodes of finished workflow still exist (Expressions workspace)
> --------------------------------------------------------------------
>
> Key: MGNLWORKFLOW-18
> URL: http://jira.magnolia-cms.com/browse/MGNLWORKFLOW-18
> Project: Magnolia Workflow Module
> Issue Type: Bug
> Environment: Magnolia EE 4.5.6, Tomcat 7, Java 6, OS X
> Reporter: Andreas Antener
> Priority: Minor
> Fix For: 1.0 Alpha2 s011
>
> Attachments: expressions.txt, JCRExpressionStoreCleanupTest.java,
> libs.txt, magnolia-debug.log, patch.diff
>
>
> The nodes in the "Expressions" workspace won't get deleted after a finished
> workflow.
> Steps to reproduce:
> - Start Magnolia (public and author) with workflow module, no repositories yet
> - Login with superuser
> - Create a page
> - Activate that page
> - Go to inbox and proceed with the activation
> - Check the Expressions workspace under /owfe/activation
> There I have 2 empty nodes now.
> See attachments for debug-log, libs and listing from JCR query.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------