Modify

Ticket #261 (closed defect: fixed)

Opened 2 years ago

Last modified 15 months ago

UnZip task reports success on failure on Windows

Reported by: Marcus Welz <marcus@…> Owned by: hans
Priority: major Milestone: 2.4.0RC1
Component: phing-tasks-ext Version: 2.3.1RC1
Keywords: Cc:

Description

I have an unzip task in my build.xml that appears to complete succesfully, but no files are actually extracted.

The phing/tasks/ext/UnzipTask.php doesn't properly check the results coming back from Archive_Zip::extract(). It should probably iterate over the results ($extractResponse as $extractedPath) and check whether the 'status' array element equals 'ok'.

I haven't done any testing to see what happens when Archive_Zip tries to extract files that already exist, or what should happen in that case (probably not overwrite them, and still report success, similar to how mkdir commands are ignored for already existing directories.)

There's a separate issue with Archive_Zip that I'll file in its own ticket.

Attachments

Change History

comment:1 Changed 2 years ago by Marcus Welz <marcus@…>

#262 is related to this issue.

comment:2 Changed 15 months ago by mrook

  • Status changed from new to closed
  • Resolution set to fixed

A patch to rewrite UnzipTask using the PHP zip extension was committed in r443. Since we no longer use Archive_Zip in this task, this bug is deemed fixed.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.