<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 &quot;encodeSlash&quot;.</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&#39;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">&lt;<a href="mailto:garethahealy@gmail.com" target="_blank">garethahealy@gmail.com</a>&gt;</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&#39;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 &quot;%2F&quot;, 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">&lt;<a href="mailto:rsearls@redhat.com" target="_blank">rsearls@redhat.com</a>&gt;</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>
&gt; From: &quot;Gareth Healy&quot; &lt;<a href="mailto:garethahealy@gmail.com" target="_blank">garethahealy@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:resteasy@lists.jboss.org" target="_blank">resteasy@lists.jboss.org</a><br>
&gt; Sent: Wednesday, September 14, 2016 11:36:31 AM<br>
&gt; Subject: [resteasy] Client escapes slashes causing failure<br>
&gt;<br>
&gt; I have a client which uses the following method:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; @GET<br>
&gt; @Path(&quot;/{path}/treeHash&quot;)<br>
&gt; Response getEntityHash(@PathParam(&quot;path<wbr>&quot;) RelativePath path);<br>
&gt;<br>
&gt; The RelativePath object gets converted into a value of:<br>
&gt; t;unit-testing/e;ua2shhq9<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Example full URL: /entity/t;unit-testing/e;ua2sh<wbr>hq9/treeHash<br>
&gt;<br>
&gt; When its executed, the forward slash is converted to %2F (encoded /). This<br>
&gt; causes the call to fail. What do i need to do, to make sure its not URL<br>
&gt; encoded?<br>
&gt;<br>
&gt; I&#39;ve tried adding @Encoded, but that has no effect.<br>
&gt;<br>
&gt; Cheers.<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; resteasy mailing list<br>
&gt; <a href="mailto:resteasy@lists.jboss.org" target="_blank">resteasy@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/resteasy" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/resteasy</a><br>
&gt;<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>