[Mono-bugs] [Bug 81467][Maj] Changed - Can't add a service to ZMD under 1.2.4p1
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 7 19:55:41 EDT 2007
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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=81467
--- shadow/81467 2007-05-07 19:22:51.000000000 -0400
+++ shadow/81467.tmp.10458 2007-05-07 19:55:41.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 81467
Product: Mono: Class Libraries
Version: 1.2
OS: unknown
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Major
Component: CORLIB
AssignedTo: mono-bugs at ximian.com
ReportedBy: twiest at novell.com
QAContact: mono-bugs at ximian.com
@@ -358,6 +358,43 @@
Thanks for pointing this one out.
I applied a patch that would fall back to the old encoding if the
first one fails. But it seems like we are going to need to come up
with a policy on how to deal with these sort of changes.
+
+------- Additional Comments From robertj at gmx.net 2007-05-07 19:55 -------
+That's not enough. See the diff between r71806 and r71807:
+
+Index: WebHeaderCollection.cs
+===================================================================
+--- WebHeaderCollection.cs (revision 71806)
++++ WebHeaderCollection.cs (revision 71807)
+@@ -112,11 +112,10 @@
+ protected WebHeaderCollection (SerializationInfo serializationInfo,
+ StreamingContext streamingContext)
+ {
+- // TODO: test for compatibility with ms.net
+- int count = serializationInfo.GetInt32("count");
++ int count = serializationInfo.GetInt32("Count");
+ for (int i = 0; i < count; i++)
+- this.Add (serializationInfo.GetString ("k" + i),
+- serializationInfo.GetString ("v" + i));
++ this.Add (serializationInfo.GetString (i.ToString ()),
++ serializationInfo.GetString ((count + i).ToString ()));
+ }
+
+ internal WebHeaderCollection (bool internallyCreated)
+@@ -279,10 +278,10 @@
+ StreamingContext streamingContext)
+ {
+ int count = base.Count;
+- serializationInfo.AddValue ("count", count);
++ serializationInfo.AddValue ("Count", count);
+ for (int i = 0; i < count; i++) {
+- serializationInfo.AddValue ("k" + i, GetKey (i));
+- serializationInfo.AddValue ("v" + i, Get (i));
++ serializationInfo.AddValue (i.ToString (), GetKey (i));
++ serializationInfo.AddValue ((count + i).ToString (), Get (i));
+ }
+ }
+
More information about the mono-bugs
mailing list