Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.0 M2
-
None
-
Unit
-
Unknown
-
Description
Before executing macro transformations, DefaultWikiMacro class will set the current context document to be the macro definition document. This is because the macro needs programming rights to execute, even if the macro invocation document does not have programming rights.
The problem is WikiMacroBuilder drops the "wiki" part from the macro definition document name when building a wiki macro. Because of this, programming rights are evaluated on local wiki documents (probably non-existing) rather than the macro defining document which is on main wiki.
Attachments
Issue Links
- is duplicated by
-
XAWMB-2 In XE-2.0M2,xwiki.virtual=1 causes bugs for groovy scripts using 2.0 Macro Bridge
- Closed