incubator-zeta-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunnstein Lye (JIRA)" <>
Subject [jira] Updated: (ZETACOMP-8) [Archive] Double extraction causes empty file
Date Fri, 30 Jul 2010 09:46:16 GMT


Gunnstein Lye updated ZETACOMP-8:

    Attachment: Archive_src_tar_v7.php-trunk.diff

Attached a script that reproduces the issue, and a patch that solves it for me. Note that
an ezpkg file is also required to reproduce this, and I can't post this file publicly.

> [Archive] Double extraction causes empty file
> ---------------------------------------------
>                 Key: ZETACOMP-8
>                 URL:
>             Project: Zeta Components
>          Issue Type: Bug
>         Environment: Linux, Apache, PHP 5.2, eZ Publish 4.4 alpha6
>            Reporter: Gunnstein Lye
>         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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message