-
Bug
-
Resolution: Done
-
Critical
-
2.6.0.Final, 2.7.0.Final, 2.8.0.Final
-
None
-
None
2 nodes are created, node 1 & 2. Then node 1 is set to reference node 2, and vice versa. Then the session is saved. Afterwards, node 1 is retrieved by it's uuid, all references to node 1 are searched and each reference (the 1 reference from node 2 to node 1) is removed. After this, node 1 is removed and the session is saved.
If this is done, the test runs successfully.
If we create a 3rd node at the very beginning, but avoid creating references from/to this node, we get a javax.jcr.ReferentialIntegrityException.
Even if we create the 3rd node, but don't create a reference from node 2 to 1, the problem also can not be reproduced.