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

Let ACE.getPrincipal return principals obtained from PrincipalManager

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: core, security
    • Labels:
      None

      Description

      Alex Deparvu, while AccessControlEntry.getPrincipal does not mandate the that principal is actually obtained from PrincipalManager it turned out that some UI code actually relies on that implementation detail.

      we could still reduce the number of queries resulting from looking up principals by name, by making sure we don't read the same principal multiple times, while computing the entries for a given access control list. that might be somewhat of a compromise to reduce the number of lookups while returning the same principals as we did before optimizing the lookup in OAK-7880.

        Attachments

        1. OAK-8151.patch
          7 kB
          Angela Schreiber

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: