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 <[email protected]>
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 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../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;
     }
 

Reply via email to