[ https://issues.apache.org/jira/browse/OAK-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg resolved OAK-85. ---------------------------------- Resolution: Fixed Fix Version/s: 0.3 fixed in svn r1334040 > 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 > Assignee: Stefan Guggisberg > Fix For: 0.3 > > > {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