Details
-
Bug
-
Resolution: Unresolved
-
Major
-
5.0-milestone-2
-
None
-
Unknown
-
Description
Problem
The security entry reader adds a rule allowing the owner of a wiki to administrate it (to program, for the main wiki) to the rules of the wiki, read from XWiki.XWikiPreferences. Since XWIKI-8979 it also adds the same rule to the rules of every space of the wiki, read from its WebPreferences document, whether this document exists or not.
This doesn't change any access right: the rule of the wiki already allows the owner to administrate the whole wiki, and an allowed admin (or programming) right can't be denied at a lower level. But:
- the rules of every space depend on the wiki descriptor, and loading them reads the owner of the wiki each time;
- every cached space entry holds one more rule;
- the rules of a space can't be computed from its own WebPreferences document, which matters for the Solr rights filter (XWIKI-8583): a change of the owner would require reindexing every WebPreferences document of the wiki.
Change
Add the owner rule only to the rules of the wiki. The settled access rights stay the same: comparing the settlement of 6.5 million random rule hierarchies with and without the rule on the space level, for all rights and both the default and the prioritizing settlers, found no difference.
Attachments
Issue Links
- relates to
-
XWIKI-8979 Document creator special rights are not always granted due to right caching issue
-
- Closed
-
-
XWIKI-8583 Correctly handle pagination for Search results that are not viewable by the user
-
- Open
-