camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-12097) Combination of path param and query param does not work
Date Thu, 28 Dec 2017 12:04:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-12097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16305386#comment-16305386
] 

Claus Ibsen commented on CAMEL-12097:
-------------------------------------

Abbas, its fine to comment first.

When users have contributed a number of work first, then we can admin in JIRA to make users
self-assign tickets.

> Combination of path param and query param does not work
> -------------------------------------------------------
>
>                 Key: CAMEL-12097
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12097
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-restlet
>    Affects Versions: 2.20.1
>            Reporter: Radek Mensik
>             Fix For: 2.20.2, 2.21.0
>
>
> If in route are used both path parameter and query parameter:
> {code:java}
> restlet:{{data.access.url}}/v2/users/{userId}?projection=full
> {code}
> 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:
> {code:java}
> URI uri = new URI(normalizeUri(originalURI));
> {code}
> There is workaround to use Exchange.HTTP_QUERY header for query parameter and path must
not contain query parameters.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message