Skip to content

zlib extractall can not extract zip because of '/' in namelist #112795

Description

@bohdansolovey

Bug report

Bug description:

I am trying to extract all members from zipfile, and this zipfile is created by my code. In python3.11 and MacOS default archiver I can extract this file, but using 3.12 I see an error because of '/' in the zipfile.namelist()
debug_data_1_analyze.zip

with open('./myarchive.zip', 'rb') as fh:
    z = zipfile.ZipFile(fh)
    z.extractall('.')
image image

CPython versions tested on:

3.11, 3.12

Operating systems tested on:

Linux

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.12only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions