Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
bpo-6839: removed unnecessary file name encoding test from ZipFile.open()#14212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
the-knights-who-say-ni commentedJun 18, 2019
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed thePSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username onbugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please followthe steps outlined in the CPython devguide to rectify this issue. You cancheck yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
I signed the CLA. My BPO account reflects that, but the Heroku app isn't sync'd. In any case, this PR removes code; it doesn't add any. |
Because they are the only official encodings. I do not see a problem here.
Do you say that reading the ZIP file always fails on Windows? Why our tests are passed and we did not have bug reports about such major bug? |
MorganRamsay commentedJun 23, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Bad tests?
So, this doesn't count?https://bugs.python.org/issue6839 FYI: Using test data generated from CryEngine's Resource Compiler, this is what the exception looks like:
|
serhiy-storchaka commentedJun 24, 2019 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading.Please reload this page.
There are tests for reading ZIP archives containing files in subdirectories. They are passed on Windows. If you think that some tests are missed, could you please provide them?
Seems this is just one case of ZIP archives generated by some broken software. That software should be fixed. Please read the discussion onbpo-6839. Even if we make |
Okay, so do that. At this point, any progress is good progress. |
Uh oh!
There was an error while loading.Please reload this page.
When attempting to open a ZIP file with
ZipFile.open()
, a BadZipFile exception is raised. The origin of the exception is an unnecessary file name encoding test.Two clear problems with this test:
Two risks with this solution:
This issue has been open and unresolved for nearly 10 years, requiring users to subclass ZipFile when working with ZIP files on Windows platforms. This issue affects every version of Python since at least 2.7.
https://bugs.python.org/issue6839