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

RESTEasy returns wrong Content-Encoding data if client request gzip

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.14.Final, 3.0.24.Final, 4.0.0.Beta1
    • Fix Version/s: 4.0.0.Beta1
    • Component/s: jaxrs
    • Labels:
      None

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  pjurak Petr Jurak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: