Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
4.2-milestone-3
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
- As a user without script or admin right, edit your user profile with the object editor.
- Add a UIExtension object.
- Set the values as follows:
- Extension Point ID: org.xwiki.platform.panels.Applications
- Extension ID: platform.panels.myFakeApplication
- Extension parameters:
label=I got programming right: $services.security.authorization.hasAccess('programming') target=Main.WebHome targetQueryString= icon=icon:bomb
- Extension Scope: "Current User".
- Save the document and open any document.
Expected result:
No application entry is displayed or the Velocity code isn't executed.
Actual result:
A new entry is displayed in the application panel with label "I got programming right: true".
I also reproduced this issue on XWiki 7.2 but I assume it is older. Here screenshots from 7.2:
The same issue can also be reproduce with other UI extension points like export formats.
Attachments
Issue Links
- is caused by
-
XWIKI-649 Mechanism for inserting custom content in pre-existing code
- Closed
- links to