Bug 319010 (MONO76124) - HttpRuntime.ProcessRequest(childWorkerRequest) causes 500 status code under mod_mono
Summary: HttpRuntime.ProcessRequest(childWorkerRequest) causes 500 status code under m...
Status: RESOLVED FIXED
Alias: MONO76124
Product: Mono: Tools
Classification: Mono
Component: XSP (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Gonzalo Paniagua Javier
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2005-09-16 21:03 UTC by Dean Brettle
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Test case (7.04 KB, text/plain)
2005-09-16 21:04 UTC, Thomas Wiest
Details
Patch (466 bytes, patch)
2005-09-16 21:05 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:30:55 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".