You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/08/11 12:37:08 UTC

[PR] CAMEL-24380: Fix platform-http timeout returning Whitelabel Error Page [camel-spring-boot]

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 <no...@anthropic.com>
   
   🤖 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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-24380: Fix platform-http timeout returning Whitelabel Error Page [camel-spring-boot]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #1886:
URL: https://github.com/apache/camel-spring-boot/pull/1886


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org