Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-4999

HTTP Compression with Java 8 update 151 breaks the Crowd UI

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 3.0.2, 3.1.1
    • 3.0.1
    • None
    • None

      Summary

      Crowd UI breaks when using some releases of Java 8, not loading the CSS of the page.

      Environment

      Tested with Java 1.8.0_60 , 1.8.0_152 and 1.8.0_151

      Steps to Reproduce

      1. Install Java 1.8.0_151
      2. Install Crowd 3.0.1

      Expected Results

      The login screen loads fine after the installation.

      Actual Results

      The login screen loads without CSS. Also, the below exception is thrown in the xxxxxxx.log file:

      2017-11-06 18:15:49,041 localhost-startStop-1 INFO [ContainerBase.[Catalina].[localhost].[/crowd]] org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
      2017-11-06 18:16:05,156 http-bio-8095-exec-9 WARN [webresource] error in `Content.writeTo` for com.atlassian.soy.soy-template-plugin:soy-deps/soyutils.js
      java.lang.RuntimeException: org.apache.catalina.connector.ClientAbortException: java.net.SocketException: Broken pipe (Write failed)
      	at com.atlassian.plugin.webresource.impl.support.Support.copy(Support.java:65)
      	at com.atlassian.plugin.webresource.transformer.MinificationTransformer$1.writeTo(MinificationTransformer.java:52)
      	at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$2.lambda$writeTo$0(ResourceServingHelpers.java:184)
      	at com.atlassian.plugin.cache.filecache.impl.PassThroughCache.cache(PassThroughCache.java:18)
      	at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$2.writeTo(ResourceServingHelpers.java:184)
      	at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$8.writeTo(ResourceServingHelpers.java:384)
      	at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$1.writeTo(ResourceServingHelpers.java:125)
      	at com.atlassian.plugin.webresource.impl.http.Controller$6.write(Controller.java:362)
      

      Notes

      This problem might also affect OpenJDK.

      Workaround

      Disable the HTTP compression as described in this KB: https://confluence.atlassian.com/crowdkb/how-to-disable-http-compression-on-crowd-2-9-and-above-856714638.html

            [CWD-4999] HTTP Compression with Java 8 update 151 breaks the Crowd UI

            You can downgrade the JDK back to the previous version. I would suggest upgrade crowd for security improvements.

            Ryan Morgan added a comment - You can downgrade the JDK back to the previous version. I would suggest upgrade crowd for security improvements.

            Hello Team,

            We have Crowd Version: 3.1.1 and java version "1.8.0_181" it is also effecting so kindly let us know how can solve this issue?

            Deleted Account (Inactive) added a comment - Hello Team, We have Crowd Version: 3.1.1 and java version "1.8.0_181" it is also effecting so kindly let us know how can solve this issue?
            Monique Khairuliana (Inactive) made changes -
            Epic Link Original: CWD-4704 [ 600140 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 2474401 ] New: JAC Bug Workflow v3 [ 3365934 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Monique Khairuliana (Inactive) made changes -
            Description Original: h3. Summary
            Crowd UI breaks when using some releases of Java 8, not loading the CSS of the page.

            h3. Environment
            Tested with *Java 1.8.0_60* and *1.8.0_151*

            h3. Steps to Reproduce
            # Install Java 1.8.0_151
            # Install Crowd 3.0.1

            h3. Expected Results
            The login screen loads fine after the installation.

            h3. Actual Results
            The login screen loads without CSS. Also, the below exception is thrown in the xxxxxxx.log file:
            {noformat}
            2017-11-06 18:15:49,041 localhost-startStop-1 INFO [ContainerBase.[Catalina].[localhost].[/crowd]] org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
            2017-11-06 18:16:05,156 http-bio-8095-exec-9 WARN [webresource] error in `Content.writeTo` for com.atlassian.soy.soy-template-plugin:soy-deps/soyutils.js
            java.lang.RuntimeException: org.apache.catalina.connector.ClientAbortException: java.net.SocketException: Broken pipe (Write failed)
            at com.atlassian.plugin.webresource.impl.support.Support.copy(Support.java:65)
            at com.atlassian.plugin.webresource.transformer.MinificationTransformer$1.writeTo(MinificationTransformer.java:52)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$2.lambda$writeTo$0(ResourceServingHelpers.java:184)
            at com.atlassian.plugin.cache.filecache.impl.PassThroughCache.cache(PassThroughCache.java:18)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$2.writeTo(ResourceServingHelpers.java:184)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$8.writeTo(ResourceServingHelpers.java:384)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$1.writeTo(ResourceServingHelpers.java:125)
            at com.atlassian.plugin.webresource.impl.http.Controller$6.write(Controller.java:362)
            {noformat}
             
            h3. Notes
            This problem might also affect OpenJDK.

            h3.Workaround
            Disable the HTTP compression as described in this KB: https://confluence.atlassian.com/crowdkb/how-to-disable-http-compression-on-crowd-2-9-and-above-856714638.html
            New: h3. Summary
            Crowd UI breaks when using some releases of Java 8, not loading the CSS of the page.

            h3. Environment
            Tested with *Java 1.8.0_60* , *1.8.0_152* and *1.8.0_151*

            h3. Steps to Reproduce
            # Install Java 1.8.0_151
            # Install Crowd 3.0.1

            h3. Expected Results
            The login screen loads fine after the installation.

            h3. Actual Results
            The login screen loads without CSS. Also, the below exception is thrown in the xxxxxxx.log file:
            {noformat}
            2017-11-06 18:15:49,041 localhost-startStop-1 INFO [ContainerBase.[Catalina].[localhost].[/crowd]] org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
            2017-11-06 18:16:05,156 http-bio-8095-exec-9 WARN [webresource] error in `Content.writeTo` for com.atlassian.soy.soy-template-plugin:soy-deps/soyutils.js
            java.lang.RuntimeException: org.apache.catalina.connector.ClientAbortException: java.net.SocketException: Broken pipe (Write failed)
            at com.atlassian.plugin.webresource.impl.support.Support.copy(Support.java:65)
            at com.atlassian.plugin.webresource.transformer.MinificationTransformer$1.writeTo(MinificationTransformer.java:52)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$2.lambda$writeTo$0(ResourceServingHelpers.java:184)
            at com.atlassian.plugin.cache.filecache.impl.PassThroughCache.cache(PassThroughCache.java:18)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$2.writeTo(ResourceServingHelpers.java:184)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$8.writeTo(ResourceServingHelpers.java:384)
            at com.atlassian.plugin.webresource.impl.helpers.ResourceServingHelpers$1.writeTo(ResourceServingHelpers.java:125)
            at com.atlassian.plugin.webresource.impl.http.Controller$6.write(Controller.java:362)
            {noformat}
             
            h3. Notes
            This problem might also affect OpenJDK.

            h3.Workaround
            Disable the HTTP compression as described in this KB: https://confluence.atlassian.com/crowdkb/how-to-disable-http-compression-on-crowd-2-9-and-above-856714638.html
            Eduardo Mallmann (Inactive) made changes -
            Comment [ A comment with security level 'atlassian-staff' was removed. ]

            Also affects Java 8 152

            Ryan_Morgan added a comment - Also affects Java 8 152
            Patryk made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Verified [ 10005 ] New: Resolved [ 5 ]

            Patryk added a comment -

            Hello,

            Tomcat compression is disabled by default as a workaround for this issue in Crowd 3.0.2. A proper fix is coming in Crowd 3.1.0.

            Best regards,
            Patryk Petrowski

            Patryk added a comment - Hello, Tomcat compression is disabled by default as a workaround for this issue in Crowd 3.0.2. A proper fix is coming in Crowd 3.1.0. Best regards, Patryk Petrowski

              Unassigned Unassigned
              emallmann Eduardo Mallmann (Inactive)
              Affected customers:
              4 This affects my team
              Watchers:
              19 Start watching this issue

                Created:
                Updated:
                Resolved: