[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



           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

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

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

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
2. Configure system wide proxy settings to bypass address
3. Run the following C# code
WebProxy proxy=FtpWebRequest.GetSystemWebProxy();//get the proxy only
Uri resourceProxy=proxy.GetProxy(new Uri(""));//check if should be access via the proxy or directly

Actual Results:  
resourceProxy points to the actual proxy server

Expected Results:  
resourceProxy should point to 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