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

Unable to save session after saving a renamed node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1
    • 1.3.3
    • jackrabbit-core
    • None

    Description

      TransientRepository repo = new TransientRepository(
      "applications/test/repository.xml", "applications/test");
      Session s = repo.login(new SimpleCredentials("test", "".toCharArray()));

      if (s.getRootNode().hasNode("parent"))

      { s.getRootNode().getNode("parent").remove(); s.save(); }

      // create parent node
      Node parent = s.getRootNode().addNode("parent");

      // create node to rename
      parent.addNode("newnode");
      s.save();

      // rename node
      s.move("/parent/newnode", "/parent/renamedNewNode");

      // save renamed node
      s.getRootNode().getNode("parent/renamedNewNode").save();

      // try to save session --> FAILS
      s.save();

      s.logout();

      Attachments

        Activity

          People

            stefan@jira Stefan Guggisberg
            edgarpoce Edgar Ruben Poce
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: