Details
-
Bug
-
Resolution: Fixed
-
Minor
-
11.8-rc-1
-
Windows 10 Pro 64 bit, Chrome 77, using a local instance XWiki 11.8 RC1 on MySQL 5.7
-
Unknown
-
N/A
-
N/A
-
Description
STEPS TO REPRODUCE
- Login as Admin
- Create an user (U1)
- Go to Administer Wiki > Users & Rights > Rights
- Deny the Script right for U1
- Create a page (e.g. Pag1)
- Insert a Velocity Macro (or other macro requiring script rights) and save the page
- Login with U1
- Edit the page containing the macro
- Check the result in the WYSIWYG editor
EXPECTED RESULTS
Due to the fact that U1 has no script rights, there is an error message that also contains the source of this error:
Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Main.Pag1.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
ACTUAL RESULTS
The error message does not display the source:
Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
Attachments
Issue Links
- is related to
-
XWIKI-16710 Provide the source in the error message when executing a script without scripting rights
- Closed