зеркало из https://github.com/mono/mail-archives.git
116 строки
4.2 KiB
HTML
116 строки
4.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 75144][Nor] New - UriFormatException is thrown for
|
|
file:// URI
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075144%5D%5BNor%5D%20New%20-%20UriFormatException%20is%20thrown%20for%0A%09file%3A//%20URI&In-Reply-To=bug-75144%40chernobyl.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="030005.html">
|
|
<LINK REL="Next" HREF="030007.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 75144][Nor] New - UriFormatException is thrown for
|
|
file:// URI</H1>
|
|
<B>bugzilla-daemon at bugzilla.ximian.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075144%5D%5BNor%5D%20New%20-%20UriFormatException%20is%20thrown%20for%0A%09file%3A//%20URI&In-Reply-To=bug-75144%40chernobyl.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 75144][Nor] New - UriFormatException is thrown for
|
|
file:// URI">bugzilla-daemon at bugzilla.ximian.com
|
|
</A><BR>
|
|
<I>Fri Jun 3 15:00:51 EDT 2005</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="030005.html">[Mono-bugs] [Bug 75109][Nor] Changed - unmanaged delegate problems
|
|
on x86-64
|
|
</A></li>
|
|
<LI>Next message: <A HREF="030007.html">[Mono-bugs] [Bug 75145][Wis] New - please add thread dump support
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#30006">[ date ]</a>
|
|
<a href="thread.html#30006">[ thread ]</a>
|
|
<a href="subject.html#30006">[ subject ]</a>
|
|
<a href="author.html#30006">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">gert.driesen at pandora.be.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75144">http://bugzilla.ximian.com/show_bug.cgi?id=75144</A>
|
|
|
|
--- 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: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
|
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">gert.driesen at pandora.be</A>
|
|
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
|
+TargetMilestone: ---
|
|
+URL:
|
|
+Cc:
|
|
+Summary: UriFormatException is thrown for file:// URI
|
|
+
|
|
+Mono throws an UriFormatException for the "<A HREF="file://"">file://"</A> URI.
|
|
+
|
|
+To reproduce this issue, compile and run the following code snippet:
|
|
+
|
|
+using System;
|
|
+
|
|
+public class UriTest {
|
|
+ public static void Main() {
|
|
+ new Uri("<A HREF="file://"">file://"</A>);
|
|
+ }
|
|
+}
|
|
+
|
|
+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.
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="030005.html">[Mono-bugs] [Bug 75109][Nor] Changed - unmanaged delegate problems
|
|
on x86-64
|
|
</A></li>
|
|
<LI>Next message: <A HREF="030007.html">[Mono-bugs] [Bug 75145][Wis] New - please add thread dump support
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#30006">[ date ]</a>
|
|
<a href="thread.html#30006">[ thread ]</a>
|
|
<a href="subject.html#30006">[ subject ]</a>
|
|
<a href="author.html#30006">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|