Message247177
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. |
|
Date |
User |
Action |
Args |
2015-07-23 06:47:51 | ronaldoussoren | set | recipients:
+ ronaldoussoren, twouters, alanmcintyre, serhiy.storchaka, Devin Fisher |
2015-07-23 06:47:50 | ronaldoussoren | set | messageid: <1437634070.92.0.689112840613.issue24686@psf.upfronthosting.co.za> |
2015-07-23 06:47:50 | ronaldoussoren | link | issue24686 messages |
2015-07-23 06:47:50 | ronaldoussoren | create | |
|