inconsistent session state after Item/Session.save() throwing ReferentialIntegrityException -------------------------------------------------------------------------------------------
Key: JCR-288 URL: http://issues.apache.org/jira/browse/JCR-288 Project: Jackrabbit Type: Bug Components: core Environment: svn r354756 Reporter: Stefan Guggisberg Assigned to: Stefan Guggisberg Fix For: 1.0 issue reported by [EMAIL PROTECTED] 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira