Ticket #261 (new defect)

Opened 5 months ago

Last modified 5 months ago

UnZip task reports success on failure on Windows

Reported by: Marcus Welz <marcus@lucidix.com> Assigned to: hans
Priority: major Milestone: 2.4.0
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

07/31/08 15:18:35 changed by Marcus Welz <marcus@lucidix.com>

#262 is related to this issue.


Add/Change #261 (UnZip task reports success on failure on Windows)