[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-26 Thread Alex Roussel
Alex Roussel added the comment: OK understood. Thanks for the explanation, I wasn't aware of those and will take a look. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-23 Thread Alex Roussel
Alex Roussel added the comment: The impression I got from reading https://bugs.python.org/issue28494 was that this was fixed in python 3.7 ? Or perhaps as you say it's just a matter of stumbling across the rare files that generate false positives

[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-22 Thread Alex Roussel
Alex Roussel added the comment: Hi Irit, Thank you for the response, I'm afraid I'm not allowed to upload the file myself, however the file in question is '2020-10-18-1602979256-http_get_7549.json.gz', which is available at this link https://opendata.rapid7.com/sonar.http/?page=1

[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-20 Thread Alex Roussel
New submission from Alex Roussel : Hello, I've come across an issue that seems similar to the false positives problem outlined in this ticket (https://bugs.python.org/issue28494), however this issue relates to a single gzipped json file which is incorrectly identified as a .zip archive