You are here: Foswiki>Tasks Web>Item2263 (02 Nov 2012, GeorgeClark)Edit Attach

Item2263: extender.pl - Archive::Tar not found

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.8
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
The fix to Item1782 is not correct.

The code tests the result of eval "require [some module]". It then tests $@ to see if the require works, Perl documentation states for eval that If there was no error, $@ is guaranteed to be a null string. Null is false, so this test is incorrect. However on most platforms, tar or unzip are available, masking the failure.

    eval 'require Archive::Zip';
    if ($@) {
        my $zip = Archive::Zip->new();

...

    eval 'require Archive::Tar';
    if ($@) {
        my $tar = Archive::Tar->new();
...

-- GeorgeClark

This seems fixed.

Setting to Waiting for Release

-- KennethLavrsen - 17 Oct 2009

ItemTemplate edit

Summary extender.pl - Archive::Tar not found
ReportedBy GeorgeClark
Codebase 1.0.7, trunk
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:642dda7b7b00 distro:49068ed05d4b
TargetRelease patch
ReleasedIn 1.0.8
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r5 - 02 Nov 2012, GeorgeClark
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