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 ronaldoussoren
Recipients Devin Fisher, alanmcintyre, ronaldoussoren, serhiy.storchaka, twouters
Date 2015-07-23.06:47:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437634070.92.0.689112840613.issue24686@psf.upfronthosting.co.za>
In-reply-to
Content
The actual exception you're getting is IMHO a bug, it should have been a zipfile.BadZipfile exception.

That said, it might be useful to teach zipfile to optionally be a little more forgiving about errors like this when reading a zipfile. I'm at best -0 on that in general, in this case we could get away with restructuring the code a little: a number of ZipInfo attributes are set from "extra" data when the extra data is present and the value in the normal header max-ed out. The code could be changed to not even try to decode the "extra" data when the values in the normal header aren't max-ed out.

BTW. The RuntimeError that's raised in _decodeExtra should also be a BadZipfile exception.
History
Date User Action Args
2015-07-23 06:47:51ronaldoussorensetrecipients: + ronaldoussoren, twouters, alanmcintyre, serhiy.storchaka, Devin Fisher
2015-07-23 06:47:50ronaldoussorensetmessageid: <1437634070.92.0.689112840613.issue24686@psf.upfronthosting.co.za>
2015-07-23 06:47:50ronaldoussorenlinkissue24686 messages
2015-07-23 06:47:50ronaldoussorencreate