Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1475

There is no option to disable "encodeSlashInPath"

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.19.Final
    • Fix Version/s: 3.0.24.Final, 3.1.4.Final
    • Component/s: None
    • Labels:
      None

      Description

      We are using Resteasy client for Hawkular.org. In the client I'm using proxyBuilder content as follows,

      @Path("/hawkular/inventory")
      public interface InventoryRestApi { 
        @GET
        @Path("/entity/{path:.+}")
        Response getEntity(@Encoded @PathParam("path") String canonicalPath);
      }
      

      I do not want to encode PathParam. I would like the get the url as http://localhost:8080/hawkular/inventory/entity/t;hawkular/f;jk-feed
      but I'm getting as http://localhost:8080/hawkular/inventory/entity/t;hawkular%2Ff;jk-feed

      It looks like by default it is calling, https://github.com/resteasy/Resteasy/blob/4e5acbb3f61263a300f0316d952233a404f9b702/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/proxy/processors/webtarget/PathParamProcessor.java#L23

      But I want to call 'target.resolveTemplate(paramName, param, false);' ie: encodeSlashInPath=false.

      Could you please help me to configure this settings, if we have a way already.

      Thank you!

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ron_sigal Ronald Sigal
                  Reporter:
                  jkandasa Jeeva Kandasamy
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: