Details
-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
-
2.0.2
-
None
-
Unknown
-
Description
When a macro M is defined in velocity script in a page A, it is available to all velocity scripts in other pages in the wiki.
This can cause problems on concurrency, when it creates race conditions: if pages A and B both define macro M, with the same name but different definition, this situation can happen:
- A executes defines M
- B executes defines M
- A executes the rest of code that uses macro M
- B executes the rest of the code that uses macro M
At step 3, A will use macro M defined by B, instead of macro M defined by A that it expects.
Attachments
Issue Links
- duplicates
-
XWIKI-5278 Velocity Macros are considered global and not isolated in XWiki Syntax 2.0
- Closed