Closed GoogleCodeExporter closed 9 years ago
Original comment by paracel...@gmail.com
on 6 Oct 2009 at 6:05
Apparently this tar file is broken, and that's why it won't work. The parser
will need to
be updated to be more forgiving about invalid files. I am not maintaining this
particular
code, so I'll wait for a fix from the actual author.
Original comment by paracel...@gmail.com
on 6 Oct 2009 at 6:20
The tar file is created using the ant tar task on linux.
http://ant.apache.org/manual/CoreTasks/tar.html
I did some searching and found this, not sure if it's exactly the issue, but it
sounds related.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47653
Original comment by JedKCAnd...@gmail.com
on 6 Oct 2009 at 10:24
Yes, that sounds like the exact issue.
Original comment by paracel...@gmail.com
on 6 Oct 2009 at 10:43
TarOutputStream out = new TarOutputStream(new GZIPOutputStream(new
BufferedOutputStream(new FileOutputStream(targetFile))));
out.setLongFileMode(TarOutputStream.LONGFILE_GNU);
The actual code used is the following. Note we are not using ANT for at least
one of
the bundles that fails with The Unarchiver so it appears to be a more general
issue
of the way that Java itself creates tar output streams with long file names.
Original comment by trw...@gmail.com
on 7 Oct 2009 at 1:58
First of all thanks to Lorenz for spotting the source of the Bug in Ant, it has
been
fixed there by now.
There is no "way that Java itself creates tar output streams" since java doesn't
support the tar format via the standard class library. If you are creating tar
archives from Java you are likely using Tim Endress' tar classes (which inspired
Ant's tar classes in 1999) or an offspring of Ants tar classes like the apache
Commons Compress code base - which has now been fixed as well.
The code snippet in comment 5 looks exactly as if it was using Ant's tar code.
Original comment by stefan.b...@gmail.com
on 8 Oct 2009 at 12:16
Excellent, thanks. We'll try to get parsing for whatever archives are already
out there
working on this side too.
Original comment by paracel...@gmail.com
on 8 Oct 2009 at 4:13
Issue 222 has been merged into this issue.
Original comment by paracel...@gmail.com
on 29 Nov 2009 at 11:20
Issue 241 has been merged into this issue.
Original comment by paracel...@gmail.com
on 13 Apr 2010 at 8:06
Applied patch by halcy that fixes this.
Original comment by paracel...@gmail.com
on 13 Apr 2010 at 8:38
Original issue reported on code.google.com by
jlev...@gmail.com
on 6 Oct 2009 at 5:29Attachments: