Closed oanalavinia closed 3 years ago
I added this issue as a Blocker since after #26 the macro will no longer work on the minimal supported XWiki version
The linked jira issue https://jira.xwiki.org/browse/XWIKI-17768
I think there are two ways to access the macro parameter: one triggers the conversion and the other doesn't. I guess we need to use the option that simply returns the parameter value as string (no conversion to the macro parameter type attempted).
If you meant between $wikimacro.parameters.file
and $xcontext.macro.params.file
, this doesn't influence the issue.
I tried to not access any parameter, with simple string content for the macro, and the conversion is still triggered and the error shown.
I see, so the exception is thrown even if you don't access the macro parameter from the macro code.. that's very annoying..
Would it be hard to implement the missing converter?
Steps to reproduce
Expected result You can see the pdf without any problems
Actual result A error is shown
I only tested on XWiki versions 11,10, 11.10.5, 12.1 - 12.7 (starting with 12.8 is no longer reproducing) This issue was introduced by #14