Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-85

NPE and wrong result on copy operation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1
    • 0.3
    • mk
    • None

    Description

      mk.commit("", "+\"/root\":{}", null, null);
      mk.commit("", "+\"/root/N4\":{} *\"/root/N4\":\"/root/N4/N5\"", null, null);
      

      results in a NPE. Doing all operations separately instead gives the wrong result:

      mk.commit("", "+\"/root\":{}", null, null);
      mk.commit("", "+\"/root/N4\":{}", null, null);
      mk.commit("", "*\"/root/N4\":\"/root/N4/N5\"", null, null);
      

      results in (relative to /root)

      {
          ":childNodeCount": 1,
          "N4": {
              ":childNodeCount": 1,
              "N5": {
                  ":childNodeCount": 1,
                  "N5": {
                      ":childNodeCount": 0
                  }
              }
          }
      }
      

      instead of

      {
          ":childNodeCount": 1,
          "N4": {
              ":childNodeCount": 0,
              "N5": {
                  ":childNodeCount": 0
                  }
              }
          }
      }
      

      Attachments

        Activity

          People

            stefan@jira Stefan Guggisberg
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: