Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-154

Requests initiated with ERROR dispatcher do not work with CacheFilter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.5.1
    • 5.5
    • cache core
    • None
    • Kromeriz 73
    • 5

    Description

      Before 5.5, CacheFilter was not executed for requests initiated with the ERROR dispatcher, because CacheFilter extended OncePerRequestAbstractMgnlFilter.

      In 5.5, CacheFilter does not extend OncePerRequestAbstractMgnlFilter anymore which causes the CacheFilter to be executed twice for example when requesting page that does not exist. Both executions share the same cache key so in the second request (initiated with the ERROR dispatcher) an empty response is returned.

      This leads to error-pages (defined in web.xml) not working.

      If CacheFilter is disabled or error-pages excluded from caching by other means, then they are working as expected.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                ttsalonen Tommi Salonen
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 50m
                      50m