Skip to content

Path check fails when running on windows with Bad7zFile, "Specified path is bad" #714

@miurahr

Description

@miurahr

Describe the bug

A get_sanitized_output_path produces fileish for is_path_valid, suspecting canonical_path might be collapsing or producing a relative path missing the root, causing is_relative_to to fail and is_path_valid to return false unexpectedly.

Related issue

aqtinstall project files a ticket miurahr/aqtinstall#995

Environment (please complete the following information):

  • OS: Windows
  • Python: 3.13.11
  • py7zr version: v1.1.2

Test data(please attach in the report):

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions