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

XWiki#getWikiOwner can potentially return wrong value for main wiki

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: