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

User and Group resolver should handle guest user

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: