Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9546

Node.getReferences() not working for moved referenceable node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.40.0
    • None
    • jcr
    • None

    Description

      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()
      5. movedNode.getSession().refresh(false)
      6. movedNode.getReferences()

      In case after 2. there is an additional 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: