Message123953
If you read the bug report it explains how to generate a testcase (i.e. append any data to the end of a zip archive)
Here it is as a step by step process
1. simply take any working zip and call it testcase.zip
2. do the following:
echo "\r\n" >> testcase.zip
If you run "unzip -t" on testcase.zip it will pass with flying colors and will properly unzip on every piece of zip software I have tried.
However if you try to use python to copy the zip archive to another zip archive
python ./zipfix.py testcase.zip junk.zip
Error Occurred File is not a zip file
All because of the appended carriage return / linefeed at the end. |
|
Date |
User |
Action |
Args |
2010-12-14 15:22:25 | KevinH | set | recipients:
+ KevinH, xuanji |
2010-12-14 15:22:25 | KevinH | set | messageid: <1292340145.68.0.367764013338.issue10694@psf.upfronthosting.co.za> |
2010-12-14 15:22:22 | KevinH | link | issue10694 messages |
2010-12-14 15:22:22 | KevinH | create | |
|