Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34101

Jetty and ETag filter do not play nice together

    Details

      Description

      It seems like Jetty has its own support for ETags on static content, it sets a response status code of 304 (Not Modified) as a result. Furthermore, it does not allow any writing to the response when this status code is set, throwing the IllegalStateException.

      Test steps:
      + deploy portal on Jetty
      + open home page in browser - all ok
      + reload page - exceptions

      11:38:14,519 ERROR [qtp748082224-17][ETagFilter:81] java.lang.IllegalStateException: NO CONTENT
      java.lang.IllegalStateException: NO CONTENT
              at org.eclipse.jetty.http.HttpGenerator.addContent(HttpGenerator.java:171)
              at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:167)
              at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:101)
              at com.liferay.portal.kernel.servlet.ServletResponseUtil.write(ServletResponseUtil.java:380)
              at com.liferay.portal.kernel.servlet.ServletResponseUtil.write(ServletResponseUtil.java:450)
              at com.liferay.portal.kernel.servlet.BufferCacheServletResponse.outputBuffer(BufferCacheServletResponse.java:302)
              at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:95)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
      ...
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 12 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE M5