Skip to content

zipfile.Path.name uses inappropriate Windows semantics #123693

Closed
@jaraco

Description

@jaraco

Bug report

Bug description:

In #123426 (comment), we learned that Python 3.10 (only) ended up with a version of zipfile.Path that uses pathlib.Path (platform-variable) behavior for parsing the name. As a result, zipfiles with names like V: foo or foo\bar get incorrect names and are thus broken.

This issue was revealed by applying additional tests for GH-123270.

The issue was corrected incidentally in zipp 3.16.2 and Python 3.11. The issue does not affect Python 3.9.

CPython versions tested on:

3.10

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixesOS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions