Bugzilla – Bug 319010
HttpRuntime.ProcessRequest(childWorkerRequest) causes 500 status code under mod_mono
Last modified: 2007-09-15 21:24:57 UTC
---- Reported by dean@brettle.com 2005-09-16 14:03:36 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: When processing child requests with HttpRuntime.ProcessRequest(childWorkerRequest) under mod_mono, the server returns a 500 status code, even though the correct content is returned. This is caused by an attempt to set headers when ending the parent request. I'll attach a test handler which demonstrates the problem, and I'll also attach a patch. Steps to reproduce the problem: 1. Copy the attached childrequest.ashx to a location where it can be accessed through mod_mono. 2. Run "curl -i http://host/path/to/childrequest.ashx" or some other command that shows the status line returned by the server. Actual Results: HTTP/1.1 500 Internal Server Error Date: Fri, 16 Sep 2005 16:59:09 GMT Server: Apache/2.0.52 (Fedora) Content-Length: 45 Cache-Control: private Connection: close Content-Type: text/html; charset=utf-8 <html><body><h1>Hi there!</h1></body></html> Expected Results: HTTP/1.1 200 OK Date: Fri, 16 Sep 2005 16:59:24 GMT Server: Apache/2.0.52 (Fedora) Content-Length: 45 Cache-Control: private Connection: close Content-Type: text/html; charset=utf-8 <html><body><h1>Hi there!</h1></body></html> How often does this happen? Everytime Additional Information: The test case is a bit contrived -- it issues a child request to itself. However, I encountered this issue in NeatUpload (http://www.brettle.com/neatupload) where I use an HttpModule to issue a child request that filters/monitors uploads. The problem occurred after upgrading from xsp-1.0.9 to xsp-1.1.9. ---- Additional Comments From dean@brettle.com 2005-09-16 14:04:51 MST ---- Created an attachment (id=168517) Test case ---- Additional Comments From dean@brettle.com 2005-09-16 14:05:25 MST ---- Created an attachment (id=168518) Patch ---- Additional Comments From gonzalo@ximian.com 2005-09-19 05:59:43 MST ---- Patch applied. Thanks. Imported an attachment (id=168517) Imported an attachment (id=168518) Unknown operating system unknown. Setting to default OS "Other".