You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "David Buchmann (JIRA)" <ji...@apache.org> on 2013/01/31 12:41:13 UTC
[jira] [Created] (JCR-3508) add and remove top level node in one
jsop fails
David Buchmann created JCR-3508:
-----------------------------------
Summary: add and remove top level node in one jsop fails
Key: JCR-3508
URL: https://issues.apache.org/jira/browse/JCR-3508
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-spi2jcr
Reporter: David Buchmann
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira