jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-596) Microkernel.diff returns empty diff when there are differences
Date Wed, 30 Jan 2013 12:59:12 GMT

    [ https://issues.apache.org/jira/browse/OAK-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13566437#comment-13566437
] 

Michael Dürig commented on OAK-596:
-----------------------------------

Committed a test case at revision r1440380
                
> Microkernel.diff returns empty diff when there are differences
> --------------------------------------------------------------
>
>                 Key: OAK-596
>                 URL: https://issues.apache.org/jira/browse/OAK-596
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mongomk
>            Reporter: Michael Dürig
>
> {code}
> String rev1 = mk.commit("/", "+\"node1\":{\"node2\":{\"prop1\":\"val1\",\"prop2\":\"val2\"}}",
null, null);
> String rev2 = mk.commit("/", "^\"node1/node2/prop1\":\"val1 new\" ^\"node1/node2/prop2\":null",
null, null);
> String diff = mk.diff(rev1, rev2, "/node1/node2", 0);
> {code}
> Here {{diff}} is empty although there are clearly differences between {{rev1}} and {{rev2}}
at depth 0.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message