[Mono-bugs] [Bug 76659][Min] New - Uri does not fail for http://127.0.0.1::::::/

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Nov 9 21:57:43 EST 2005


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 gonzalo at ximian.com.

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

--- shadow/76659	2005-11-09 21:57:43.000000000 -0500
+++ shadow/76659.tmp.15863	2005-11-09 21:57:43.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 76659
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gonzalo at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Uri does not fail for http://127.0.0.1::::::/
+
+------------
+using System;
+
+class Test {
+        static void Main (string [] args)
+        {
+                foreach (string str in args) {
+                        try {
+                                Console.WriteLine (str);
+                                new Uri (str);
+                        } catch (Exception e) {
+                                Console.WriteLine (e.GetType ());
+                        }
+                }
+        }
+}
+-------------
+
+Run the program as:
+mono uri.exe http://127.0.0.1::::/
+
+MS throws an UriFormatException, we don't.


More information about the mono-bugs mailing list