[
https://issues.apache.org/jira/browse/JCR-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859513#action_12859513
]
Tobias Bocanegra commented on JCR-2602:
---------------------------------------
Are you sure that version is not referenced by a versionable node ?
> Removal of first version throws javax.jcr.ReferentialIntegrityException
> -----------------------------------------------------------------------
>
> Key: JCR-2602
> URL: https://issues.apache.org/jira/browse/JCR-2602
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: versioning
> Affects Versions: 2.0.0
> Reporter: Dirk Feufel
>
> A ReferentialIntegrityException occurs when I delete the first version
> succeeding the root version. Deleting other versions works fine. Here is the
> stack:
> javax.jcr.ReferentialIntegrityException: Unable to remove version. At least
> once referenced.
> at
> org.apache.jackrabbit.core.version.InternalVersionHistoryImpl.removeVersion(InternalVersionHistoryImpl.java:379)
> at
> org.apache.jackrabbit.core.version.InternalVersionManagerBase.internalRemoveVersion(InternalVersionManagerBase.java:684)
> at
> org.apache.jackrabbit.core.version.InternalVersionManagerImpl$5.run(InternalVersionManagerImpl.java:495)
> at
> org.apache.jackrabbit.core.version.InternalVersionManagerImpl$DynamicESCFactory.doSourced(InternalVersionManagerImpl.java:760)
> at
> org.apache.jackrabbit.core.version.InternalVersionManagerImpl.removeVersion(InternalVersionManagerImpl.java:493)
> at
> org.apache.jackrabbit.core.version.InternalXAVersionManager.removeVersion(InternalXAVersionManager.java:264)
> at
> org.apache.jackrabbit.core.version.VersionHistoryImpl.removeVersion(VersionHistoryImpl.java:253)
> The code is simple:
> VersionHistory vh =
> session.getWorkspace().getVersionManager().getVersionHistory(path);
> vh.removeVersion(version); // where version is the first version succeeding
> the root version
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.