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

Websphere&Weblogic and Gzip filter support

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: 6.1.20 EE GA2
    • Fix Version/s: 7.0.0 M1
    • Labels:
      None
    • Environment:
      Application Server: Websphere 8

      Description

      testing with Websphere8 and Weblogic10, the GZip Filter is not working.
      This is due to com.liferay.portal.servlet.filters.gzip.GZipFilter class, in row 41 there is this code:

               // The compression filter will work on JBoss, Jetty, JOnAS, OC4J, and
               // Tomcat, but may break on other servers
       
               if (super.isFilterEnabled()) {
                   if (ServerDetector.isJBoss() || ServerDetector.isJetty() ||
                       ServerDetector.isJOnAS() || ServerDetector.isOC4J() ||
                      ServerDetector.isTomcat()) {
      
                      _filterEnabled = true;
                  }
                   else {
                     _filterEnabled = false;
                  }
              }
      

      I was searching for explanation, unfortunately I didn't find any, only these JIRA tickets: LPS-24548, LPS-24547, LPS-7599, where somebody confirmed that by adding the following function, the gzipfilter works under websphere. ServerDetector.isWebSphere()

      Are there any issues (explanation) that prevent this function to be added to the code?

      Please review these rules for gzipping.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            tibor.jandi Tibor Jandi
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.0.0 M1