Handle non-dictionary json payload during logging to avoid internal server error.#62355
Merged
pierrejeambrun merged 1 commit intoapache:mainfrom Feb 23, 2026
Merged
Handle non-dictionary json payload during logging to avoid internal server error.#62355pierrejeambrun merged 1 commit intoapache:mainfrom
pierrejeambrun merged 1 commit intoapache:mainfrom
Conversation
Contributor
Backport successfully created: v3-1-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
github-actions Bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Feb 23, 2026
…d internal server error. (apache#62355) (cherry picked from commit 46a433d) Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
xvega
pushed a commit
to xvega/airflow
that referenced
this pull request
Feb 24, 2026
Contributor
Author
|
Thanks @pierrejeambrun for the review and merge. |
dominikhei
pushed a commit
to dominikhei/airflow
that referenced
this pull request
Mar 11, 2026
Ankurdeewan
pushed a commit
to Ankurdeewan/airflow
that referenced
this pull request
Mar 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
action_logginglogs the masked payload for endpoints accepting json payload. But a list is also a valid json and in this case iterating through withitemscausesAttributeErrorand internal server error. This change skips logging and lets FastAPI handle payload structure validation. After this PR 422 status code will be returned with proper error message instead of internal server error.This still results in audit log entry like below though but validating for all payloads to be dictionary feels very restrictive and something that should be handled at FastAPI layer instead.
closes: #62354
Was generative AI tooling used to co-author this PR?
No