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

User and Group resolver should handle guest user

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The following code:

      private DocumentReferenceResolver<String> userAndGroupReferenceResolver
          = Utils.getComponent(DocumentReferenceResolver.TYPE_STRING, "user");
      return userAndGroupReferenceResolver.resolve(null, wikiReference);
      

      will return the reference <default wiki>:XWiki.<default page> (i..e xwiki:XWiki.WebHome by default)

      It should return null instead to signify the guest user.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: