From 95c9d53166bb541a6b41e980d13855cafdcd7b25 Mon Sep 17 00:00:00 2001 From: croway Date: Thu, 3 Sep 2026 19:23:40 +0200 Subject: [PATCH] Fix http-ssl example: remove bridgeEndpoint causing doubled /ping/ping path HttpSslClientRouter used bridgeEndpoint=true on a producer with a static URI (https://localhost:8443/ping). bridgeEndpoint only controls whether the CamelHttpUri header is used as the request base; it does not stop the CamelHttpPath header (set by the inbound platform-http consumer to /ping) from being unconditionally appended in HttpHelper.createURL. The result was every request going to /ping/ping, a 404 from the server, and a 500 back to the caller for all three documented scenarios (one-way SSL, two-way SSL, Undertow server). Dropping bridgeEndpoint and stripping the inbound CamelHttp* headers before the producer call avoids the append. Verified curl http://localhost:8080/ping returns 200/pong for all three scenarios. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_015D2Ayyr8bDqenLgLpcgH4K --- .../camel/springboot/example/httpssl/HttpSslClientRouter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http-ssl/ssl-client/src/main/java/org/apache/camel/springboot/example/httpssl/HttpSslClientRouter.java b/http-ssl/ssl-client/src/main/java/org/apache/camel/springboot/example/httpssl/HttpSslClientRouter.java index 3b16611ee..302856d5e 100644 --- a/http-ssl/ssl-client/src/main/java/org/apache/camel/springboot/example/httpssl/HttpSslClientRouter.java +++ b/http-ssl/ssl-client/src/main/java/org/apache/camel/springboot/example/httpssl/HttpSslClientRouter.java @@ -31,6 +31,7 @@ public void configure() throws Exception { .to("direct:call-ssl-server"); from("direct:call-ssl-server") - .to("https://localhost:8443/ping?bridgeEndpoint=true"); + .removeHeaders("CamelHttp*") + .to("https://localhost:8443/ping"); } }