Item8081: Unknown Parameter when passing a Foswiki variable in a GenPDF setting.
Priority: Enhancement
Current State: Closed
Released In:
Target Release:
Hello,
Using Foswikii variables in the configuration, e.g.
* Set Set GENPDFADDON_LOGOIMAGE = %WIKILOGOIMG%
results in the following error:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
unknown parameter name WIKILOGOIMG
The data/warn200903.txt show this entry:
2009-03-23T07:29:30Z warning | unknown parameter name WIKILOGOIMG at /Prot/srv/www/foswiki/lib/Foswiki/Sandbox.pm line 283.
--
TobiasVonDerKrone - 23 Mar 2009
This is working as documnented. The examples show explicit references to graphics URLs, not Foswiki variables.
However at minimum it should fail more gracefully, or better, it should support this. The failure is caused because the field is passed to the Sandbox and interpreted as part of a command template. The plugin should validate that it is an image URL, and call Foswiki::Func::expandCommonVariables for each of the parameters to permit Foswiki variables to be passed to the plugin.
Thanks for the suggestion. I'll add it to the list for the next release.
--
GeorgeClark - 23 Mar 2009