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

NullPointerException When Moving Transient node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.8, 1.40.0
    • None
    • core
    • None

    Description

      When a node is moved in a uncommitted Session1 (S), that was previously moved in a closed/committed Session0 (S'), any transient children nodes that are moved throw NPEs in the node memory manager tracking the uncommitted state.

       

      Steps to reproduce:

      1. Start Sling docker container
        1. ` docker run -p 8080:8080 apache/sling`
      2. Install demo project 
      3. Disable administrative login security, or create a rule for the servlet.
      4. Navigate to the Demo servlet

       

      The servlet will catch the NPE and display it. The error occurs here. `base` is not null, but `head` is.

      It seems that the `base` look up finds the segment metadata from Session0 (S') that has been dispatched (before the current session was created), and not recognizing that the parent is now a transient node in Session1 (S).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bstopp Bryan Stopp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: