tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Tomcat 5.5: how doesone configure an authenticator valve?
Date Tue, 02 Nov 2010 22:40:43 GMT
2010/11/3 dB. <dblock@dblock.org>:
> 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:
http://svn.apache.org/viewvc?view=revision&revision=721921

The fix was not backported to 5.5.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message