|Anonymous | Login | Signup for a new account||02-18-2019 03:14 PST|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0004804||[Resin]||major||always||10-13-11 11:57||10-19-11 12:48|
|Summary||0004804: Resin Throws 500 HTTP header incorrectly on caught exception|
|Description||we have code that checks for application level 'log in'. A 'not logged in' user is identified with a caught exception and redirected to an error.jsp page. However the returned page header still shows that a 500 error code was sent. This is bad as the handled page should return a 200 (OK) code.|
The following URL will have been refused and redirected as its content is restricted by application logic. The redirect page is displayed correctly however resin also returns a 500 error code :
"GET /fake/path/to/content-list.jsp?r=128&u=43741853 HTTP/1.1" 500 997 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1" 244000
We even added a error code 200 override to the error page that handles the request, and the page is returned with a 200 in the header, however the resin server _still_ records the 500.
|as to the last line, "however the resin server _still_ records the 500.", it still records the 500 error in the access log|
|This issue does not occur in the version we currently use (4.0.6) and is stopping us from upgrading to this otherwise great looking version ...|
I'm checking against the JSP/Servlet TCK. The 500 as default error-page behavior might be mandated by the spec.
The access log would be a Resin bug in either case.
You will still need to call the response.setStatus(200) in the error page if you want to change the status from the error's default. It will now be logged correctly.
|10-13-11 11:57||richardmoco||New Issue|
|10-13-11 12:01||richardmoco||Note Added: 0005562|
|10-13-11 12:19||richardmoco||Note Added: 0005563|
|10-19-11 11:36||ferg||Note Added: 0005564|
|10-19-11 12:48||ferg||Note Added: 0005565|
|10-19-11 12:48||ferg||Assigned To||=> ferg|
|10-19-11 12:48||ferg||Status||new => closed|
|10-19-11 12:48||ferg||Resolution||open => fixed|
|10-19-11 12:48||ferg||Fixed in Version||=> 4.0.24|
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.|
29 unique queries executed.