[Mono-bugs] [Bug 51510][Wis] Changed - Uri class does not parse the host name properly for UNC path.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 3 Dec 2003 02:02:30 -0500 (EST)

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 neeeeeep@bigpond.com.


--- shadow/51510	2003-12-03 02:01:43.000000000 -0500
+++ shadow/51510.tmp.28897	2003-12-03 02:02:29.000000000 -0500
@@ -89,6 +89,23 @@
 causes IsLoopback to return wrong result.
 ------- Additional Comments From neeeeeep@bigpond.com  2003-12-03 02:01 -------
 Created an attachment (id=6082)
 Proposed fix
+------- Additional Comments From neeeeeep@bigpond.com  2003-12-03 02:02 -------
+I submitted this to mono-devel but perhaps that was the wrong place as
+I got no response...
+This patch resolves the bug, although I'm a little confused because
+RFC 2396 does seem to suggest that some file URIs can exist without a
+host. Hopefully someone more up to speed can vet this first? I
+couldn't see a case where it would break but maybe I'm blind.
+Also note, this fixes another difference between Mono and .NET 1.1
+where if you pass an ftp URI (like mono would
+return 23 for the port while 1.1 would return 21. I never logged this
+as I only discovered it as I was debugging the first.
+Lastly, I can't commit, so if this is deemed suitable, I'll leave it
+up to someone else. :-)