[Mono-bugs] [Bug 42249][Wis] New - Strange error running web_xml

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 2 May 2003 07:33:14 -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 gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=42249

--- shadow/42249	Fri May  2 07:33:14 2003
+++ shadow/42249.tmp.12596	Fri May  2 07:33:14 2003
@@ -0,0 +1,54 @@
+Bug#: 42249
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Strange error running web_xml
+
+1. Apply the 2 attached patches to MemoryStream.cs and XSPWorkerRequest.cs,
+2. Install the new corlib and 'make install' in xsp/server.
+3. run the xsp server.exe
+
+Get the index page and then click on web_xml.aspx.
+The expected output in the browser is just a set of 4 <table> containing
+some data, but after </html>, there's some extra data.
+
+See the output of the server. At the end it says:
+-------------
+MemoryStream.Write Length 1425 after adding 1425
+	FlushResponse(False), False
+	Before SetLength bytes.Length: 1425
+MemoryStream.SetLength (0) -> length: 0, initialIndex: 0 newSize: 0
+	After SetLength bytes.Length: 1425
+MemoryStream.Write Length 29 after adding 29
+MemoryStream.Write Length 29 after adding 29
+	FlushResponse(True), True
+	Before SetLength bytes.Length: 1425
+MemoryStream.SetLength (0) -> length: 0, initialIndex: 0 newSize: 0
+	After SetLength bytes.Length: 1425
+-------
+
+When running, for example, web_datagrid_command.aspx:
+-------
+MemoryStream.Write Length 7527 after adding 7527
+	FlushResponse(True), False
+	Before SetLength bytes.Length: 7527
+MemoryStream.SetLength (0) -> length: 0, initialIndex: 0 newSize: 0
+	After SetLength bytes.Length: 7527
+-------
+
+but in this case the output is correct because it takes another code path
+and FlushResponse in XSPWorkerRequest.cs is not called twice.
+
+Am I doing something wrong?