[
https://issues.apache.org/jira/browse/CAMEL-22282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011101#comment-18011101
]
Claus Ibsen commented on CAMEL-22282:
-------------------------------------
No we had to revert back to as before, and then for 4.10.x you need to remove
the header if you want it like that - the old logic is correct, the bridge is
appending relative paths, and since you do a rest on GET /mock then the
relative path is /mock. And if you want to call an absolute path then remove
the CamelHTTP headers that has always been the case. The new skipControlHeaders
option make this easier so you can just set it = true instead of removing
headers.
> platform-http using spring boot won't create the producer URL correctly in
> case of bridged url
> ----------------------------------------------------------------------------------------------
>
> Key: CAMEL-22282
> URL: https://issues.apache.org/jira/browse/CAMEL-22282
> Project: Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 4.8.8, 4.10.6, 4.13.0
> Reporter: Marco Carletti
> Assignee: Marco Carletti
> Priority: Major
> Fix For: 4.10.7, 4.14.0
>
> Attachments: csb-app.zip
>
>
> In the scenario where service1 -> calls -> service2, the http producer will
> fail, it appends the first path to the bridged one.
> So if you call the service1 at the endpoint [http://localhost:8080/start] and
> the route is configured to call the service2 at [http://localhost:8081/chain]
> using
> {code:java}
> .toD("${header.backendServiceEndpoint}/chain?bridgeEndpoint=true")
> {code}
> the result will be [http://localhost:8081/chain/start] instead of the
> expected [http://localhost:8081/chain]
> Attached the reproducer [^csb-app.zip]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)