Hello,
in the context of a Debian Virtual Machine, using Xjetty-common, this is a new test on managing users and groups.
There are 2 users : mine, and the one supposed to be the very Admin user. Both belong to XWikiAllGroup and XWikiAdminGroup. My goal is to remove my user from the XWikiAdminGroup without breaking XWiki nor triggering errors, be they Velocity or whatever.
Some time ago (same Debian VMs, but with the XWiki Tomcat packages, not that it should matter) I had posted about some Velocity errors after I had removed my test user account from the XWikiAdminGroup. I had this answer from a member of this forum (was it @tmortagne ?) : errors are triggered because when a user who has posts which belong to the user as a member of the Admin Group is deleted
… this is the idea.
This is still a test install (XWiki v15.10.12 for now), so I decided today to give it another try, especially since I would need to do some other tests, with my non admin user logged in.
Step 1) This time, I login as my user, search for all my posts using my profile section, remove them, remove also the line at the bottom of the “ghost” of the deleted page from where they can be restored.
Step 2) Then I logout, login back with the Admin user account, go to the Global Admin Settings section and from within the XWikiAdminGroup sub-section I remove my user from the group, then go elsewhere on the XWiki install
Step 3) I observe the error message at the top of the window:
Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:XWiki.Realtime.Configuration]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
plus hundreds of lines when clicking on the pink message containing the above sentences. Also, the left navigation was trying to load, with a spinning loading
message which would not end, and in the Global Administration: Home
section, only 2 entries were still there : Look & Feel
, and User & Rights
.
I added my user in the XWikiAdminGroup again and the Velocity message disappeared.
Please, how can I remove a user from the XWikiAdminGroup without breaking anything?