You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Lukas Lowinger (Jira)" <ji...@apache.org> on 2023/05/04 08:18:00 UTC

[jira] [Updated] (CAMEL-19318) Rest endpoint path doesn't respect escaped characters (eg. "plus" sign)

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

Lukas Lowinger updated CAMEL-19318:
-----------------------------------
    Attachment: camel-rest-encode.zip

> 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: Critical
>         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.
>  



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