You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "Michael Dürig (Created JIRA)" <ji...@apache.org> on 2012/04/05 12:11:23 UTC
[jira] [Created] (OAK-47) Wrong results and NPE with copy operation
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
[jira] [Resolved] (OAK-47) Wrong results and NPE with copy
operation
Posted by "Stefan Guggisberg (Resolved) (JIRA)" <ji...@apache.org>.
[ 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