[Mono-bugs] [Bug 75230][Nor] New - [PATCH] Uri.CheckHostName considers host name with trailing dot invalid

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 11 09:18:46 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=75230

--- shadow/75230	2005-06-11 09:18:46.000000000 -0400
+++ shadow/75230.tmp.11380	2005-06-11 09:18:46.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 75230
+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: [PATCH] Uri.CheckHostName considers host name with trailing dot invalid
+
+Mono's Uri.CheckHostName considers a host name with a trailing dot 
+invalid.
+
+MS.NET considers this a valid host name. I submitted a bug report for 
+this using the MSDN Product Feedback Center, and got the following 
+feedback:
+
+-------
+
+This behavior is actually by design. The ending period indicates that the 
+domain name is fully qualified. The following is an excerpt from section 
+3.2.2 of RFC 3986 that describes what constitutes a valid host name for 
+URIs:
+
+"A host identified by a registered name is a sequence of characters 
+usually intended for lookup within a locally defined host or service name 
+registry, though the URI's scheme-specific semantics may require that a 
+specific registry (or fixed name table) be used instead. The most common 
+name registry mechanism is the Domain Name System (DNS). A registered 
+name intended for lookup in the DNS uses the syntax defined in Section 
+3.5 of [RFC1034] and Section 2.1 of [RFC1123]. Such a name consists of a 
+sequence of domain labels separated by ".", each domain label starting 
+and ending with an alphanumeric character and possibly also containing "-
+" characters. The rightmost domain label of a fully qualified domain name 
+in DNS may be followed by a single "." and should be if it is necessary 
+to distinguish between the complete domain name and some local domain."
+
+-------
+
+The attached patch changes our behaviour to match that of MS.NET.


More information about the mono-bugs mailing list