You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Mete Atamel (JIRA)" <ji...@apache.org> on 2013/01/30 15:27:12 UTC

[jira] [Resolved] (OAK-596) Microkernel.diff returns empty diff when there are differences

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

Mete Atamel resolved OAK-596.
-----------------------------

    Resolution: Fixed

Fixed in rev 1440430
                
> 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