Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.20.1
-
None
-
Novice
Description
If in route are used both path parameter and query parameter:
restlet:{{data.access.url}}/v2/users/{userId}?projection=full
then because of commit :
https://github.com/apache/camel/commit/4da8d0ad4472e69a5728f67fa121b3b4150fdc33#diff-470ee30498bbf9ea5b6ea223650c0e1c
on lines 216-219 are escaped "
{" "}" so userId in my example is never replaced.
Escaping is done in URISupport.appendParametersToURI on line:
URI uri = new URI(normalizeUri(originalURI));
There is workaround to use Exchange.HTTP_QUERY header for query parameter and path must not contain query parameters.