[Mono-bugs] [Bug 76146][Maj] New - Uri class doesn't handle
"foo:///?bar"
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Sep 19 12:26:18 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 joeshaw at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76146
--- shadow/76146 2005-09-19 12:26:18.000000000 -0400
+++ shadow/76146.tmp.7227 2005-09-19 12:26:18.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 76146
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: joeshaw at novell.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Uri class doesn't handle "foo:///?bar"
+
+I'm not sure if this is the craptacular nature of the Uri class or just a
+bug in our implementation, but if you try to instantiate a Uri with
+something like "foo:///?bar" (ie, no hostname or path, only query), you'll
+get an exception:
+
+>>> Uri ("foo:///?bar")
+System.UriFormatException: Invalid URI: The hostname could not be parsed
+in <0x00afe> System.Uri:Parse (System.String uriString)
+in (wrapper remoting-invoke-with-check) System.Uri:Parse (string)
+in <0x00017> System.Uri:Parse ()
+in <0x00053> System.Uri:.ctor (System.String uriString, Boolean dontEscape)
+in <0x0000f> System.Uri:.ctor (System.String uriString)
+
+And also if you use "bar" as the path, you get:
+
+>>> Uri ("foo:///bar")
+foo://bar/
+
+Which is also not correct.
More information about the mono-bugs
mailing list