DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13735>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13735

Error code 302 in error-page XML tag prevents Authentication type FORM from working

           Summary: Error code 302 in error-page XML tag prevents
                    Authentication type FORM from working
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina:Modules
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Simply put, when I use Authentication type FORM and I route error code 302 – 
temporarily unavailable to my error handling routine my error routine runs 
instead of my login form.

However, if I comment out the references to error code 302 in my web.xml – the 
login screen displays and everything work fine.

The only difference between working and not working was commenting out error-
code 302.

Here’s my XML

<!-- 302 temp unavailable
<error-page>
        <error-code>302</error-code> 
        <location>/servlet/Cert_MyCode.ErrorHandlerMaster</location>
</error-page>
-->


<security-constraint>
        <web-resource-collection>
                <web-resource-name>Admin area</web-resource-name>
                <url-pattern>/Cert_MyHtml/Secured/Admin1.html</url-pattern>
        </web-resource-collection>
        
        <auth-constraint>
                <role-name>MyAdmin</role-name>
        </auth-constraint>
</security-constraint>


<login-config>  
        <auth-method>FORM</auth-method>
        
        <form-login-config>
                <form-login-page>/Cert_MyHtml/SecuredLogin.html</form-login-
page>
                <form-error-page>/Cert_MyHtml/SecuredLoginError.html</form-
error-page>
        </form-login-config>
</login-config>

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

Reply via email to