Public bug reported:

Binary package hint: update-manager

When updating to 9.10 from from 9.04, the update-manager uses a utility
function called "UpdateManager.Core.utils.url_downloadable". This
function skips urllib2 - which is properly configured to use the proxy
settings - and instead directly interacts with httplib, which requires
the caller to properly set up the request in order to use the proxy.

Changing the url_downloadable function to use the proxy resolves the
issue.

Specifically, I after:

  if scheme == "http":
    import httplib
    try:

I added:

      proxy = os.getenv('http_proxy')
      if (proxy):
        path = scheme + netloc + path
        netloc = proxy

This resolved the problem. This, however, isn't really a fix - it relies
on the fact that init_proxy sets the http_proxy environment variable and
ignores anything else that might set up urllib2 to properly use a proxy
server.

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New

-- 
url_downloadable ignores proxy settings
https://bugs.launchpad.net/bugs/446552
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to