Skip to content

A packaged Dag named *.ZIP cannot be read back #74060

Closed

Description

@jason810496

Dag discovery accepts a packaged Dag whose name ends in .ZIP (the suffix check ignores letter case), but ZIP_REGEX in airflow-core/src/airflow/utils/file.py only matches a lowercase .zip path segment. So correct_maybe_zipped and open_maybe_zipped do not treat reports.ZIP/dag.py as a path inside an archive: reading the Dag's source back (for example DagCode) fails with NotADirectoryError. Either match the suffix case-insensitively or list only lowercase .zip.


Drafted with Claude Code (Opus 5.5).

Activity

  1. Subham-KRLX commented on Oct 2, 2026

    @Subham-KRLX
    Contributor

    I can take this. Will open a PR adding case insensitivity to ZIP_REGEX along with tests.

  2. added a commit that references this issue on Oct 5, 2026
    a20382f
  3. added a commit that references this issue on Oct 18, 2026
    b59f748
  4. added 2 commits that reference this issue on Oct 18, 2026
    d0c8534
    0038437
  5. added a commit that references this issue on Oct 27, 2026
    d3cea1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions