davsclaus opened a new pull request, #1886:
URL: https://github.com/apache/camel-spring-boot/pull/1886

   ## Summary
   - Remove the `WebAsyncTask.onTimeout()` callback that called 
`response.sendError(503)` directly, bypassing Spring MVC's exception resolution 
chain
   - Without the callback, Spring's default `AsyncRequestTimeoutException` 
propagates normally, populating the `jakarta.servlet.error.*` request 
attributes so that Boot's `BasicErrorController` renders the standard JSON 
error response
   - This aligns with how `main` and `4.22.x` handle timeouts (neither has a 
custom `onTimeout` callback)
   
   ## Test plan
   - [ ] Verify that a platform-http route with a slow downstream returns 
Spring Boot's standard JSON error response (`{"status":503,"error":"Service 
Unavailable",...}`) when the request timeout is exceeded
   - [ ] Verify that non-timeout requests are unaffected
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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