tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Tomcat 5.5: how doesone configure an authenticator valve?
Date Tue, 02 Nov 2010 22:40:43 GMT
2010/11/3 dB. <>:
> After some more code-reading I found the problem. Looking at the implementation of response.sendError
in TC5, it's clear that it dumps whatever headers you added prior to the call. Changing this
to setStatus fixed the problem. I assume this means that Tomcat doesn't get a chance to render
it's custom 401 page, but I might be speculating.

IIRC, this behaviour was tracked as bug 42409. It was fixed by the
following commit:

The fix was not backported to 5.5.

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message