You are here: Foswiki>Tasks Web>Item13449 (05 Jul 2015, GeorgeClark)Edit Attach

Item13449: Some tarfiles fail to expand due to ././@LongLink triggers

Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: Configure
Branches: master
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
The TinyMCEPlugin won't install on 1.1.9 from the .tgz file, at least with older versions of cpan modules. Archive::Tar seems to have trouble with long filenames, and attempts to extract the @LongLink trigger name that is set in the archive when a filename exceeds the blocksize. The zipfile version installs fine. The following patch fixes the issue on 1.1.9, might be advisable on 1.2.0

diff --git a/lib/Foswiki/Configure/ b/lib/Foswiki/Configure/
index dfc0196..f292c0c 100644
--- a/lib/Foswiki/Configure/
+++ b/lib/Foswiki/Configure/
@@ -476,6 +476,7 @@ sub _untar {
         my @members = $tar->list_files();
         foreach my $file (@members) {
+            next if ( $file eq '././@LongLink' );
             my $err = $tar->extract($file);
             unless ($err) {
                 return 'Failed to extract ', $file, ' from tar file ',

-- GeorgeClark - 09 Jun 2015


ItemTemplate edit

Summary Some tarfiles fail to expand due to ././@LongLink triggers
ReportedBy GeorgeClark
Codebase 1.2.0 beta1, 1.1.9, trunk
SVN Range
AppliesTo Engine
Component Configure
Priority Normal
CurrentState Closed
Checkins distro:113c8f648f93
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
masterCheckins distro:113c8f648f93
Topic revision: r3 - 05 Jul 2015, 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