You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/11/19 09:33:28 UTC
[jira] [Resolved] (CAMEL-6977) Query parameter with ampersand yield
to exception
[ https://issues.apache.org/jira/browse/CAMEL-6977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-6977.
--------------------------------
Resolution: Not A Problem
Fix Version/s: 2.13.0
Assignee: Claus Ibsen
See this page
http://camel.apache.org/how-do-i-configure-endpoints.html
> Query parameter with ampersand yield to exception
> -------------------------------------------------
>
> Key: CAMEL-6977
> URL: https://issues.apache.org/jira/browse/CAMEL-6977
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.11.2
> Environment: Debian 7
> Reporter: Ulrich Kramer
> Assignee: Claus Ibsen
> Fix For: 2.13.0
>
>
> The following code
> {code}
> CamelContext context = new DefaultCamelContext();
> context.getEndpoint("jetty:http://localhost:8080/test?authPassword=4%26Xy%25");
> {code}
> yields to the following exception
> {code}
> Caused by: java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern
> at java.net.URLDecoder.decode(URLDecoder.java:187)
> at org.apache.camel.util.URISupport.addParameter(URISupport.java:233)
> at org.apache.camel.util.URISupport.parseQuery(URISupport.java:220)
> at org.apache.camel.util.URISupport.parseQuery(URISupport.java:108)
> at org.apache.camel.util.URISupport.parseParameters(URISupport.java:283)
> at org.apache.camel.util.URISupport.normalizeUri(URISupport.java:487)
> at org.apache.camel.impl.DefaultCamelContext.normalizeEndpointUri(DefaultCamelContext.java:580)
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)