[Mono-bugs] [Bug 79946][Wis] New - LosFormatter.Deserialize should not fail with String.Empty

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Nov 16 04:25:33 EST 2006

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 informatique.internet at fiducial.fr.


--- shadow/79946	2006-11-16 04:25:33.000000000 -0500
+++ shadow/79946.tmp.29402	2006-11-16 04:25:33.000000000 -0500
@@ -0,0 +1,76 @@
+Bug#: 79946
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: LosFormatter.Deserialize should not fail with String.Empty
+Description of Problem:
+LosFormatter.Deserialize should not fail with String.Empty
+Steps to reproduce the problem:
+1. TestCase:
+using System;
+using System.Web;
+using System.Web.SessionState;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+class MainClass
+	private static LosFormatter  _formatter = new LosFormatter();
+	public static void Main(string[] args)
+	{
+		_formatter.Deserialize(String.Empty);	
+	}
+Actual Results:
+Unhandled Exception: System.IO.EndOfStreamException: Failed to read past
+end of stream.
+  at System.IO.BinaryReader.ReadByte () [0x00048] in
+  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
+(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00000] in
+  at System.Web.UI.ObjectStateFormatter.DeserializeObject
+(System.IO.BinaryReader r) [0x00000] in
+  at System.Web.UI.ObjectStateFormatter.Deserialize (System.IO.Stream
+inputStream) [0x00012] in
+  at System.Web.UI.LosFormatter.Deserialize (System.String input) [0x00028]
+in /home/hubert/mono/mcs/class/System.Web/System.Web.UI/LosFormatter.cs:124 
+  at MainClass.Main (System.String[] args) [0x00000] in
+Expected Results:
+It should works
+How often does this happen? 
+Additional Information:
+It works with MS.NET and it had never worked with mono

More information about the mono-bugs mailing list