[Mono-bugs] [Bug 76146][Maj] Changed - Uri class doesn't handle "foo:///?bar"

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 19 18:32:17 EDT 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=76146

--- shadow/76146	2005-09-19 12:26:18.000000000 -0400
+++ shadow/76146.tmp.11936	2005-09-19 18:32:17.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 76146
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: joeshaw at novell.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -32,6 +32,29 @@
 And also if you use "bar" as the path, you get:
 
 >>>  Uri ("foo:///bar")
 foo://bar/
 
 Which is also not correct.
+
+------- Additional Comments From gonzalo at ximian.com  2005-09-19 18:32 -------
+$ cat uri.cs
+using System;
+
+class Test {
+        static void Main ()
+        {
+                Uri uri = new Uri ("foo:///?bar");
+                Console.WriteLine (uri);
+        }
+}
+
+
+gonzalo at monowin1 /cygdrive/c
+$ ./uri.exe
+
+Unhandled Exception: System.UriFormatException: Invalid URI: The
+format of the URI could not be determined.
+   at System.Uri.Parse()
+   at System.Uri..ctor(String uriString, Boolean dontEscape)
+   at System.Uri..ctor(String uriString)
+   at Test.Main()


More information about the mono-bugs mailing list