#015457: When extracting Ustar-archives that feature a prefix/filename long-filename, the directory is not separated properly.


Environment:

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


Steps to Reproduce:

Run the following example with the attached tarball:


<?php
require_once '/home/derick/dev/ezcomponents/trunk/Base/src/ezc_bootstrap.php';
date_default_timezone_set( "UTC" );

// Open the gzipped TAR archive.
$archive = ezcArchive::open( 'test.tar' );

while( $archive->valid() )
{
// Returns the current entry (ezcArchiveEntry).
$entry = $archive->current();

// ezcArchiveEntry has an __toString() method.
echo $entry, "\n";

// Extract the current archive entry to /tmp/target_location/
$archive->extractCurrent( "/tmp/target_location/" );

$archive->next();
}

?>

and see that the last two lines have a broken dir name.

- Attachments
test.tar (81.9 kb)
[Download] [Permanent Link]

- Comments

Fixed in rev. 11035.

#263732 by Derick Rethans on November 5th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Archive
Affects Unknown
Fix Versions 2009.2 sprint 3 - eZ components 2009.2 sprint 3
2009.2alpha1 - eZ components 2009.2alpha1
Reporter Derick Rethans
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created September 9th, 2009
Updated November 5th, 2009
Resolved November 5th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels