forked from xwiki-contrib/application-ideas
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
Steps to reproduce:
- install XWiki Pro or licensor on the main wiki, add a valid license (demo or bought)
- create a subwiki
- add a local admin to the subwiki
- login with the local admin
- go to the administration of the subwiki and install ideas application - it should install smoothly
- create an idea in the ideas application
- vote on the idea
Expected result:
- the vote is registered properly
Actual result:
- an error message is displayed on the bottom of the browser window, saying "Hello world" and the vote is not registered:
When checking the console, the ajax call sent for the vote returns with the following response:
Failed to execute the [groovy] macro. Cause: [The execution of the [groovy] script macro is not allowed in [qawiki:Ideas.IdeasVoteService]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.org.xwiki.rendering.macro.MacroExecutionException: The execution of the [groovy] script macro is not allowed in [qawiki:Ideas.IdeasVoteService]. Check the rights of its last author or the parameters if it's rendered from another script.
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178) at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)
at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:101)
at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:348)
at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:221)
[...]
