Details
-
Bug
-
Resolution: Fixed
-
Minor
-
10.8-rc-1
-
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
- Create a group Foo.MyGroup and add an XWiki.XWikiGroups object with the member value JohnDoe
- 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
- relates to
-
XWIKI-25739 The guest user can be returned as a member of a group
-
- Closed
-