jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Created] (OAK-85) NPE and wrong result on copy operation
Date Fri, 04 May 2012 14:38:49 GMT
Michael Dürig created OAK-85:
--------------------------------

             Summary: NPE and wrong result on copy operation
                 Key: OAK-85
                 URL: https://issues.apache.org/jira/browse/OAK-85
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: mk
    Affects Versions: 0.1
            Reporter: Michael Dürig


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

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

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

results in (relative to /root)

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

instead of
{code}
{
    ":childNodeCount": 1,
    "N4": {
        ":childNodeCount": 0,
        "N5": {
            ":childNodeCount": 0
            }
        }
    }
}
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message