You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henrik Karlsson (Jira)" <ji...@apache.org> on 2021/12/03 15:31:00 UTC

[jira] [Created] (CAMEL-17268) Path parameters in rest request are not url decoded

Henrik Karlsson created CAMEL-17268:
---------------------------------------

             Summary: Path parameters in rest request are not url decoded
                 Key: CAMEL-17268
                 URL: https://issues.apache.org/jira/browse/CAMEL-17268
             Project: Camel
          Issue Type: Bug
          Components: camel-servlet
    Affects Versions: 3.13.0
            Reporter: Henrik Karlsson


Path parameter values in rest request are not url decoded before set as headers.

Example:

The operation GetUser has this path /users/\{email}. Then sending a request to this endpoint with [email=john.doe@acme.com|mailto:email=john.doe@acme.com] (url encoded -> /users/john.doe%40acme.com) will result in a header email=john.doe%40acme.com instead of the expected [email=john.doe@acme.com.|mailto:email=john.doe@acme.com.]

If email would have been a query parameter instead (/users?email=john.doe%40acme.com), the value of the header email would be 'john.doe@acme.com'



--
This message was sent by Atlassian Jira
(v8.20.1#820001)