Skip to content

Fix #71125: DAG processor treats any zip-format file as a potential DAG bundle - #71204

Open
saitejabandaru-in wants to merge 3 commits into
apache:mainfrom
saitejabandaru-in:fix-71125-dag-zip-extensions
Open

Fix #71125: DAG processor treats any zip-format file as a potential DAG bundle#71204
saitejabandaru-in wants to merge 3 commits into
apache:mainfrom
saitejabandaru-in:fix-71125-dag-zip-extensions

Conversation

@saitejabandaru-in

Copy link
Copy Markdown

Description

Fixes #71125. zipfile.is_zipfile() is a content sniff, which means it evaluates to true for files like .jar, .pptx, .docx, .xlsx etc. since they are technically zip archives. This resulted in the DAG processor incorrectly treating them as DAG bundles, leading to wasted processing, errors, and noise.

This PR updates the DAG discovery logic to ensure that a file explicitly has a .zip extension in addition to passing zipfile.is_zipfile() before we process it as a zipped DAG bundle.

Are you willing to submit a PR?

  • Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Sai Teja Bandaru and others added 3 commits July 28, 2026 16:43
Fixes apache#71125 by explicitly checking the file extension before checking if
it's a valid zip file, to prevent treating .jar, .pptx, etc. as DAG bundles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DAG processor treats any zip-format file (.jar, .pptx, .docx, .xlsx, etc.) as a potential DAG bundle, not just .zip

2 participants