tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36388] New: - Custom error page for error code 401 ignored in Tomcat 5.5.x
Date Fri, 26 Aug 2005 19:52:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36388>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36388

           Summary: Custom error page for error code 401 ignored in Tomcat
                    5.5.x
           Product: Tomcat 5
           Version: 5.5.9
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bjarnij-apachebug@bthj.is


In Tomcat 4 and 5.0.x it was possible to have a custom error page for error code
401. But only when using a workaround the was user prompted to login.  The
workaround was to add code similar to this to the custom error page:
<%
	response.setStatus(response.SC_UNAUTHORIZED);
	response.setHeader("WWW-Authenticate", "BASIC realm=\"asdf\""); 
%>
Tomcat 5.5.x on the other hand seems to completely ignore custom error pages for
error code 401 - although error pages for other error codes seem to work fine.
This must be a bug?

I'm using BASIC authentication and I'm unable to give webusers "pretty" message
when they fail to login...

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message