You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ulrich Kramer (JIRA)" <ji...@apache.org> on 2013/11/19 09:17:21 UTC

[jira] [Created] (CAMEL-6977) Query parameter with ampersand yield to exception

Ulrich Kramer created CAMEL-6977:
------------------------------------

             Summary: 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


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)