<div dir="ltr"><div>Just digging into this a bit more, i can see the param processor is loaded [1] which calls the web target [2], but this calls an overload which always passes in true for "encodeSlash".</div><div><br></div>[1] <a href="https://github.com/resteasy/Resteasy/blob/master/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/proxy/processors/webtarget/PathParamProcessor.java" target="_blank">https://github.com/resteasy/<wbr>Resteasy/blob/master/resteasy-<wbr>client/src/main/java/org/<wbr>jboss/resteasy/client/jaxrs/<wbr>internal/proxy/processors/<wbr>webtarget/PathParamProcessor.<wbr>java</a><div>[2] <a href="https://github.com/resteasy/Resteasy/blob/master/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/ClientWebTarget.java#L134" target="_blank">https://github.com/resteasy/<wbr>Resteasy/blob/master/resteasy-<wbr>client/src/main/java/org/<wbr>jboss/resteasy/client/jaxrs/<wbr>internal/ClientWebTarget.java#<wbr>L134</a><br></div><div>[3] <a href="https://github.com/resteasy/Resteasy/blob/master/resteasy-jaxrs/src/main/java/org/jboss/resteasy/specimpl/ResteasyUriBuilder.java#L1085" target="_blank">https://github.com/resteasy/<wbr>Resteasy/blob/master/resteasy-<wbr>jaxrs/src/main/java/org/jboss/<wbr>resteasy/specimpl/<wbr>ResteasyUriBuilder.java#L1085</a><br></div><div><br></div><div>The param processor is created by the factory [4] so i can't see how to change the default behaviour.</div><div><br></div><div>[4] <a href="https://github.com/resteasy/Resteasy/blob/master/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/proxy/processors/ProcessorFactory.java">https://github.com/resteasy/Resteasy/blob/master/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/proxy/processors/ProcessorFactory.java</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 9:54 AM, Gareth Healy <span dir="ltr"><<a href="mailto:garethahealy@gmail.com" target="_blank">garethahealy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've added a simple unit test which shows the behaviour @ <a href="https://github.com/garethahealy/resteast-pathparam-escape" target="_blank">https://github.com/<wbr>garethahealy/resteast-<wbr>pathparam-escape</a><div><br></div><div>Contains 1 test, which uses a ClientRequestFilter to check what the URI is, if it contains "%2F", then it fails.</div><div><br></div><div>Cheers.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 14, 2016 at 8:01 PM, Rebecca Searls <span dir="ltr"><<a href="mailto:rsearls@redhat.com" target="_blank">rsearls@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
If you replace RelativePath with String do you have the same issue?<br>
What RelativePath class are you using?<br>
<div><div><br>
----- Original Message -----<br>
> From: "Gareth Healy" <<a href="mailto:garethahealy@gmail.com" target="_blank">garethahealy@gmail.com</a>><br>
> To: <a href="mailto:resteasy@lists.jboss.org" target="_blank">resteasy@lists.jboss.org</a><br>
> Sent: Wednesday, September 14, 2016 11:36:31 AM<br>
> Subject: [resteasy] Client escapes slashes causing failure<br>
><br>
> I have a client which uses the following method:<br>
><br>
><br>
><br>
> @GET<br>
> @Path("/{path}/treeHash")<br>
> Response getEntityHash(@PathParam("path<wbr>") RelativePath path);<br>
><br>
> The RelativePath object gets converted into a value of:<br>
> t;unit-testing/e;ua2shhq9<br>
><br>
><br>
><br>
><br>
> Example full URL: /entity/t;unit-testing/e;ua2sh<wbr>hq9/treeHash<br>
><br>
> When its executed, the forward slash is converted to %2F (encoded /). This<br>
> causes the call to fail. What do i need to do, to make sure its not URL<br>
> encoded?<br>
><br>
> I've tried adding @Encoded, but that has no effect.<br>
><br>
> Cheers.<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> resteasy mailing list<br>
> <a href="mailto:resteasy@lists.jboss.org" target="_blank">resteasy@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/resteasy" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/resteasy</a><br>
><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>