You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A packaged Dag named *.ZIP cannot be read back #74060
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.
Activity
Subham-KRLX commentedon Oct 2, 2026
I can take this. Will open a PR adding case insensitivity to ZIP_REGEX along with tests.
Make ZIP_REGEX case-insensitive to match .ZIP archives
Make ZIP_REGEX case-insensitive to match .ZIP archives (#74269)
[v3-4-test] Make ZIP_REGEX case-insensitive to match .ZIP archives (#…
[v3-4-test] Make ZIP_REGEX case-insensitive to match .ZIP archives (#…
Make ZIP_REGEX case-insensitive to match .ZIP archives (apache#74269)