Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A83396BA for ; Tue, 21 Feb 2012 16:46:59 +0000 (UTC) Received: (qmail 24449 invoked by uid 500); 21 Feb 2012 16:46:58 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 24388 invoked by uid 500); 21 Feb 2012 16:46:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 24379 invoked by uid 99); 21 Feb 2012 16:46:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 16:46:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 16:46:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6F708333436 for ; Tue, 21 Feb 2012 16:46:34 +0000 (UTC) Date: Tue, 21 Feb 2012 16:46:34 +0000 (UTC) From: "Christian Schlichtherle (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <1835417765.6402.1329842794458.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1586376980.2845.1329754416005.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COMPRESS-177) TarArchiveInputStream rejects valid TAR file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COMPRESS-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schlichtherle updated COMPRESS-177: --------------------------------------------- Comment: was deleted (was: What's wrong with this issue? The subject says it all, I think.) > TarArchiveInputStream rejects valid TAR file > -------------------------------------------- > > Key: COMPRESS-177 > URL: https://issues.apache.org/jira/browse/COMPRESS-177 > Project: Commons Compress > Issue Type: Bug > Components: Archivers > Affects Versions: 1.3 > Reporter: Gili > > Issue originally reported at http://java.net/jira/browse/TRUEZIP-219 > # Download http://sourceforge.net/projects/boost/files/boost/1.48.0/boost_1_48_0.tar.gz?use_mirror=autoselect > # I invoke Files.newDirectoryStream() on a TPath pointing to the resulting .tar.gz file > # The following exception is thrown: > {code} > java.lang.IllegalArgumentException: Invalid byte -1 at offset 7 in '' len=8 > at org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:86) > at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:790) > at org.apache.commons.compress.archivers.tar.TarArchiveEntry.(TarArchiveEntry.java:308) > at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:198) > at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry(TarArchiveInputStream.java:380) > at de.schlichtherle.truezip.fs.archive.tar.TarInputShop.(TarInputShop.java:91) > at de.schlichtherle.truezip.fs.archive.tar.TarDriver.newTarInputShop(TarDriver.java:159) > at de.schlichtherle.truezip.fs.archive.tar.TarGZipDriver.newTarInputShop(TarGZipDriver.java:82) > at de.schlichtherle.truezip.fs.archive.tar.TarDriver.newInputShop(TarDriver.java:151) > at de.schlichtherle.truezip.fs.archive.tar.TarDriver.newInputShop(TarDriver.java:47) > at de.schlichtherle.truezip.fs.archive.FsDefaultArchiveController.mount(FsDefaultArchiveController.java:170) > at de.schlichtherle.truezip.fs.archive.FsFileSystemArchiveController$ResetFileSystem.autoMount(FsFileSystemArchiveController.java:98) > at de.schlichtherle.truezip.fs.archive.FsFileSystemArchiveController.autoMount(FsFileSystemArchiveController.java:47) > at de.schlichtherle.truezip.fs.archive.FsArchiveController.autoMount(FsArchiveController.java:129) > at de.schlichtherle.truezip.fs.archive.FsArchiveController.getEntry(FsArchiveController.java:160) > at de.schlichtherle.truezip.fs.archive.FsContextController.getEntry(FsContextController.java:117) > at de.schlichtherle.truezip.fs.FsDecoratingController.getEntry(FsDecoratingController.java:76) > at de.schlichtherle.truezip.fs.FsDecoratingController.getEntry(FsDecoratingController.java:76) > at de.schlichtherle.truezip.fs.FsConcurrentController.getEntry(FsConcurrentController.java:164) > at de.schlichtherle.truezip.fs.FsSyncController.getEntry(FsSyncController.java:108) > at de.schlichtherle.truezip.fs.FsFederatingController.getEntry(FsFederatingController.java:156) > at de.schlichtherle.truezip.nio.file.TFileSystem.newDirectoryStream(TFileSystem.java:348) > at de.schlichtherle.truezip.nio.file.TPath.newDirectoryStream(TPath.java:963) > at de.schlichtherle.truezip.nio.file.TFileSystemProvider.newDirectoryStream(TFileSystemProvider.java:344) > at java.nio.file.Files.newDirectoryStream(Files.java:400) > at com.googlecode.boostmavenproject.GetSourcesMojo.convertToJar(GetSourcesMojo.java:248) > at com.googlecode.boostmavenproject.GetSourcesMojo.download(GetSourcesMojo.java:221) > at com.googlecode.boostmavenproject.GetSourcesMojo.execute(GetSourcesMojo.java:111) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > ... 20 more > {code} > Christian Schlichtherle (the TrueZip author) is expecting the Commons Compress to throw IOException instead of IllegalArgumentException. I am expecting no exception to be thrown because as far as I can tell the TAR file is valid (opens up in WinRar and Ubuntu's built-in Archiver). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira