Replace Author when Deleting Users [Since XWiki 11.8RC1]

Last modified by Ilie Andriuta on 2023/02/09 15:56

Home Web Tests Home Run Test

Steps to reproduce

  1. Login as Admin
  2. Create an user (U1)
  3. [Since XWiki 14.10] Go to 'Administer Wiki > Users & Rights > Rights' and grant the Script right to the user
  4. Login with the user (U1)
  5. Create a page (Pag1)
  6. Login as Admin
  7. Go to Administer Wiki > Users & Rights > Users
  8. Click on 'Disable' for U1
  9. Click on 'Delete'
  10. Select another user or Admin
  11. Click 'Delete'
  12. Go to page created and observe the user that last modified it

Expected results

Starting XWiki 11.8RC1, deleting an user from the Administration requires 2 steps:

  1. Disabling the user (Step 7)
  2. Choosing another user account with similar access rights to replace the deleted one as page author of existing pages, otherwise, any scripts inside those existing pages will lose their rights and stop working (Step 9)
    The page has now been updated with the user/Admin selected.

Results

per page of Page
Jira Issue
Warning
The environment prevents the table from loading data.
 
Page

Get Connected