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 0164317682 for ; Sun, 9 Aug 2015 15:00:47 +0000 (UTC) Received: (qmail 20534 invoked by uid 500); 9 Aug 2015 15:00:46 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 20427 invoked by uid 500); 9 Aug 2015 15:00:46 -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 20410 invoked by uid 99); 9 Aug 2015 15:00:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Aug 2015 15:00:46 +0000 Date: Sun, 9 Aug 2015 15:00:46 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COMPRESS-319) ArchiveStreamFactory.createArchiveInputStream(InputStream) Does not support tar.gz files 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-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679166#comment-14679166 ] Stefan Bodewig commented on COMPRESS-319: ----------------------------------------- It can's see the tar signature before gzip has "done its thing" and it doesn't know about gzip (and shouldn't, IMHO). Basically you'd do something like {code} ArchiveStreamFactory.createArchiveInputStream(new BufferedInputStream(CompressorStreamFactory.createCompressorInputStream(in))) {code} which is something we could add as fallback to try after createArchiveInputStream hasn't found an archiver (with some extra error handling and some bookkeeping to prevent infinite loops, of course). > ArchiveStreamFactory.createArchiveInputStream(InputStream) Does not support tar.gz files > ---------------------------------------------------------------------------------------- > > Key: COMPRESS-319 > URL: https://issues.apache.org/jira/browse/COMPRESS-319 > Project: Commons Compress > Issue Type: Improvement > Components: Archivers > Affects Versions: 1.9 > Reporter: Matt Kusnierz > > Trying to extract from a tar.gz file, the org.apache.commons.compress.archivers.ArchiveStreamFactory.createArchiveInputStream(InputStream) throws an ArchiveException("No Archiver found for the stream signature") -- This message was sent by Atlassian JIRA (v6.3.4#6332)