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

DeclaredMembershipPredicate contains redundant lookup of groupTree

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.14.0
    • core, security
    • None

    Description

      line 52 in DeclaredMembershipPredicate retrieves the groupTree again instead of using the value of the lookup obtained earlier. While fixing this i additionally noticed that the contentIds obtained on the same line could be filtered for non-null values. this improvement would allow to consequently drop the extra check for null in the apply method.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: