[Mono-bugs] [Bug 59534][Blo] New - New MONO Beta 2 bug reading from bufferedstream.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 3 Jun 2004 02:45:07 -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 davidandrewtaylor@hotmail.com.

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

--- shadow/59534	2004-06-03 02:45:07.000000000 -0400
+++ shadow/59534.tmp.6404	2004-06-03 02:45:07.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 59534
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 002 Two hours
+Priority: Blocker
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: davidandrewtaylor@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: New MONO Beta 2 bug reading from bufferedstream.
+
+Description of Problem:
+New bug introduced in MONO Beta 2 (this worked in Beta 1).  My test case 
+is simply reading a remote WSDL file from a stream wrapped in a buffered 
+stream.  This works perfectly in MS.NET but throws an exception since 
+MONO Beta 2 was released.
+
+Steps to reproduce the problem:
+1. Run the attached test case. (main part below):
+
+XmlDocument doc = new XmlDocument();
+WebClient wc = new WebClient();
+Stream stream = wc.OpenRead
+("http://trillian.research.melbourneit.com.au/createuser/CreateUser?
+WSDL");
+BufferedStream br = new BufferedStream(stream);
+doc.Load(br); // MONO error when reading from stream!
+
+Actual Results:
+Unhandled Exception: System.NotSupportedException: Cannot read from stream
+in <0x00099> System.IO.BufferedStream:Read (byte[],int,int)
+in <0x0004a> System.IO.BufferedStream:ReadByte ()
+in <0x00071> System.Xml.XmlInputStream:Initialize (System.IO.Stream)
+in <0x0005b> (wrapper remoting-invoke-with-check)
+System.Xml.XmlInputStream:Initialize (System.IO.Stream)
+in <0x00040> System.Xml.XmlInputStream:.ctor (System.IO.Stream)
+in <0x0005b> (wrapper remoting-invoke-with-check)
+System.Xml.XmlInputStream:.ctor (System.IO.Stream)
+in <0x0002b> System.Xml.XmlStreamReader:.ctor (System.IO.Stream)
+in <0x0005b> (wrapper remoting-invoke-with-check)
+System.Xml.XmlStreamReader:.ctor (System.IO.Stream)
+in <0x0002b> System.Xml.XmlTextReader:.ctor (System.IO.Stream)
+in <0x00026> System.Xml.XmlDocument:Load (System.IO.Stream)
+in <0x000a4> beta2test:Main ()
+
+Expected Results:
+Done - It worked!
+
+How often does this happen? 
+All the time since Beta2 was released.