system wide proxy settings break wget and related functionality

Bug #623193 reported by Robert Rochford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

Not sure what packages are involved, but considering quite a few items use wget internally (flash plugin, i think) this could be high priority

System -> Preferences -> Network Proxy

Manual Proxy, same for all protocols

proxy.mydomain.com:3128

Ignored Hosts

localhost
127.0.0.0/8
*.local

This sets the following environment variables:
$ env | grep -i proxy
NO_PROXY=localhost,127.0.0.0/8,*.local,
http_proxy=http://proxy.mydomain.com.au:3128
ftp_proxy=ftp://proxy.mydomain.com.au:3128/
all_proxy=socks://proxy.mydomain.com.au:3128/
ALL_PROXY=socks://proxy.mydomain.com.au:3128/
https_proxy=https://proxy.mydomain.com.au:3128/
no_proxy=localhost,127.0.0.0/8,*.local,

With these settings wget fails to download:

$ wget http://apache.mirror.aussiehq.net.au/ant/binaries/apache-ant-1.8.1-bin.zip

This just hangs (we are behind a proxy)

Changing any/all proxy options in /etc/wgetrc DOES NOT FIX THIS.

I've traced the problem to the spurious "," at the end of environment variable no_proxy

i.e. the following works (remove the trailing ',')

$ export no_proxy=localhost,127.0.0.0/8,*.local
$ wget http://apache.mirror.aussiehq.net.au/ant/binaries/apache-ant-1.8.1-bin.zip

Tags: proxy wget
description: updated
Revision history for this message
Robert Rochford (ra-rochford) wrote :

Found duplicate id #534225.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.