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

XWiki#getWikiOwner can potentially return wrong value for main wiki

    Details

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

      Description

      Was OK with old right service since it does not take into account the owner for the main wiki but it's not so nice with new security module.

      Having a public XWikiContext#getWikiOwner() is also very wrong since it is broken any time by a call to setDatabase() and cannot be trusted.

      Same thing for XWikiContext#getWikiServer().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: