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

The wiki owner rule is added to the security rules of every space

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 18.10.0-rc-1
    • 5.0-milestone-2
    • Security
    • 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

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: