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

RESTEasy returns wrong Content-Encoding data if client request gzip

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.14.Final, 3.0.24.Final, 4.0.0.Beta1
    • jaxrs
    • None

      By default, RESTEasy returns wrong Content-Encoding data if client request gzip data and if RESTEasy end-point contains @GZiP annotation

      1. Server contains end-point with @GZIP annotation, for example this:
            @GET
            @Path("/echo")
            @GZIP
            String echo(@QueryParam("name") String message);
      2. RESTEasy client send request with "Accept-Encoding: gzip, deflate"
      3. By default, server doesn't use GZIPDecodingInterceptor, GZIPEncodingInterceptor and AcceptEncodingGZIPFilter. So server doesn't compress data
      4. server sends "Content-Encoding: gzip" in header of response, although data is not compressed

            rhn-support-asoldano Alessio Soldano
            pjurak Petr Jurak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: