Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3508

add and remove top level node in one jsop fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • jackrabbit-spi2jcr
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dbu David Buchmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: