[ 
https://issues.apache.org/jira/browse/CAMEL-25988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18131001#comment-18131001
 ] 

Claus Ibsen commented on CAMEL-25988:
-------------------------------------

Fix in https://github.com/apache/camel/pull/28363

_Claude Code on behalf of davsclaus_

> camel-jsonata - for an http resource the endpoint options are sent to the 
> server instead of being used
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-25988
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25988
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 4.18.0, 4.22.0, 4.23.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> For an http or https resource, {{JsonataComponent.createEndpoint}} appends 
> the remaining parameters to the uri of the resource 
> ({{ResourceHelper.appendParameters}}, main e6885df7894d, lines 56-60) before 
> the endpoint options are set from them. The options of the endpoint, such as 
> {{inputType}}, {{outputType}} and {{prettyPrint}}, are therefore sent to the 
> remote server as query parameters and not used. The jolt and jslt components 
> set the endpoint options first.
> Checked on 4.24.0-SNAPSHOT with {{camel run}} and a local {{python3 -m 
> http.server}}:
> * 
> {{jsonata:http://127.0.0.1:8095/t.jsonata?inputType=JsonString&outputType=JsonString}}
>  requested {{GET /t.jsonata?inputType=JsonString&outputType=JsonString}} and 
> gave an empty ObjectNode, as the default options do;
> * the same expression from a {{file:}} resource with the same options gave 
> the String {{\{"fullName":"Camel"\}}}.
> *Proposed change*: set the endpoint options from the parameters first, as the 
> other components do, and append only the parameters that are left to the http 
> uri.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to