hi,
if i add null check on kamelet property like below in my custom kamelet,
the HTTP url constructed gets corrupted.
   - to:
                              uri: https
                              parameters:
                                httpUri: "{{?customhttpUri}}"
                                bridgeEndpoint: true
                                throwExceptionOnFailure: false

refer the attached log below, I observe that the URL constructed would
become
http://127.0.0.1:1111/&bridgeEndpoint=true&throwExceptionOnFailure=false/foo/bar
Expectation was that the URL would be http://127.0.0.1:1111/foo/bar:

if I remove the optional placeholder "?" in front of the optional property
customhttpUri and use {{customhttpUri}}, I see the expected results.

org.apache.camel.processor.SendProcessor;>>>>
https://127.0.0.1:1111/&bridgeEndpoint=true&throwExceptionOnFailure=false
Exchange[4F9AEEBED33A422-0000000000000000]
org.apache.camel.component.http.HttpProducer;Using URL:
http://127.0.0.1:1111/&bridgeEndpoint=true&throwExceptionOnFailure=false/foo/bar
with method: POST
/&bridgeEndpoint=true&throwExceptionOnFailure=false/foo/bar
org.apache.camel.component.http.HttpProducer;Executing http POST method:
http://127.0.0.1:1111/&bridgeEndpoint=true&throwExceptionOnFailure=false/foo/bar

-- 
Regards,
Rohan Emmanuel

Reply via email to