[ https://issues.apache.org/jira/browse/CAMEL-8417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14342216#comment-14342216 ]
Marc Lehnert commented on CAMEL-8417: ------------------------------------- E.g. the endpoint {code}http://www.example.com?a=RAW(value-a1)&b=RAW(value-b1)&b=RAW(value-b2){code} is resolved to {code}http://www.example.com?a=value-a1&b=RAW(value-b1)&b=RAW(value-b2){code} The RAW(..) marker won't be removed when a query parameter occurs more than once in an endpoint, since the parameter map (map of <String,Object>) value is not an instance of java.lang.CharSequence but java.util.List. > RAW_TOKEN_START and RAW_TOKEN_END not removed when query parameter occurs > multiple times > ---------------------------------------------------------------------------------------- > > Key: CAMEL-8417 > URL: https://issues.apache.org/jira/browse/CAMEL-8417 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.14.1 > Reporter: Marc Lehnert > > The tokens RAW_TOKEN_START ("RAW(") and RAW_TOKEN_END (")") are not removed > when the parameter value is a list. The bug is in "resolveRawParameterValues" > in org.apache.camel.util.UriSupport (lines 323, 324): > {code} > String value = entry.getValue().toString(); > if (value.startsWith(RAW_TOKEN_START) && > value.endsWith(RAW_TOKEN_END)) { > {code} > This does not work when entry.getValue() contains a list. -- This message was sent by Atlassian JIRA (v6.3.4#6332)