Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
5.0-milestone-2
-
None
-
Unknown
-
Description
The user API identifies the guest user from its stored name without regard to case: the document UserReferenceResolver<String> (and so GroupManager#getMembers) returns GuestUserReference for XWiki.xwikiguest, XWikiRightService#isGuest uses equalsIgnoreCase, and the registration rejects any case variant of XWikiGuest. The authorization bridge only recognizes the exact XWikiGuest page name, so a different case is handled as a regular user:
- XWikiSecurityRule: the users of a rights object (a rule stored for XWiki.xwikiguest doesn't apply to the guest user)
- XWikiCachingRightService (3 places): the user passed to the old rights API
- DefaultContextualAuthorizationManager: the content author of a document
- DefaultSecurityEntryReader: the creator of a document
STEPS TO REPRODUCE:
- Add a rights object to a page denying view to the user XWiki.xwikiguest
- View the page as guest
EXPECTED RESULTS:
- The page can't be viewed, the same way as with XWiki.XWikiGuest
ACTUAL RESULTS:
- The rule is ignored for the guest user
(Derived from the code of XWikiSecurityRule, not reproduced on a running instance.)
The authorization bridge should recognize the guest user the same way as the user API.
Attachments
Issue Links
- relates to
-
XWIKI-26251 The user DocumentReference resolver resolves the XWikiGuest user to a document reference instead of null
-
- Open
-
-
XWIKI-25739 The guest user can be returned as a member of a group
-
- Closed
-