[Mono-bugs] [Bug 691291] New: Incomplete proxy support/ system wide proxy bypass list is ignored

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 2 15:44:07 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=691291

https://bugzilla.novell.com/show_bug.cgi?id=691291#c0


           Summary: Incomplete proxy support/ system wide proxy bypass
                    list is ignored
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: test051102 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101
Firefox/4.0

Mono uses the WebRequest.GetSystemWebProxy() method to return system proxy
information. The object returned is of type IWebProxy. Because WebRequest is an
abstract class we cannot call it directly.

By looking into the implementation of GetSystemWebProxy() we can see, that the
proxy information is extracted from the http_proxy environment varible only.
The proxy bypass information which may have been configured in the system is
simply ignored. But IWebProxy doesn't provide any properties for that purpose
either.

The WebProxy class derives from IWebProxy and has a BypassList property
defined. However, this property is never set and thus it's value is always
null.

As a result, the proxy bypass list configured in the system is ignored by Mono
and thus this feature cannot be used.

Reproducible: Always

Steps to Reproduce:
1. Configure a system wide http proxy (the proxy doesn't need to exist; for
example 192.168.1.10)
2. Configure system wide proxy settings to bypass address 192.168.1.133
3. Run the following C# code
WebProxy proxy=FtpWebRequest.GetSystemWebProxy();//get the proxy only
Uri resourceProxy=proxy.GetProxy(new Uri("http://192.168.1.133"));//check if
192.168.1.133 should be access via the proxy or directly

Actual Results:  
resourceProxy points to the actual proxy server

Expected Results:  
resourceProxy should point to 192.168.1.133 because this address is in the
proxy bypass list

See also https://bugzilla.novell.com/show_bug.cgi?id=690887

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list