Item9841: Plugin installation fails due to broken extender.pl

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.1
Target Release: patch
Applies To: Engine
Component: extender.pl
Branches:
Reported By: KerstinPuschke
Waiting For:
Last Change By: KennethLavrsen
Plugin installation on the commandline fails if LocalSite.cfg contains empty lines or $Foswiki::cfg{ScriptDir} uses double quotes. Running any Plugin installer throws the error 'There was a compile error: Can't locate setlib.cfg in @INC'.

This is due to a bug in the sub getScriptDir in extender.pl - it does not return the ScriptDir if your LocalSite.cfg has an empty line somewhere before the definition of $Foswiki::cfg{ScriptDir}, or if your LocalSite.cfg uses double quotes for the definition of $Foswiki::cfg{ScriptDir}.

Since sub getScriptDir does not return the ScriptDir, the chdir in line 101 fails. For some reason, this has no impact when using the configure webinterface - maybe it's already in the correct directory. On the commandline instead, it causes the installation to fail.

-- KerstinPuschke - 18 Oct 2010

I've committed a fix for 1.1.1 - you can find the modified extender.pl at http://trac.foswiki.org/browser/branches/Release01x01/core/tools/extender.pl?rev=9605 If you have a chance to test it, please let us know. The fix works okay in my tests. Thanks for the detailed report.

-- GeorgeClark - 18 Oct 2010

Patch works for me, too.

-- KerstinPuschke - 19 Oct 2010
 

ItemTemplate edit

Summary Plugin installation fails due to broken extender.pl
ReportedBy KerstinPuschke
Codebase 1.1.0
SVN Range
AppliesTo Engine
Component extender.pl
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:46a387496a83 distro:67f08dbfc222
TargetRelease patch
ReleasedIn 1.1.1
Topic revision: r7 - 25 Oct 2010, KennethLavrsen
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