camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel-Restlet 2.15.0 setting up SSL
Date Sun, 22 Mar 2015 15:09:40 GMT
Hi

Yeah that sounds like an issue. You are welcome to log a JIRA, attach
an unit test, and/or work on a patch.

http://camel.apache.org/contributing.html

On Sat, Mar 21, 2015 at 5:39 PM, sandp <sandeepreddip@gmail.com> wrote:
> Hello,
> I debugged the camel RestletComponent and DefaultRestletBinding, the code in
> RestletComponent.java started the server on HTTPS as expected.  Looks like
> there is something going in  *DefaultRestletBinding.java *
>
> *Method, line 72*
> public void *populateExchangeFromRestletRequest*(Request request, Response
> response, Exchange exchange)
>
> line 75
>  inMessage.setHeader(RestletConstants.RESTLET_REQUEST, request);
>
> The request object is carrying http version of the URI in  *resourceRef
> *=GET http://localhost:8443/cts-rest/cts/users/ HTTP/1.1 ( It should
> actually be the https version and *THIS IS THE ISSUE*)
>
> Line 104
> // copy URI to header
>  inMessage.setHeader(Exchange.HTTP_URI,
> request.getResourceRef().getIdentifier(true));
>
> Incorrect URI from the request copied to Exchange.HTTP_URI above hence my
> app its failing ( on validations) since its expecting https.
>
> *As a test,* I modified the  URI  in debug mode
> https://localhost:8443/cts-rest/cts/users/ and it worked.
>
> I think this is a bug. Appreciate if this gets addressed ASAP.
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Restlet-2-15-0-setting-up-SSL-tp5764552p5764553.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message