jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (Created) (JIRA) <j...@apache.org>
Subject [jira] [Created] (OAK-47) Wrong results and NPE with copy operation
Date Thu, 05 Apr 2012 10:11:23 GMT
Wrong results and NPE with copy operation
-----------------------------------------

                 Key: OAK-47
                 URL: https://issues.apache.org/jira/browse/OAK-47
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: mk
            Reporter: Michael Dürig


The following code either results in an NPE or in a wrong result depending on which Microkernel
instance is used. 

{code}
    mk.commit("", "+\"/root\":{}", mk.getHeadRevision(), "");
    mk.commit("", "+\"/root/N0\":{}*\"/root/N0\":\"/root/N1\"+\"/root/N0/N4\":{}",
            mk.getHeadRevision(), "");
{code}

The wrong result is 
{code}
{
    ":childNodeCount": 2,
    "N0": {
        ":childNodeCount": 1,
        "N4": {
            ":childNodeCount": 0
        }
    },
    "N1": {
        ":childNodeCount": 1,
        "N4": {
            ":childNodeCount": 0
        }
    }
}
{code}

The expected result is
{code}
{
    ":childNodeCount": 2,
    "N0": {
        ":childNodeCount": 1,
        "N4": {
            ":childNodeCount": 0
        }
    },
    "N1": {
        ":childNodeCount": 0
    }
}
{code}

simple:fs:target/temp: wrong result
fs:{homeDir}/target: NPE
http-bridge:fs:{homeDir}/target: NPE
simple: wrong result



--
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