Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3156

Group#getMembers may list inherited members multiple times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2, 2.3
    • 2.3.4
    • jackrabbit-core, security
    • None

    Description

      i just happen to detect the following regression that seems to be introduces quite a while ago:

      Group#getMembers is defined to return all group members including those inherited by another group being member of that group.

      Example:
      User t
      Group a : t is declared member
      Group b : t is declared member
      Group c : a, b are declared members

      The expected result of Group.getMembers was: a, b and t.

      What is currently happening is that t is included twice in the returned iterator.
      Quickly testing on jackrabbit 2.0 revealed that this used to work before...

      I didn't carefully check when that bug has been introduced but the the refactoring of the membership
      collections seems to be a possible culprit.

      Attachments

        1. JCR-3156.patch
          2 kB
          Angela Schreiber

        Activity

          People

            mduerig Michael Dürig
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: