Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.5.2
-
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
- is duplicated by
-
XWIKI-8855 XWikiContext.setDatabase() does not ensure that the new wiki-specific information is updated, so a subwiki's owner can be mistaken for the main wiki's owner
- Closed
- relates to
-
XWIKI-9159 XWikiContext#getWikiServer() is deprecated without any replacement and does not work on subwikis anymore
- Closed