Anton Koscejev created CAMEL-11658:

             Summary: URISyntaxException in RestletProducer
                 Key: CAMEL-11658
             Project: Camel
          Issue Type: Bug
          Components: camel-restlet
    Affects Versions: 2.19.0
            Reporter: Anton Koscejev

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 

Before this change the uri would be safely encoded within restlet's Request 

See this code in RestletProducer:
            String resourceUri = buildUri(endpoint, exchange);
            URI uri = new URI(resourceUri); // <- causes exception on unencoded 
            request = new Request(endpoint.getRestletMethod(), resourceUri); // 
<- will encode uri
            binding.populateRestletRequestFromExchange(request, exchange);

This message was sent by Atlassian JIRA

Reply via email to