Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
svn r354756
Description
issue reported by Tomasz.Dabrowski@cognifide.com on jackrabbit dev list.
code fragment to reproduce issue:
// setup test case
Node parent = root.addNode("a", "nt:unstructured");
Node child1 = parent.addNode("b", "nt:unstructured");
child1.addMixin("mix:referenceable");
Node child2 = parent.addNode("c", "nt:unstructured");
child2.setProperty("ref", child1);
root.save();
// perform test
try {
child1.remove();
parent.save();
} catch (ReferentialIntegrityException rie) {
// expected since child1 is still being referenced by property "ref" of child2
}
parent.remove(); // ==> should succeed but throws ItemNotFoundException
Attachments
Attachments
Issue Links
- relates to
-
JCR-2503 inconsistent session and persistent state after ReferentialIntegrityException
- Closed