[Mono-bugs] [Bug 54654][Wis] New - Exceptions are hidden in System.Net during an SSL session

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 20 Feb 2004 08:48:01 -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 sebastien@ximian.com.

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

--- shadow/54654	2004-02-20 08:48:01.000000000 -0500
+++ shadow/54654.tmp.20330	2004-02-20 08:48:01.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 54654
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Exceptions are hidden in System.Net during an SSL session
+
+Description of Problem:
+When doing a WebRequest some exceptions seems trapped and the request
+continue. In some case the request can't really continue leading to strange
+errors later.
+
+Steps to reproduce the problem:
+1. Use the sample code in #30417 to connect to
+https://www.modssl.org/example/test.phtml
+
+Actual Results:
+A NullReferenceException in CertificateRSA.
+
+Expected Results:
+Another exception thrown previously.
+
+How often does this happen? 
+Always
+
+Additional Information:
+The certificate validation has been commented in CVS.
+/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/TlsServerCertificate.cs
+Other changes (soon to be commited) may also "catch" the problem more locally.
+
+However the same problem happened when async support was missing in
+SslClientStream. I just didn't get the NotSupportedException. It may be
+easier to throw a NotSupportedException in existing code (like
+NetworkStream) and see how a WebRequest reacts.