Can you show the kamelet code?

Il gio 1 mag 2025, 14:10 Rohan Emmanuel <rohan.emmanue...@gmail.com> ha
scritto:

> this is a custom kamelet which i had created.
>
> On Thu, May 1, 2025 at 4:09 PM Andrea Cosentino <anco...@gmail.com> wrote:
>
> > Is this a custom kamelet or one from the catalog?
> >
> > Il giorno gio 1 mag 2025 alle ore 07:07 Rohan Emmanuel <
> > rohan.emmanue...@gmail.com> ha scritto:
> >
> > > 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
> > > <
> >
> https://127.0.0.1:1111/&bridgeEndpoint=true&throwExceptionOnFailure=falseExchange%5B4F9AEEBED33A422-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
> > >
> >
>
>
> --
> Regards,
> Rohan Emmanuel
>

Reply via email to