NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item11383 for general documentation changes for release 1.1.5. Use Item9693 for docu changes for release 2.0.

Item8081: Unknown Parameter when passing a Foswiki variable in a GenPDF setting.

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Enhancement Closed Extension GenPDFAddOn  
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

ItemTemplate edit

Summary Unknown Parameter when passing a Foswiki variable in a GenPDF? setting.
ReportedBy Foswiki:Main.TobiasVonDerKrone
Codebase 1.0.4
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component GenPDFAddOn
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins Foswikirev:5681
ReleasedIn
Topic revision: r5 - 09 Mar 2010 - 21:21:38 - GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads