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
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/Util.pm b/lib/Foswiki/Configure/Util.pm
index dfc0196..f292c0c 100644
--- a/lib/Foswiki/Configure/Util.pm
+++ b/lib/Foswiki/Configure/Util.pm
@@ -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