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

DeclaredMembershipPredicate contains redundant lookup of groupTree

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: core, security
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: