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?

            Also affects Java 8 152

            Ryan_Morgan added a comment - Also affects Java 8 152

            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

            Though the workaround helps move past this issue, more people upgrading to Java 8 update 151+ will notice this problem so it would help to get this bug resolved and fix released.

            Lokesh Pathak added a comment - Though the workaround helps move past this issue, more people upgrading to Java 8 update 151+ will notice this problem so it would help to get this bug resolved and fix released.

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

                Created:
                Updated:
                Resolved: