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

JAX-RS client proxy objects ignore @Encoded annotation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.0.7.Final
    • jaxrs
    • None

    Description

      The JAX-RS client ignores @Encoded annotations on client methods. I am trying to implement an API which takes a "key path" that looks like a UNIX directory e.g. to set key "/foo/bar/baz" you would POST to http://myservice:80/key/foo/bar/baz

      I was hoping that

      @Path("/key/{keypath}")
      @POST
      Response setKey(@Encoded @PathParam("keypath") String key);
      

      would work, but the ProcessorFactory checks for @Encoded and then ignores it:

      ProcessorFactory.java:78

            boolean isEncoded = FindAnnotation.findAnnotation(annotations,
                    Encoded.class) != null;
      

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              stevenschlansker Steven Schlansker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: