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

Too eager refreshing of tree permissions in SecureNodeBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0, 1.8.0
    • core

    Description

      SecureNodeBuilder.baseChanged() calls SecureNodeBuilder.getTreePermission() even though the tree permission would be calculated lazily as needed anyway. Re-calculating the tree permissions at this point bears the risk of accessing stale data from the underlying not yet fully refreshed root (when being called e.g. from MutableRoot.refresh().

      I would thus argue for removing the call to SecureNodeBuilder.getTreePermission() from SecureNodeBuilder.baseChanged().

      See also OAK-5296 for an in-depth analysis.

      Attachments

        1. OAK-5355.patch
          33 kB
          Angela Schreiber
        2. OAK-5355-1.patch
          32 kB
          Angela Schreiber

        Issue Links

          Activity

            People

              angela Angela Schreiber
              mduerig Michael Dürig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: