Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7225

Mapping: preserve order of principal names

    XMLWordPrintableJSON

    Details

    • Flags:
      Patch

      Description

      while using the new service mapping definition with principal names, I noticed that it might be better to preserve the order of the principal names as defined in the mapping. In particular if the repository login picks one of the configured names for the the javax.jcr.Session.getUserID().

      Therefore I would like to propose to slightly change the implementation of Mapping.extractPrincipalNames to use a LinkedHashSet.

      Karl Pauls, would you mind reviewing the atttached patch and apply it? Thanks a lot!

      cc: Lars Krapf

        Attachments

        1. mapping.patch
          1 kB
          Angela Schreiber

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: