This is an automated email from the ASF dual-hosted git repository.

Croway pushed a commit to branch fix/http-ssl-double-path
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git

commit 95c9d53166bb541a6b41e980d13855cafdcd7b25
Author: croway <[email protected]>
AuthorDate: Thu Sep 3 19:23:40 2026 +0200

    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 <[email protected]>
    Claude-Session: https://claude.ai/code/session_015D2Ayyr8bDqenLgLpcgH4K
---
 .../apache/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 3b16611e..302856d5 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 class HttpSslClientRouter extends RouteBuilder {
                                .to("direct:call-ssl-server");
 
                from("direct:call-ssl-server")
-                               
.to("https://localhost:8443/ping?bridgeEndpoint=true";);
+                               .removeHeaders("CamelHttp*")
+                               .to("https://localhost:8443/ping";);
        }
 }

Reply via email to