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 2015/07/09 11:54:04 UTC

[jira] [Commented] (CAMEL-8848) Camel HTTP End point Special Charcter(+) issue

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

Claus Ibsen commented on CAMEL-8848:
------------------------------------

Does it work without recipient list. Also test with latest Camel release.

> Camel HTTP End point Special Charcter(+) issue
> ----------------------------------------------
>
>                 Key: CAMEL-8848
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8848
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.0
>            Reporter: Thomas
>
> I am having issues hitting an http end point via camel recipientlist(2.14).
> When the url has a + sign(in one of the parameters) then its breaking. I also tried %2B then it is getting converted to space.
> There is a JIRA: https://issues.apache.org/jira/browse/CAMEL-6176
> However when i am using RAW its not working with recipientlist.
> Getting following exception:
> {code}
> Caused by: java.net.URISyntaxException: Illegal character in query at index 558: http://someurl?facet=true&binary=true&-fq=nm_task_type%3A%28OTM_QUERY+OR+OTM_CLIENT_QUERY%29&facet.query=%7B%21key%3D%22%5B*+TO+NOW-30%5D%22%7Ddt_created%3A%5B*+TO+NOW-30DAY%5D&facet.query=%7B%21key%3D%22%5BNOW-30DAY+TO+NOW-15DAY%5D%22%7Ddt_created%3A%5BNOW-30DAY+TO+NOW-15DAY%5D&facet.query=%7B%21key%3D%22%5BNOW-15DAY+TO+NOW-7DAY%5D%22%7Ddt_created%3A%5BNOW-15DAY+TO+NOW-7DAY%5D&facet.query=%7B%21key%3D%22%5BNOW-7DAY+TO+NOW-1DAY%5D%22%7Ddt_created%3A%5BNOW-7DAY+TO+NOW-1DAY%5D&facet.query=RAW({!key="[NOW-1DAY TO NOW]"}dt_created:[NOW-1DAY TO NOW+1DAY])&q=*%3A*&rows=0
>     at java.net.URI$Parser.fail(URI.java:2829)
>     at java.net.URI$Parser.checkChars(URI.java:3002)
>     at java.net.URI$Parser.parseHierarchical(URI.java:3092)
>     at java.net.URI$Parser.parse(URI.java:3034)
>     at java.net.URI.<init>(URI.java:595)
>     at org.apache.camel.util.URISupport.createURIWithQuery(URISupport.java:334)
>     at org.apache.camel.util.URISupport.createRemainingURI(URISupport.java:428)
>     at org.apache.camel.component.http.HttpComponent.createEndpoint(HttpComponent.java:248)
>     at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:122)
>     at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:525)
>     ... 52 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)