Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189789

tomcat gzip-compressed response bodies appear to be broken in update 151

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b02
    • CPU:
      x86_64
    • OS:
      generic

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.7.0_80"
        Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
        Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Windows 7

        A DESCRIPTION OF THE PROBLEM :
        After updating to build 151 of the Windows 1.8 JRE, our users all started reporting issues working with our embedded server - which is running the apache-tomcat-7.0.70 webserver.

        Disabling compression in the tomcat server.xml or reverting to u144 remedies the issue. Specifically:

        java version "1.8.0_144"
        Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
        Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

        REGRESSION. Last worked in version 8u144

        ADDITIONAL REGRESSION INFORMATION:
        java version "1.8.0_151"
        Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
        Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Install JRE 1.8 b151 on a Windows system running Tomcat with "compression" set to "true" for affected connectors.

        The response header will indicate that the transfer encoding is "gzip", but will report an error uncompressing the data.

        e.g. Chrome returns "ERR_CONTENT_DECODING_FAILED"

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        A valid, decompressed response body
        ACTUAL -
        Error decompressing the response body (e.g. ERR_CONTENT_DECODING_FAILED)

        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        Disabling compression in Tomcat (set "compression" to "false" in server.xml)


          Issue Links

            Activity

            Hide
            phh Paul Hohensee added a comment - - edited
            I've attached a reproducer.
            Does the CPU18_01-defer-approved tag mean that this fix will not be in the January release?
            Show
            phh Paul Hohensee added a comment - - edited I've attached a reproducer. Does the CPU18_01-defer-approved tag mean that this fix will not be in the January release?
            Hide
            coffeys Sean Coffey added a comment -
            Thanks for test pointers [~phh]

            Code review started at http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-November/050118.html
            Show
            coffeys Sean Coffey added a comment - Thanks for test pointers [~phh] Code review started at http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-November/050118.html
            Hide
            rsingh Rahul Singh added a comment -
            [Regression] test(s) used for verification: java/util/zip/InflateIn_DeflateOut.java

            JDK 8u151b12 [Windows x64] where the issues has been reproduced: test(s) PASSED

            JDK 8u171b02 [Windows x64] where the fix is integrated: test(s) PASSED


            [Regression] test(s) used for verification: GzipTest.java( Bug JDK-8190678)

            JDK 8u151b12 [Windows x64 + Tomcat 7.0.82] where the issues has been reproduced: test(s) FAILED

            JDK 8u171b02 [Windows x64 + Tomcat 7.0.82] where the fix is integrated: test(s) PASSED

            Content-Encoding:gzip
            Content-Type:text/html;charset=ISO-8859-1
            Date:Tue, 23 Jan 2018 08:14:05 GMT
            Server:Apache-Coyote/1.1
            Transfer-Encoding:chunked
            Vary:Accept-Encoding
            Show
            rsingh Rahul Singh added a comment - [Regression] test(s) used for verification: java/util/zip/InflateIn_DeflateOut.java JDK 8u151b12 [Windows x64] where the issues has been reproduced: test(s) PASSED JDK 8u171b02 [Windows x64] where the fix is integrated: test(s) PASSED [Regression] test(s) used for verification: GzipTest.java( Bug JDK-8190678 ) JDK 8u151b12 [Windows x64 + Tomcat 7.0.82] where the issues has been reproduced: test(s) FAILED JDK 8u171b02 [Windows x64 + Tomcat 7.0.82] where the fix is integrated: test(s) PASSED Content-Encoding:gzip Content-Type:text/html;charset=ISO-8859-1 Date:Tue, 23 Jan 2018 08:14:05 GMT Server:Apache-Coyote/1.1 Transfer-Encoding:chunked Vary:Accept-Encoding
            Hide
            tbell Tim Bell added a comment -
            Reopening so hgupdater has a chance to close it automatically
            Show
            tbell Tim Bell added a comment - Reopening so hgupdater has a chance to close it automatically
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/b53efad7a349
            User: robm
            Date: 2018-04-19 03:23:46 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/b53efad7a349 User: robm Date: 2018-04-19 03:23:46 +0000

              People

              • Assignee:
                coffeys Sean Coffey
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                1 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: