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 2019/08/06 10:55:00 UTC

[jira] [Resolved] (CAMEL-11658) URISyntaxException in RestletProducer

     [ https://issues.apache.org/jira/browse/CAMEL-11658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-11658.
---------------------------------
    Resolution: Won't Fix

> URISyntaxException in RestletProducer
> -------------------------------------
>
>                 Key: CAMEL-11658
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11658
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-restlet
>    Affects Versions: 2.19.0
>            Reporter: Anton Koscejev
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> CAMEL-10392 introduced session/cookie handling for camel-restlet. However, this also introduced a bug where new URI is created from resourceUri before it's encoded.
> Before this change the uri would be safely encoded within restlet's Request constructor.
> See this code in RestletProducer:
> {code}
>             String resourceUri = buildUri(endpoint, exchange);
>             URI uri = new URI(resourceUri); // <- causes exception on unencoded uri
>             request = new Request(endpoint.getRestletMethod(), resourceUri); // <- will encode uri
>             binding.populateRestletRequestFromExchange(request, exchange);
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)