http://bugzilla.novell.com/show_bug.cgi?id=565547

http://bugzilla.novell.com/show_bug.cgi?id=565547#c0


           Summary: ObjectStateFormatter fails to convert collections from
                    string
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


Created an attachment (id=333095)
 --> (http://bugzilla.novell.com/attachment.cgi?id=333095)
test case

The above test case (contributed by Robert Abram <[email protected]>)
demonstrates a problem with ObjectStateFormatter which is unable to convert
certain collections from string:

----------------------
System.NotSupportedException: CollectionConverter cannot convert from
System.String.
  at System.ComponentModel.TypeConverter.GetConvertFromException (System.Object
value) [0x0001d] in
/usr/src/tmp/mono/mcs/class/System/System.ComponentModel/TypeConverter.cs:161 
  at System.ComponentModel.TypeConverter.ConvertFrom (ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, System.Object value)
[0x00017] in
/usr/src/tmp/mono/mcs/class/System/System.ComponentModel/TypeConverter.cs:79 
  at System.Web.UI.ObjectStateFormatter+TypeConverterFormatter.Read (Byte
token, System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00030] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:1020
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+TripletFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00006] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:716
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+ObjectArrayFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00016] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:807
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00013] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:693
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+ObjectArrayFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00016] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:807
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00006] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:692
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00013] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:693
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+ArrayListFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00016] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:745
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00013] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:693
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00013] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:693
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+ArrayListFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00016] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:745
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00013] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:693
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00006] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:692
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter+PairFormatter.Read (Byte token,
System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x00006] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:692
 
  at System.Web.UI.ObjectStateFormatter+ObjectFormatter.ReadObject
(System.IO.BinaryReader r, System.Web.UI.ReaderContext ctx) [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:468
 
  at System.Web.UI.ObjectStateFormatter.DeserializeObject
(System.IO.BinaryReader r) [0x00000] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:223
 
  at System.Web.UI.ObjectStateFormatter.Deserialize (System.IO.Stream
inputStream) [0x00011] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:142
 
  at System.Web.UI.ObjectStateFormatter.Deserialize (System.String inputString)
[0x000a8] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs:170
 
  at System.Web.UI.HiddenFieldPageStatePersister.Load () [0x00007] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/HiddenFieldPageStatePersister.cs:61
 
  at System.Web.UI.Page.LoadPageStateFromPersistenceMedium () [0x0000f] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/Page.cs:1908 
  at System.Web.UI.Page.LoadPageViewState () [0x00000] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/Page.cs:1914 
  at System.Web.UI.Page.RestorePageState () [0x00051] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/Page.cs:1558 
  at System.Web.UI.Page.InternalProcessRequest () [0x001b9] in
/usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/Page.cs:1533 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x0005b] in /usr/src/tmp/mono/mcs/class/System.Web/System.Web.UI/Page.cs:1353
---------------------

The issue is related to r143967, a fix for bug 545979

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to