[Deprecated] Control the permissions of the documents

Last modified by Oana Florea on 2022/05/03 09:28

Home Nested Spaces Home Run Test

Steps to reproduce

  1. Register 2 users (U1, U2)
  2. With U1 create http://127.0.0.1:8080/xwiki/bin/view/a/b/c/d/ with all the parent pages created
  3. With Admin user go to http://127.0.0.1:8080/xwiki/bin/admin/a/WebPreferences
  4. Click on Rights: Page & Children
  5. Click on Users
  6. Deny View rights for U2
  7. Login with U2 and check the Pages Macro or try to access the pages from the URL (Check the expected results)
  8. Login with U1 and go to http://127.0.0.1:8080/xwiki/bin/view/a/b/c/
  9. Go to Access Rights by accessing this URL http://127.0.0.1:8080/xwiki/bin/edit/a/b/c/WebHome?editor=rights
  10. Click on Users
  11. Grant Edit right for U2
  12. Login with U2
  13. Access the page http://127.0.0.1:8080/xwiki/bin/view/a/b/c/  (Check the expected results)
  14. With U2 logged in try to access http://127.0.0.1:8080/xwiki/bin/view/a/b/c/d/ (Check the expected results)

Expected results

Step 7: You will not see the pages in Pages Macro and you can't access none of the pages created.

Step 13: You can see C page and the rights are working as expected. In the breadcrumb you can see the correct path but you can't access neither of the parents.

Step 14: You can't access page D.

Results

per page of Page
Product App Browsers Databases Servlet Containers Tested By Tested On Jira Issue
The environment prevents the table from loading data.
 
Page
Tags:
   

Get Connected