[ 
https://issues.apache.org/jira/browse/CAMEL-19318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-19318.
---------------------------------
    Resolution: Won't Fix

> Rest endpoint path doesn't respect escaped characters (eg. "plus" sign)
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-19318
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19318
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http, rest
>    Affects Versions: 3.18.3
>            Reporter: Lukas Lowinger
>            Priority: Minor
>         Attachments: camel-rest-encode.zip
>
>
> Having 
> {code}
> exchange.getIn().getHeaders().put("expression", URLEncoder.encode("4+15", 
> StandardCharsets.UTF_8));
> {code}
> {code}
> .to("rest:get:simplify/{expression}?host=https://newton.vercel.app/api/v2/";)
> {code}
> will produce request with "expression=4 15" (missing plus sign). I've read 
> about using RAW function, but not sure how to use it with path in rest call.
> Reproducer:
> {code}
> mvn package -DskipTests && mvn camel:run
> {code}
> and it prints 
> {code}
> {"operation":"simplify","expression":"4 15","result":"60"}
> {code}
> instead of 
> {code}
> {"operation":"simplify","expression":"4+15","result":"19"}
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to