From zeta-issues-return-5-apmail-incubator-zeta-issues-archive=incubator.apache.org@incubator.apache.org Fri Jul 30 09:55:41 2010 Return-Path: Delivered-To: apmail-incubator-zeta-issues-archive@minotaur.apache.org Received: (qmail 6955 invoked from network); 30 Jul 2010 09:55:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jul 2010 09:55:41 -0000 Received: (qmail 48368 invoked by uid 500); 30 Jul 2010 09:55:41 -0000 Delivered-To: apmail-incubator-zeta-issues-archive@incubator.apache.org Received: (qmail 48348 invoked by uid 500); 30 Jul 2010 09:55:41 -0000 Mailing-List: contact zeta-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zeta-issues@incubator.apache.org Delivered-To: mailing list zeta-issues@incubator.apache.org Received: (qmail 48307 invoked by uid 99); 30 Jul 2010 09:55:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 09:55:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 09:55:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6U9tGGb025438 for ; Fri, 30 Jul 2010 09:55:16 GMT Message-ID: <25263541.85071280483716359.JavaMail.jira@thor> Date: Fri, 30 Jul 2010 05:55:16 -0400 (EDT) From: "Derick Rethans (JIRA)" To: zeta-issues@incubator.apache.org Subject: [jira] Assigned: (ZETACOMP-8) [Archive] Double extraction causes empty file In-Reply-To: <24230265.84951280482935850.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ZETACOMP-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Derick Rethans reassigned ZETACOMP-8: ------------------------------------- Assignee: Derick Rethans > [Archive] Double extraction causes empty file > --------------------------------------------- > > Key: ZETACOMP-8 > URL: https://issues.apache.org/jira/browse/ZETACOMP-8 > Project: Zeta Components > Issue Type: Bug > Environment: Linux, Apache, PHP 5.2, eZ Publish 4.4 alpha6 > Reporter: Gunnstein Lye > Assignee: Derick Rethans > Attachments: archive-extract-test-public.php, Archive_src_tar_v7.php-trunk.diff > > > Using extractCurrent() to extract a single file, and then extract() to dump the whole archive, the file I extracted first is now empty (0 byte length). > I have test code to reproduce this, and a patch that fixes it for me. If the patch is correct, the issue is that zero is incorrectly assumed equal to false. > I see the issue only with one particular eZ Publish package file (ezpkg/tar.gz) so it could be a problem with that file as well. GNU tar/gz extracts it without problems or warnings, though. I cannot post this file publicly. I can give it to current or former eZ employees, please contact me. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.