Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17268

Path parameters in rest requests are not url decoded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.13.0
    • None
    • camel-servlet
    • None
    • Unknown

    Description

      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 (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.

      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'

      Attachments

        Activity

          People

            Unassigned Unassigned
            henka-rl Henrik Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: