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 7862E6C4A for ; Sat, 23 Jul 2011 05:06:20 +0000 (UTC) Received: (qmail 1412 invoked by uid 500); 23 Jul 2011 05:06:08 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 911 invoked by uid 500); 23 Jul 2011 05:05:54 -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 885 invoked by uid 99); 23 Jul 2011 05:05:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2011 05:05:32 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,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; Sat, 23 Jul 2011 05:05:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B24FC365A5 for ; Sat, 23 Jul 2011 05:05:09 +0000 (UTC) Date: Sat, 23 Jul 2011 05:05:09 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Message-ID: <1481619511.753.1311397509727.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <26242321.130481292396221668.JavaMail.jira@thor> Subject: [jira] [Issue Comment Edited] (COMPRESS-124) Unable to extract a TAR file that contains sparse entries 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-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13069901#comment-13069901 ] Stefan Bodewig edited comment on COMPRESS-124 at 7/23/11 5:04 AM: ------------------------------------------------------------------ svn revisions 1149798 and 1149799 hold the major part of Patrick's original patch, I've left out the doc changes for now and overridden canReadEntryData was (Author: bodewig): svn revision 1149798 and 1149799 hold the major part of Patrick's original patch, I've left out the doc changes for now and overridden canReadEntryData > Unable to extract a TAR file that contains sparse entries > --------------------------------------------------------- > > Key: COMPRESS-124 > URL: https://issues.apache.org/jira/browse/COMPRESS-124 > Project: Commons Compress > Issue Type: New Feature > Components: Archivers > Affects Versions: 1.1, 1.2 > Environment: Platform independent. However, I'm currently using Window 7 Enterprise. > Reporter: Patrick Dreyer > Attachments: gnuSparseFile.patch > > > Good news first: I already have the patch ready for that. > I got several TAR files which I could not extract with any of the existing Java implementations, but I could extract all those TAR files successfully with GNU tar. > It turned out that all the failing TAR files contained so called sparse files. Investigating the source code of all existing Java TAR implementations showed me that none of them even recognizes the existence of GNU sparse entries. > Actually, I don't need to process one of the contained sparse files and I'm happy if I'm at least able to correctly untar all the non-sparsed files. Thus, it would be sufficient recognizing sparse files without the need to correctly un-sparse them while extracting. As long as all non-sparsed files get extracted correctly, I'm fine. > The TAR files in question have all been VMware Diagnostic File bundles. > See http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=653 to know how to get them. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira