-
Bug
-
Resolution: Fixed
-
Major
-
3.5
-
None
In some case, the purge process produce the following exception (see below) and fails.
Moreover, the notification mail is not sent, so the user gets no feedback.
The user should at least be notified that something went wrong.
I was able to produce this issue twice with this scenario:
- I was using the demo (template CMSWEB) with the default data of the template.
- Config the app with the following settings:
- purge automatique
- période : 1
- heure: 02:00
- versions purgées après 3
- garder les dernières versions validées 1
Here is the stack trace.
2013-04-30 02:00:00,104 ERROR [org.ametys.cms.workflow.purge.PurgeContentsEngine] (PurgeContentsEngine;) An error occurred purging the contents. org.ametys.plugins.repository.AmetysRepositoryException: Error purging the content defaultWebContent://1f5746e5-e623-4854-b670-71cd155f2c29 at org.ametys.cms.workflow.purge.PurgeVersionsManager.purgeContent(PurgeVersionsManager.java:88) at org.ametys.cms.workflow.purge.PurgeContentsEngine.purgeContents(PurgeContentsEngine.java:281) at org.ametys.cms.workflow.purge.PurgeContentsEngine.run(PurgeContentsEngine.java:207) at java.lang.Thread.run(Unknown Source) Caused by: javax.jcr.ReferentialIntegrityException: Unable to remove version. At least once referenced. at org.apache.jackrabbit.core.version.InternalVersionHistoryImpl.removeVersion(InternalVersionHistoryImpl.java:412) at org.apache.jackrabbit.core.version.InternalVersionManagerBase.internalRemoveVersion(InternalVersionManagerBase.java:779) at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$5.run(InternalVersionManagerImpl.java:439) at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$DynamicESCFactory.doSourced(InternalVersionManagerImpl.java:724) at org.apache.jackrabbit.core.version.InternalVersionManagerImpl.removeVersion(InternalVersionManagerImpl.java:437) at org.apache.jackrabbit.core.version.InternalXAVersionManager.removeVersion(InternalXAVersionManager.java:251) at org.apache.jackrabbit.core.version.VersionHistoryImpl.removeVersion(VersionHistoryImpl.java:262) at org.ametys.cms.workflow.purge.PurgeVersionsManager.purgeContent(PurgeVersionsManager.java:144) at org.ametys.cms.workflow.purge.PurgeVersionsManager.purgeContent(PurgeVersionsManager.java:81)