homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author KevinH
Recipients KevinH, xuanji
Date 2010年12月14日.15:22:22
SpamBayes Score 2.7797776e-06
Marked as misclassified No
Message-id <1292340145.68.0.367764013338.issue10694@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010年12月14日 15:22:25KevinHsetrecipients: + KevinH, xuanji
2010年12月14日 15:22:25KevinHsetmessageid: <1292340145.68.0.367764013338.issue10694@psf.upfronthosting.co.za>
2010年12月14日 15:22:22KevinHlinkissue10694 messages
2010年12月14日 15:22:22KevinHcreate

AltStyle によって変換されたページ (->オリジナル) /