Skip to content

Access to subwiki forbidden if the View right is allowed for any group either on the main wiki level or subwiki level, and there are still rights issues after removing the right #11

@AndreeaChi

Description

@AndreeaChi

Steps to reproduce on a 13.10.4 instance:

  1. Have a main wiki and a subwiki (on the latter you can pick whichever option for the user scope and membership type, I have tried them all). You can try this example for the subwiki user scope and membership type:
    image

  2. Install Azure AD app on an https XWiki server at farm level.

  3. Configure on both Azure portal side and XWiki side (using the same client ID, secret and Tenant ID and dedicated login URIs) it using the documentation steps.

  4. On the main wiki administration, allow the View right to any of the groups, for example the XWikiAdminGroup as in the image below:
    image

The same problem happens even if the Prevent unregistered users from viewing pages, regardless of the page rights
and/or Prevent unregistered users from editing pages, regardless of the page rights are checked or left unchecked.

  1. On the subwiki administration, you can leave the default local rights, making sure the View right is left empty for any group. On the Both scope, you can try the below example as well:
    image
    or
    image
    or
    image

It would not matter if you allow, while on the subwiki adminstration, to the global groups the Comment, Edit, Delete, Admin, Register rights, but let's say you'd like to see if it would help on the subwiki side if the user profile that would be created when logging in on the main wiki with the AzureAD is will be one of those global groups.

The same problem happens even if the Prevent unregistered users from viewing pages, regardless of the page rights
and/or Prevent unregistered users from editing pages, regardless of the page rights are checked or left unchecked.

  1. Login on a different browser or on incognito on the main wiki using Azure AD. Login is successful, a profile is created and added in XWikiAllGroup:
    image
    image
    Extra: You can add the user in the XWikiAdminGroup as well.

  2. Login on a different browser on the subwiki using the same AzureAD account as the one used on the main wiki.

Expected result: login is successful
Actual result: access is forbidden
image

When removing the allowed View on the global wiki administration, the access to the subwiki is possible with the same AzureAD account used to login on the main wiki.

Removed View on main wiki administration
image

Login possible on subwiki with same AzureAD account used for the main wiki login test
image

However, the ColorTheme is not loaded, even if the profile of the AzureAD account was added in the global XWikiAdminGroup, and this group has even Admin rights given on the subwiki side.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions