GNOME Bugzilla – Bug 619780
Network Proxy GUI: sets no_proxy to match any url
Last modified: 2010-05-27 18:18:23 UTC
Overview: Network Proxy GUI, sets no_proxy env variable with extra comma at the end of the environment variable no_proxy. this causes the no_proxy variable to match every url. Steps to Reproduce: 1. Open Network proxy ( Preferences > Network Proxy ) 2. On the second tab (Ignored Hosts), add at-least 'localhost' 3. On the first tab (Proxy Configuration) Add a manual proxy 4. On the first tab (Proxy Configuration) Click Apply system wide. 5. open a termnial - Display the current no_proxy environment variable % env | grep -i no_proxy NO_PROXY=localhost,127.0.0.0/8,*.local, no_proxy=localhost,127.0.0.0/8,*.local, 6. Try a wget to a url % wget http://www.gnome.org/ --2010-05-27 14:58:06-- http://www.gnome.org/ Resolving www.gnome.org... 209.132.180.167 Connecting to www.gnome.org|209.132.180.167|:80... Expected Results: The wget will not use the proxy ( http_proxy or ftp_proxy ) Workaround: % env |grep -i no_proxy NO_PROXY=localhost,127.0.0.0/8,*.local, no_proxy=localhost,127.0.0.0/8,*.local, % export NO_PROXY=$(echo $NO_PROXY | sed 's/,$//') echo $NO_PROXY localhost,127.0.0.0/8,*.local % export no_proxy=$NO_PROXY % env |grep -i no_proxy NO_PROXY=localhost,127.0.0.0/8,*.local no_proxy=localhost,127.0.0.0/8,*.local wget http://www.gnome.org/ 15:02 --2010-05-27 15:02:30-- http://www.gnome.org/ Resolving itproxy-farm.XXXX.com.au... 10.64.3.2 Connecting to itproxy-farm.XXXX.com.au|10.64.3.2|:8080... connected. Proxy request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `index.html.2' [ <=> ] 7,798 --.-K/s in 0.004s 2010-05-27 15:02:31 (1.78 MB/s) - `index.html.2' saved [7798]
gnome-network-preferences doesn't set the env var. gnome-terminal does.
Fixed around Feb. ChPe, can you please cherry-pick if you are doing a stable release... commit c3ed02adadafa1a07393f64a6d4065de15149601 Author: Behdad Esfahbod <behdad@behdad.org> Date: Tue Feb 9 18:44:34 2010 -0500 Bug 609459 - no_proxy final comma breaks wget *** This bug has been marked as a duplicate of bug 609459 ***
Behdad: the commit is already on 2-23 since it was on master before the branch was created. So it should be in 2.30.0.