[Mono-bugs] [Bug 58634][Nor] New - MONO BETA 1 Bug in Context.GetConfig()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 18 May 2004 02:42:50 -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=58634

--- shadow/58634	2004-05-18 02:42:50.000000000 -0400
+++ shadow/58634.tmp.19392	2004-05-18 02:42:50.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 58634
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 002 Two hours
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: davidandrewtaylor@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: MONO BETA 1 Bug in Context.GetConfig()
+
+Description of Problem:
+When calling Request.Context.GetConfig(), MONO is returning a different 
+type than MS.NET.  I noticed this problem when using a 3rd party control 
+that was trying to read something out of the web configuration file.  
+This utility tried to cast the returned object to an IDictionary, which 
+is implemented by the Hashtable but obviously not by the 
+WebControlsConfig object being returned by MONO.  MONO should be 
+returning a Hashtable as per MS.NET.
+
+Steps to reproduce the problem:
+<%@Page language="c#" Trace="False" %>
+<script runat="server">
+void Page_Load(object sender, EventArgs e)
+{
+  object o = Context.GetConfig("system.web/webControls");
+  Response.Write("Type was: " + o.GetType());
+}
+</script>
+
+Actual Results:
+Ssytem.Web.Configuration.WebControlsConfig (on MONO Beta 1)
+
+Expected Results:
+System.Web.Collections.Hashtable (on MS.NET)
+
+How often does this happen? 
+All the time on MONO Beta 1
+
+Additional Information:
+MONO needs to return a hashtable as per MS.NET