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

hasAccessLevel returns false for documents on a different wiki if the current wiki is completely closed to guest, regardless of the rights on the other wiki

    Details

    • Development Priority:
      Medium
    • Difficulty:
      Hard
    • Similar issues:

      Description

      To reproduce:

      • create a subwiki
      • protect the subwiki against guest access using the checkbox "Prevent users from viewing pages"
      • on the main wiki, give some rights to guest

      On the subwiki, whenever we ask hasAccessLevel for a page from the main wiki for the guest wiki, we seem to get "false" as response, even if the guest has access to that page.

      This issue is bothering for 2 cases that I found:

      • when a color theme from the main wiki is set on such a subwiki, the color theme is not used on the login page because it's determined as "non-accessible" to guest, although it is
      • if modifications are made on "login.vm" to make "forgot password" and "forgot username" of the subwiki point to the corresponding documents on the main wiki, hasAccessLevel for these documents also announces them as "non-accessible"

        Attachments

          Activity

            People

            • Assignee:
              surli Simon Urli
              Reporter:
              lucaa Anca Luca
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: