potiuk opened a new pull request, #68388:
URL: https://github.com/apache/airflow/pull/68388

   `DagErrorHandler` interpolated the raw `str(exc)` of a 
`DeserializationError` directly into the HTTP 500 `detail`, ignoring the 
`api.expose_stacktrace` setting that its sibling 
`_UniqueConstraintErrorHandler` already honors. This makes the two handlers 
consistent: the raw exception text is returned only when `expose_stacktrace` is 
enabled; otherwise the response carries a generic message plus a correlation 
id, and the full error is logged server-side (previously it was not logged at 
all).
   
   - Gate the raw deserialization-error text behind `api.expose_stacktrace`, 
mirroring `_UniqueConstraintErrorHandler`.
   - Log the error server-side with a correlation id so detail is not lost when 
not exposed.
   - Tests: existing raw-detail cases now run under `expose_stacktrace=True`; a 
new case asserts the detail is withheld + an id is returned + the error is 
logged when off.
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Opus 4.8 (1M context)
   
   Generated-by: Claude Opus 4.8 (1M context) following the guidelines at
   
https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to