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

pencil
Priority: Enhancement
Current State: Closed
Released In:
Target Release:
Applies To: Extension
Component: GenPDFAddOn
Branches:
Reported By: Foswiki:Main.TobiasVonDerKrone
Waiting For:
Last Change By: GeorgeClark
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 GenPDFAddOn:7b923cd23dca
ReleasedIn
Topic revision: r5 - 09 Mar 2010, GeorgeClark - This page was cached on 12 Jul 2019 - 03:15.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy