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

removing source parent node after session move throws on save

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • JCR API
    • None

    Description

      the following code fragment illustrates the problem:

      /**

      • create the following node tree:
      • + A
      • + B
      • + C
      • + D
        */
        Node A;
        if (root.hasNode("A")) { A = root.getNode("A"); }

        else

        { A = root.addNode("A"); }

        Node B = A.addNode("B");
        Node C = B.addNode("C");
        Node D = A.addNode("D");
        root.save();

      // move C under D
      session.move("/A/B/C", "/A/D/C");
      // remove B
      A.getNode("B").remove();
      /**

      • the expected resulting node tree:
      • + A
      • + D
      • + C
        */
        A.save();

      ==> the last save() will throw
      javax.jcr.RepositoryException: inconsistency: failed to retrieve transient state for ...

      Attachments

        Activity

          People

            stefan@jira Stefan Guggisberg
            stefan@jira Stefan Guggisberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: