[Mono-bugs] [Bug 67213][Min] New - HttpResponse.SuppressContent incompatibility with MS.NET Framework
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 30 Sep 2004 09:57:09 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by tha@adv.magwien.gv.at.
http://bugzilla.ximian.com/show_bug.cgi?id=67213
--- shadow/67213 2004-09-30 09:57:09.000000000 -0400
+++ shadow/67213.tmp.31754 2004-09-30 09:57:09.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 67213
+Product: Mono: Class Libraries
+Version: unspecified
+OS: other
+OS Details: Fedora Core 2
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: tha@adv.magwien.gv.at
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: HttpResponse.SuppressContent incompatibility with MS.NET Framework
+
+Mono Runtime: 1.0.2
+
+Description of Problem:
+
+ Class: HttpResponse
+ Property: SuppressContent
+
+ When setting HttpResponse.SuppressContent to true after Headers have
+been sent, an HttpException ("Headers already sent.") is thrown. Whereas
+with MS.NET on Windows/IIS there is no Exception thrown.
+
+Steps to reproduce the problem:
+ 1. Create a ASP.NET - Web Application with one aspx-page
+ 2. Put the following code into Page_Load event handler:
+ //***************Code Snippet**************
+ Response.AddHeader("testhdr", "testval");
+ Response.Flush();
+ Response.SuppressContent=true;
+ //***************Code Snippet End**************
+ 3. Start xsp and Request the .aspx
+
+
+Actual Results:
+ An HttpException ("Headers already sent.") is thrown and the browser
+shows:
+ Server Error 500
+
+ Your client sent a request that was not understood by this server.
+
+Expected Results:
+ Empty Page
+
+How often does this happen?
+ always reproducible
+
+Additional Information:
+ This is my first contribution to mono. So, if there is something missing
+in this report, just let me know.
+
+I gave a minor Priority because I think that the mono-implementation is
+more correct than MS' and the behavior of SuppressContent isn't documented
+clearly by MS. Anyhow there is an incompatibility between MS.NET and Mono.
+
+Thanks for your incredible work!
+
+Cheers,
+
+Theo