Skip to content

Conversation

@aisk
Copy link
Contributor

@aisk aisk commented Dec 10, 2023

This behavior is introduced in #98346 (comment), but as #112795 shows, some tools such as jira or self structeded tools do have / in the file lists in the created zip file. And modern unzip tools support them, so I think we should revert the change.

If this PR can be accepted, it should be backported to 3.12.

@erlend-aasland
Copy link
Contributor

cc. @gpshead, who reviewed and merged #98346

@erlend-aasland erlend-aasland changed the title gh-112795: allow / folder in a zipfile gh-112795: Allow / folder in a zipfile Jan 6, 2024
@gpshead gpshead self-assigned this Jan 6, 2024
@gpshead gpshead added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Jan 6, 2024
@gpshead gpshead removed the needs backport to 3.11 only security fixes label Jan 7, 2024
@gpshead gpshead enabled auto-merge (squash) January 7, 2024 01:09
@gpshead gpshead merged commit 541c5db into python:main Jan 7, 2024
@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 7, 2024
Allow extraction (no-op) of a "/" folder in a zipfile, they are commonly added by some archive creation tools. (cherry picked from commit 541c5db) Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Gregory P. Smith <greg@krypto.org>
@bedevere-app
Copy link

bedevere-app bot commented Jan 7, 2024

GH-113789 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Jan 7, 2024
gpshead added a commit that referenced this pull request Jan 7, 2024
gh-112795: Allow `/` folder in a zipfile (GH-112932) Allow extraction (no-op) of a "/" folder in a zipfile, they are commonly added by some archive creation tools. (cherry picked from commit 541c5db) Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Gregory P. Smith <greg@krypto.org>
@bedevere-bot

This comment was marked as outdated.

@bedevere-bot

This comment was marked as off-topic.

@aisk
Copy link
Contributor Author

aisk commented Jan 7, 2024

Thanks for the view! The buildbot failed and complains [Errno 28] No space left on device, so I think it's not related to this change.

@aisk aisk deleted the root-in-zipfile branch January 7, 2024 07:16
@gpshead
Copy link
Member

gpshead commented Jan 7, 2024

someone has subscribed apple support to the email address for this issue? i'm locking it for a while.

@python python locked and limited conversation to collaborators Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants