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

Konrad Windszus commented on OAK-9546:
--------------------------------------

Right, but the references are retrieved at the end (step 5, so always after the 
save!) so still ReferenceEditor is a good guess I think.

> Node.getReferences() not working for moved referenceable node
> -------------------------------------------------------------
>
>                 Key: OAK-9546
>                 URL: https://issues.apache.org/jira/browse/OAK-9546
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 1.40.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> The references for a moved referenceable node are not returned via 
> {{MovedReferenceableNode.getReferences()}}.
> This works find for non-moved referenceable node.
> With Jackrabbit 2 references of moved nodes work fine.
> This can only be triggered with the following sequence of JCR API calls
> 1. create referenceable node
> 2. move node
> 3. create reference to moved node
> 4. {{Session.save()}}
> In case after 2. there is an additional 4. {{Session.save()}} the reference 
> is correctly detected. So somehow the reference search index is not properly 
> updated when the referenceable node was moved and referenced in the same 
> transient session.



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

Reply via email to