Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-26248

Group members stored as a page name alone are resolved in the group's space

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 19.0.0-rc-1
    • 10.8-rc-1
    • User
    • None
    • Unknown
    • N/A
    • N/A

    Description

      A member stored as a page name alone in a group located outside the XWiki space is resolved by GroupManager#getMembers in the space of the group instead of the XWiki space, where users and groups are stored by default.

      Steps to reproduce

      1. Create a group Foo.MyGroup and add an XWiki.XWikiGroups object with the member value JohnDoe
      2. Call $services.user.group.getMembers($groupReference, false)

      Expected: XWiki.JohnDoe, consistent with getGroups and isMember for XWiki.JohnDoe, which include Foo.MyGroup
      Actual: Foo.JohnDoe

      Also, in non-recursive mode, an empty member value is returned as the group itself.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: