Hi, Try switching on debugging for the magnolia filter chain, and see where it's misdirecting you.
Normally it should go something like: Magnolia normal flow -> page miss -> tomcat -> forward to /service/error404.html -> Magnolia error flow -> cms filter -> serve 404 page content I assume that somewhere in there you are hitting the clientCallback filter to get the login screen. Regards, Richard > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:user-list-owner@magnolia- cms.com] Im Auftrag von zolesz (via > Magnolia Forums) > Gesendet: Montag, 23. Mai 2016 16:26 > An: Magnolia User List > Betreff: [magnolia-user] Custom error page is not shown for > unauthenticated users > > Hi Magnolians, > > I'm trying to configure custom error handlers for my website, > following the instructions on https://wiki.magnolia- > cms.com/display/WIKI/How+to+setup+a+custom+404+handler > > So I ended up with adding the error page configuration to the > [i]web.xml[/i] of my web application as follows: > > [code] > <web-app> > > [...lots of tags...] > > <error-page> > <error-code>404</error-code> > <location>/service/error404.html</location> > </error-page> > > </web-app> > [/code] > > The <location> attribute [i]/service/error404.html[/i] points to a > Magnolia page, therefore located in the website workspace. > > Now I have the following problem: > Only users who logged in (authenticated) to the Admin Central of my > public instance see the proper 404 error page. Unauthenticated, > anonymous website visitors see nothing but a blank page instead. > > First I thought it might be related to some missing roles for the > [i]anonymous[/i] user. However, for an authenticated user who has the > same groups / roles assigned as [i]anonymous[/i], the error page is > shown properly. It's really just not shown if the website visitor is > not authenticated at all. > > Sidenote: > As far as I remember this worked fine with Magnolia EE 4.5. . I have > this problem since I upgraded to Magnolia EE 5.3.4 (Apache Tomcat 7.0.47). > > Any help is greatly appreciated! > > Thanks, > Zoltan > > -- > Context is everything: http://forum.magnolia- > cms.com/forum/thread.html?threadId=34916cea-f00e-4af2-b37f- > 016a0f09bbae > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing- > lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ To > unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
