[Mono-bugs] [Bug 75859][Wis] Changed - Better error message from Dns.GetHostByName

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 5 15:02:37 EST 2006


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 sebastien at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75859

--- shadow/75859	2005-08-20 07:07:24.000000000 -0400
+++ shadow/75859.tmp.26347	2006-01-05 15:02:37.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 75859
 Product: Mono: Class Libraries
 Version: 1.1
 OS: GNU/Linux [Other]
 OS Details: centos 4.1
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: WONTFIX
+Severity: Unknown
 Priority: Wishlist
 Component: System
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: b_gs at hotmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -17,6 +17,18 @@
 Summary: Better error message from Dns.GetHostByName
 
 Dns.GetHostByName throws SocketException with an error "No such host is
 known".  It should be changed to include the hostname that was being looked
 up so that when it comes out of the bowels of some library call it is
 informative.
+
+------- Additional Comments From sebastien at ximian.com  2006-01-05 15:02 -------
+This is the same behaviour as MS - and there is a good reason for
+this: information disclosure. The framework doesn't know (and can't
+assume) under which context the application is executed. So leaking
+this information is potentially dangereous.
+
+The "right" way to fix this is at the application level. If the host
+name isn't sensitive then catch the exception and display a more
+appropriate message (or rethrow the same exception with a more
+informative message).
+


More information about the mono-bugs mailing list