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