[MAGNOLIA-5960] OncePerRequestAbstractMgnlFilter must not be called twice Created: 27/Oct/14  Updated: 31/Mar/17  Resolved: 03/Dec/14

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 5.3.4
Fix Version/s: 5.2.10, 5.3.6

Type: Bug Priority: Major
Reporter: Christian Ringele Assignee: Christoph Meier
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MAGNOLIA-6997 CLONE - OncePerRequestAbstractMgnlFil... Open
causality
caused by MAGNOLIA-5835 Filters that extend from OncePerReque... Closed
is causing MAGNOLIA-6012 Ensure a page defined in 404-section ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Original title:
404 page on public defined in web.xml: Triggering a 404 will render an empty white page


Everything described behaves this way only on a public instance. On Author instances all works fine.
Also all works perfect in 5.3.3, only in 5.3.4 this behavior appears.

Description:
Defining in the web.xml not a static docroot page, but a real Magnolia page.
For example:

  <error-page>
    <error-code>404</error-code>
    <location>/demo-project/about.html</location>
  </error-page>

Calling a non existing page will return an empty white page (attention you must not be logged in!):
/demo-project/notExistingPage.html

Analysis:
It must be a problem of cache, most likely related to MAGNOLIA-5835

  • It works on 5.3.3
  • It works on 5.3.4 author (not caching)
  • It works on 5.3.4 public when being logged in (not caching)
  • It works on 5.3.4 public when adding a parameter (not caching)
    /demo-project/notExistingPage.html?something
  • It is not working in 5.3.4 public when its is caching.

Also strange is:
Flushing the cache does not help.
No elements in cache, after request one element in cache, but the page is empty/blank.

Current work around:

  • Use a static html page form the docroot. (just partially satisfying)


 Comments   
Comment by Christoph Meier [ 03/Dec/14 ]

To fix this issue, MAGNOLIA-5835 has been reverted on both 5.2.x and 5.3.x (but not on master; the "integrater" should do that.)
Commits on branches "MAGNOLIA-5960_5.2.x", "MAGNOLIA-5960_5.3.x".

Generated at Mon Feb 12 04:10:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.