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

Add variant of PermissionUtil.getReadOnlyTree that never returns null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • core, security
    • None

    Description

      the current implementation of PermissionUtil.getReadOnlyTree may have a null tree passed and will in this case return null, which is not suited for those parts of the permission evaluation where the Tree cannot be null and a non-null return-value is therefore expected.

      stillalex, i would therefore suggest to rename the existing method to getReadOnlyTreeOrNull and add a variant that never returns null. see attached patch.

      Attachments

        1. OAK-8270.patch
          8 kB
          Angela Schreiber

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: