Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
while writing tests for jackalope-jackrabbit, i stumbled over a problem with commiting a whole transaction of operations. when we remove a node, then add one with the same name, then remove it again and commit that all in one jsop, it only works if the node manipulated is not a direct child of the root node.
in php this looks like this:
$node = $session->getNode("/test");
$node->remove();
$node = $this->rootNode->addNode(test, 'nt:unstructured');
$node->remove();
$session->save();
and our storage layer records all those operations and sends the corresponding jsop. it works fine if instead of /test i do this on /my/test
this might be related with JCR-3279 as there the problem also affects only top level nodes.