Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
10.6.1
-
None
-
None
-
Unknown
-
Description
Steps to repdroduce:
- Install an existing macro extension, e.g. the (inexistent) HelloWorldMacro 1.0, whose id is "hello" and which is defined in the page "XWiki.HelloWorldMacro".
- Move this macro into page "Macros.HelloWorldMacro"
- From this new page, release a new version of the macro: HelloWorldMacro 2.0.
- In a new wiki, install HelloWorldMacro 1.0.
- Create a page invoking this macro ("hello/")
- In this wiki, upgrade to HelloWorld 2.0 by specifying that the pages of HelloWorldMacro 1.0 should be removed.
- Visit the previously created page invoking the macro.
Actual result: the page displays "Unknown macro: hello/".
Expected result: the page displays the rendered macro.
Note: saving manually the page containing the definition of HelloWorldMacro 2.0 resolves the problem. The issue might be due to the fact that the old page macro is deleted only after the new one is installed. The deletion might result in the unregistration of the macro id.
Attachments
Issue Links
- blocks
-
MAP-26 Upgrading Map Macro from 1.2.5 to 2.1 makes the macro disappear from XWiki Macros and not functional in pages
-
- Closed
-
- duplicates
-
XWIKI-15510 Deleting a wiki macro document can unregister the current component even if it's not the macro itself anymore
-
- Closed
-