jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-47) Wrong results and NPE with copy operation
Date Thu, 05 Apr 2012 20:22:24 GMT

     [ https://issues.apache.org/jira/browse/OAK-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Guggisberg resolved OAK-47.
----------------------------------

    Resolution: Fixed

fixed in svn r1310044
                
> 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