[resteasy] Client escapes slashes causing failure
Rebecca Searls
rsearls at redhat.com
Wed Sep 14 15:01:56 EDT 2016
If you replace RelativePath with String do you have the same issue?
What RelativePath class are you using?
----- Original Message -----
> From: "Gareth Healy" <garethahealy at gmail.com>
> To: resteasy at lists.jboss.org
> Sent: Wednesday, September 14, 2016 11:36:31 AM
> Subject: [resteasy] Client escapes slashes causing failure
>
> I have a client which uses the following method:
>
>
>
> @GET
> @Path("/{path}/treeHash")
> Response getEntityHash(@PathParam("path") RelativePath path);
>
> The RelativePath object gets converted into a value of:
> t;unit-testing/e;ua2shhq9
>
>
>
>
> Example full URL: /entity/t;unit-testing/e;ua2shhq9/treeHash
>
> When its executed, the forward slash is converted to %2F (encoded /). This
> causes the call to fail. What do i need to do, to make sure its not URL
> encoded?
>
> I've tried adding @Encoded, but that has no effect.
>
> Cheers.
>
> _______________________________________________
> resteasy mailing list
> resteasy at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/resteasy
>
More information about the resteasy
mailing list