Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2936

Error pages not served properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.2.2
    • None
    • cache
    • None

    Description

      If a user tries to access a page which is protected by content-security-filter (as opposed to uri-security-filter, which is located before the cache and gzip filters), the error page is simply not served. This is fairly obvious when looking at the code:

              if (statusCode != HttpServletResponse.SC_OK) {
                  return;
              }
      

      This links back to MAGNOLIA-2178, but

      • commenting that bit out seems to work fine (tried Safari 3.0.4, 3.2.1, 4.0.3, Firefox 3.0.4), I can't seem the reproduce the problems of MAGNOLIA-2178
      • I'm trying to see what changes could have made this work/fail before, but I can't quite see it right now.

      Given the current code of GZipFilter, if there was indeed an incompatibility between error pages headers and the fact these pages are gzipped, we could anyway easily serve those non-zipped. (it wasn't that trivial when GZipFilter was wrapping the response's output with a GZipOutputStream)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                had Jan Haderka
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD