[Mono-bugs] [Bug 80944][Nor] New - HttpWebRequest.Proxy can't be nulled

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 23 06:48:54 EST 2007


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 pawel.sakowski at mindbreeze.com.

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

--- shadow/80944	2007-02-23 06:48:54.000000000 -0500
+++ shadow/80944.tmp.32161	2007-02-23 06:48:54.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 80944
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: pawel.sakowski at mindbreeze.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: HttpWebRequest.Proxy can't be nulled
+
+Description of Problem:
+It should be possible to set HttpWebRequest.Proxy explicitly to null
+
+Steps to reproduce the problem:
+1. Compile and run the following:
+
+using System;
+using System.Net;
+class X{static void Main(){
+HttpWebRequest r = (HttpWebRequest) WebRequest.CreateDefault(new
+Uri("http://127.0.0.1:5555/"));
+r.Proxy = null;
+}}
+
+Actual Results:
+Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
+Parameter name: value
+  at System.Net.HttpWebRequest.set_Proxy (IWebProxy value) [0x00000]
+  at X.Main () [0x00000]
+
+Expected Results:
+a silent success
+
+How often does this happen? 
+100%
+
+Additional Information:
+mono 1.2.2.1
+MS Framework permits such explicit nulling.


More information about the mono-bugs mailing list