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=5110>.
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=5110

ErrorDispatcherValve throws NullPointerException on 403 forbidden!

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From [EMAIL PROTECTED]  2001-11-27 09:08 -------
As of jakarta-tomcat-4.0-20011127 nightly build : 

Following the same steps I described in the original bug description now 
results in a 404 error now.  In tomcat-4.0.1 the procedure resulted in a 500 
error.   The correct behavior should result in the error handler page specified 
for 403 errors by the error-page descriptor in web.xml.

The text of the error tomcat reports : 
HTTP Status 404 - /examples/jsp/security/protected/j_security_check
--------------------------------------------------------------------------------
type Status report
message /examples/jsp/security/protected/j_security_check
description The requested resource 
(/examples/jsp/security/protected/j_security_check) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/4.1-dev



>From localhost_examples_log

2001-11-27 11:00:19 Authenticator[/examples]: Requesting login page normally
2001-11-27 11:00:19 Authenticator[/examples]:  Calling accessControl()
2001-11-27 11:00:19 Authenticator[/examples]:  Allow access to login 
page /examples/jsp/security/protected/login.jsp
2001-11-27 11:00:19 Authenticator[/examples]:  Successfully passed all security 
constraints
2001-11-27 11:00:19 StandardContext[/examples]: Mapping contextPath='/examples' 
with requestURI='/examples/jsp/security/protected/login.jsp' and 
relativeURI='/jsp/security/protected/login.jsp'
2001-11-27 11:00:19 StandardContext[/examples]: Decoded 
relativeURI='/jsp/security/protected/login.jsp'
2001-11-27 11:00:19 StandardContext[/examples]:   Trying exact match
2001-11-27 11:00:19 StandardContext[/examples]:   Trying prefix match
2001-11-27 11:00:19 StandardContext[/examples]:   Trying extension match
2001-11-27 11:00:19 StandardContext[/examples]:  Mapped to servlet 'jsp' with 
servlet path '/jsp/security/protected/login.jsp' and path info 'null' and 
update=true
2001-11-27 11:00:19 jsp: init
2001-11-27 11:00:36 Authenticator[/examples]: Security checking request 
POST /examples/jsp/security/protected/j_security_check
2001-11-27 11:00:36 Authenticator[/examples]: Authenticating username 'junk'
2001-11-27 11:00:36 Authenticator[/examples]: Authentication of 'junk' was 
successful
2001-11-27 11:00:36 Authenticator[/examples]: Redirecting to 
original '/examples/jsp/security/protected'
2001-11-27 11:00:36 Authenticator[/examples]:  Failed authenticate() test
2001-11-27 11:00:37 Authenticator[/examples]: Security checking request 
GET /examples/jsp/security/protected
2001-11-27 11:00:37 Authenticator[/examples]:   Checking 
constraint 'SecurityConstraint[Protected Area]' against 
GET /jsp/security/protected --> true
2001-11-27 11:00:37 Authenticator[/examples]:  Subject to constraint 
SecurityConstraint[Protected Area]
2001-11-27 11:00:37 Authenticator[/examples]:  Calling checkUserData()
2001-11-27 11:00:37 Authenticator[/examples]:   User data constraint has no 
restrictions
2001-11-27 11:00:37 Authenticator[/examples]:  Calling authenticate()
2001-11-27 11:00:37 Authenticator[/examples]: Restore request from 
session '1893B077F4C291004710C0E058D34324'
2001-11-27 11:00:37 Authenticator[/examples]: Authenticated 'junk' with 
type 'FORM'
2001-11-27 11:00:37 Authenticator[/examples]: Proceed to restored request
2001-11-27 11:00:37 Authenticator[/examples]:  Calling accessControl()
2001-11-27 11:00:37 Authenticator[/examples]:  Failed accessControl() test
2001-11-27 11:00:37 StandardContext[/examples]: Mapping contextPath='/examples' 
with requestURI='/examples/examples/jsp/forbidden.jsp' and 
relativeURI='/examples/jsp/forbidden.jsp'
2001-11-27 11:00:37 StandardContext[/examples]: Decoded 
relativeURI='/examples/jsp/forbidden.jsp'
2001-11-27 11:00:37 StandardContext[/examples]:   Trying exact match
2001-11-27 11:00:37 StandardContext[/examples]:   Trying prefix match
2001-11-27 11:00:37 StandardContext[/examples]:   Trying extension match
2001-11-27 11:00:37 StandardContext[/examples]:  Mapped to servlet 'jsp' with 
servlet path '/examples/jsp/forbidden.jsp' and path info 'null' and update=true


Output of http://localhost:8080/examples/jsp/forbidden.jsp
        <html>
        <body>forbidden!</body>
        </html>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to