-
Bug
-
Resolution: Done
-
Major
-
3.7.1.Final
-
None
When i remove a version it throws javax.jcr.ReferentialIntegrityException: org.modeshape.jcr.cache.ReferentialIntegrityException.
I notice the version to removed is not the baseVersion, and its references are just processors and successors(I display them in the log). More log details: https://community.jboss.org/thread/236517
After I dig code found code in WritableSessionCache(For example remove Node A's version V1):
if (entry != null)
When exception occures: The reference is the node A itself and the "doc" that will be removed is node "nt:version". But I'm sure A's base version is not V1?
Is there any situation that node A still reference V1 which is not base version?
When I add this line code before above code, it works fine, of cause I'm sure the deleted versions are not base version:
if(workspaceCache.getNode(removedKey).getPrimaryType(this).compareTo(JcrNtLexicon.VERSION)==0)
{ continue; }- is related to
-
MODE-2156 Setting the same value for a reference property multiple times, increases the referrer count each time
- Resolved