Skip to content

[airflow-ctl/v0-1-test] Require a request body on the asset materialize endpoint (#73328) - #76070

Merged
shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-9fbec03-airflow-ctl/v0-1-test
Oct 30, 2026
Merged

shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-9fbec03-airflow-ctl/v0-1-test

Conversation

@shahar1

@shahar1 shahar1 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Backport of #73328 to airflow-ctl/v0-1-test (cherry picked from 9fbec03).

Only the airflowctl part is backported: assets materialize now sends an empty JSON body (json={}). Servers that require the body (#73328, Airflow 3.4) reject the current bodyless POST with 422; 3.2 and 3.3 servers accept the empty body. The airflow-core change does not ship from this branch.

uv run --project airflow-ctl pytest airflow-ctl/tests passes, except test_server_connection_refused, which also fails on the unchanged branch in my local environment.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines

🤖 Generated with Claude Code

…ze endpoint (apache#73328)

* Require a request body on the asset materialize endpoint

The materialize endpoint accepted a bodyless POST and applied defaults, unlike the other mutating endpoints -- including its sibling trigger-run route -- which require an explicit JSON body. Requiring one here makes the contract consistent and unambiguous, and updates the in-tree UI and airflowctl clients accordingly.

* Add release note for the required materialize request body

Only the airflowctl json={} on assets materialize is backported. The airflow-core change that requires the body ships with core 3.4; sending an empty JSON body is also accepted by 3.2 and 3.3 servers.

(cherry picked from commit 9fbec03)
@shahar1
shahar1 enabled auto-merge (squash) October 30, 2026 17:13
@shahar1
shahar1 merged commit 52d261c into apache:airflow-ctl/v0-1-test Oct 30, 2026
13 checks passed
@shahar1
shahar1 deleted the backport-9fbec03-airflow-ctl/v0-1-test branch October 30, 2026 17:46
shahar1 added a commit that referenced this pull request Nov 19, 2026
…ze endpoint (#73328) (#76070)

* Require a request body on the asset materialize endpoint

The materialize endpoint accepted a bodyless POST and applied defaults, unlike the other mutating endpoints -- including its sibling trigger-run route -- which require an explicit JSON body. Requiring one here makes the contract consistent and unambiguous, and updates the in-tree UI and airflowctl clients accordingly.

* Add release note for the required materialize request body

Only the airflowctl json={} on assets materialize is backported. The airflow-core change that requires the body ships with core 3.4; sending an empty JSON body is also accepted by 3.2 and 3.3 servers.

(cherry picked from commit 9fbec03)

Co-authored-by: Pierre Jeambrun <[email protected]>
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.

2 participants