-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-41928: Add support for Unicode Path Extra Field in ZipFile #23736
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR is stale because it has been open for 30 days with no activity. |
When this PR will be reviewed and merged? |
@agiudiceandrea - Is there a way to add tests to this PR? It will be easier for a core-dev to review and merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, this is looking good. I've added some comments about validating the data in the extra fields. It would be good to have some tests (particularly ensuring that malicious file names get caught).
@danifus thank you very much for reviewing this PR! |
@danifus I've added both your suggested improvements. |
Thanks for adding those changes! It would be good to add some tests for this new functionality. Are you able to create a minimal test file using an external program such as 7z and then embed the bytes into a test in Here's a script that you can use to turn an arbitrary file into text that you can paste into the test:
There are a number of tests in test_zipfile.py that do something similar for various functionality |
@agiudiceandrea Can I finish this issue? I ask you a question first because you're almost done. |
Is there any progress? |
Closing and reopening to trigger CLA check. |
Hi @yeojin-dev, I apologise for replying so late. I've missed the notification of comments from this PR. |
Seems that the task has been finished in #102566. |
Add support for Unicode Path Extra Field (0x7075) following 4.6.9 APPNOTE.TXT - .ZIP File Format Specification.
https://bugs.python.org/issue41928