After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619780 - Network Proxy GUI: sets no_proxy to match any url
Network Proxy GUI: sets no_proxy to match any url
Status: RESOLVED DUPLICATE of bug 609459
Product: gnome-terminal
Classification: Core
Component: general
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-27 05:03 UTC by Danny Lawrence
Modified: 2010-05-27 18:18 UTC
See Also:
GNOME target: 2.30.x
GNOME version: 2.29/2.30



Description Danny Lawrence 2010-05-27 05:03:08 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]
Comment 1 Jens Granseuer 2010-05-27 16:33:23 UTC
gnome-network-preferences doesn't set the env var. gnome-terminal does.
Comment 2 Behdad Esfahbod 2010-05-27 16:44:31 UTC
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 ***
Comment 3 Christian Persch 2010-05-27 18:18:23 UTC
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.