[Mono-bugs] [Bug 75144][Nor] New - UriFormatException is thrown for
file:// URI
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jun 3 15:00:51 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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=75144
--- shadow/75144 2005-06-03 15:00:51.000000000 -0400
+++ shadow/75144.tmp.27452 2005-06-03 15:00:51.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 75144
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: UriFormatException is thrown for file:// URI
+
+Mono throws an UriFormatException for the "file://" URI.
+
+To reproduce this issue, compile and run the following code snippet:
+
+using System;
+
+public class UriTest {
+ public static void Main() {
+ new Uri("file://");
+ }
+}
+
+Actual result:
+
+Unhandled Exception: System.UriFormatException: Invalid URI: The hostname
+could not be parsed
+....
+
+Expected result:
+
+No failure
+
+This works fine in MS.NET 2.0, but threw an IndexOutOfRangeException
+on .NET 1.x.
+
+I'll commit a (ignored) unit test (in UriTest) for this later today.
More information about the mono-bugs
mailing list