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

Custom pages for 'page not found' keep loading for ~ 20s when GZIPFilter is activated

    Details

      Description

      Steps to reproduce it:

      1. Configure in portal-ext.properties the GZIPFilter property: com.liferay.portal.servlet.filters.gzip.GZipFilter=true
      2. Create a custom and simple html page to be loaded when the http not found error (404) occurs.
      3. Configure the page created in 2. in portal-ext.properties. For example: layout.friendly.url.page.not.found=/html/portal/my-custom-page-404.html
      4. Start the application and navigate to a nonexistent page. For example go to http://localhost:8080/sdfsfsf
      5. Observe that the browser keeps waiting for the page to load even though it is fully loaded. If you navigate with an iOS browser (f.e. from an iPhone or and iPad), the page does not load.

      It only happens when a Tomcat server (since version 8.0) is used and when GZipFilter is true.

      From PC:

        Observed behaviour: Browser keeps loading the page ~ 20s

       

       Expected behaviour: Browser does not wait after the page is loaded

       

      From iOS:

        Observed behaviour: Browser does not load the page

       

        Expected behaviour: Browser loads the page

       

       

             Additional comments:

      content-length of the response is the same with both configurations of GZipFilter (on and off). 2465 in this case is the content-length corresponding to the "unGZipped" response.

       

        Attachments

        1. content-length_not_found_OK.PNG
          content-length_not_found_OK.PNG
          17 kB
        2. content-length_not_found.PNG
          content-length_not_found.PNG
          18 kB
        3. custom_404.html
          0.2 kB
        4. LPS-73874-IOS-Pass.jpg
          LPS-73874-IOS-Pass.jpg
          49 kB
        5. LPS-73874-PC-Pass.png
          LPS-73874-PC-Pass.png
          36 kB
        6. not_found_iOS_OK.png
          not_found_iOS_OK.png
          32 kB
        7. not_found_iOS.png
          not_found_iOS.png
          24 kB
        8. not_found_pc_OK.PNG
          not_found_pc_OK.PNG
          38 kB
        9. Not_found_pc.PNG
          Not_found_pc.PNG
          46 kB
        10. timing_ERR.PNG
          timing_ERR.PNG
          13 kB
        11. timing_OK.PNG
          timing_OK.PNG
          11 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 18 weeks, 3 days ago

                Packages

                Version Package
                7.1.0 M2
                7.1.X
                Master