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 "Marcel Reutegger (Jira)" <ji...@apache.org> on 2019/10/10 14:25:01 UTC

[jira] [Comment Edited] (OAK-8691) Incorrect base state from node builder

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

Marcel Reutegger edited comment on OAK-8691 at 10/10/19 2:24 PM:
-----------------------------------------------------------------

Added tests, one of them ignored, which reproduces the issue: http://svn.apache.org/r1868247


was (Author: mreutegg):
Added tests, one of the ignored, which reproduces the issue: http://svn.apache.org/r1868247

> Incorrect base state from node builder
> --------------------------------------
>
>                 Key: OAK-8691
>                 URL: https://issues.apache.org/jira/browse/OAK-8691
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: documentmk
>    Affects Versions: 1.18.0
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Major
>
> The following sequence will give an incorrect base state:
> {noformat}
> NodeState s1 = ...;
> NodeBuilder b1 = s1.builder();
> b1.child("foo");
> NodeState s2 = b1.getNodeState();
> NodeBuilder b2 = s2.builder();
> NodeState base = b2.getBaseState();
> {noformat}
> The NodeState {{base}} should reflect {{s2}}, but instead is equal to {{s1}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)