#014233: Files in zip file get extracted as empty files

Description:

I tried to extract the files from the attached zip file. While the xml files in the root do have contents in the archive, they were extracted as empty files (0 bytes).


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments
ezpublish.ott (95.7 kb)
[Download] [Permanent Link]

- Comments

Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves.

A proper reproducing script is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

#259689 by Derick Rethans on January 6th, 2009 [Permanent Link]

$file = 'ezpublish.ott';
$archiveOptions = new ezcArchiveOptions( array( 'readOnly' => true ) );
$archive = ezcArchive::open( $file, null, $archiveOptions );

$targetDir = 'extracted_zip_archive';

if ( !file_exists( $targetDir ) )
{
    mkdir( $targetDir );
}
$archive->extract( $targetDir );
#259690 by Kristof Coomans on January 6th, 2009 [Permanent Link]

Fixed in rev. 9797.

#260067 by Derick Rethans on February 4th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Archive
Affects 1.3.1 - Archive 1.3.1
Fix Versions 2008.2.1 - eZ components 2008.2.1
2009.1alpha1 - eZ components 2009.1alpha1
Reporter Kristof Coomans
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created January 6th, 2009
Updated February 5th, 2009
Resolved February 4th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels