You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/08/11 12:36:59 UTC
(camel-spring-boot) branch fix/CAMEL-24380 created (now 1b1ea1b7ad6)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a change to branch fix/CAMEL-24380
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
at 1b1ea1b7ad6 CAMEL-24380: Fix platform-http timeout returning Whitelabel Error Page
This branch includes the following new commits:
new 1b1ea1b7ad6 CAMEL-24380: Fix platform-http timeout returning Whitelabel Error Page
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(camel-spring-boot) 01/01: CAMEL-24380: Fix platform-http timeout returning Whitelabel Error Page
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch fix/CAMEL-24380
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit 1b1ea1b7ad6705e1f13e20f53ee3db31a25d8839
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Aug 11 14:36:44 2026 +0200
CAMEL-24380: Fix platform-http timeout returning Whitelabel Error Page
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.
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
Signed-off-by: Claus Ibsen <cl...@gmail.com>
---
.../platform/http/springboot/SpringBootPlatformHttpConsumer.java | 6 ------
1 file changed, 6 deletions(-)
diff --git a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java
index 9d9f5189294..dcf883385b1 100644
--- a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java
+++ b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java
@@ -110,12 +110,6 @@ public class SpringBootPlatformHttpConsumer extends DefaultConsumer implements P
}
return null;
});
- task.onTimeout(() -> {
- if (!response.isCommitted()) {
- response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
- }
- return null;
- });
return task;
}