Bug 699190

Summary: Network: HTTP proxy environment variable not being set
Product: [Fedora] Fedora Reporter: Artemy Kapitula, Mail.Ru Cloud Solutions <dalt74>
Component: gnome-terminalAssignee: Matthias Clasen <mclasen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 15CC: andy_longworth, behdad, bmourelo, control-center-maint, coutinho.sanches, danw, jsaavedra.uy, mikhail, mnowak, nekohayo, pmrpla, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: 3.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-10 17:37:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to fedora package none

Description Artemy Kapitula, Mail.Ru Cloud Solutions 2011-04-24 03:12:25 UTC
Description of problem:
Network proxy settings that has been set through Controk center -> Network has no effect, proxy configuration is inadequate.

Version-Release number of selected component (if applicable):
Fedora 15

How reproducible:
Setup proxy server in Network setting. These settings should be exported in all new applications via HTTP_PROXY, HTTPS_PROXY, FTP_PROXY, NO_PROXY and other env variables.

Steps to Reproduce:
Set proxy server address and port, then run terminal application

Actual results:
No ***_proxy variables set.

Expected results:
Environment variables HTTP_PROXY, HTTPS_PROXY, FTP_PROXY, SOCKS_PROXY and other should be set like it was in GNOME 2

Additional info:
These settings affects a large number of applications - Firefox, Epiphany, Pidgin, Midori, Chrome, yum, wget, links and other. While traveling into several corporate networks with a laptop, user will be annoyed if he will need to set proxy for each application on per-application basis.

Comment 1 Dan Winship 2011-04-28 16:07:37 UTC
this is fixed in gnome-terminal 3.0.1, which should be arriving in updates soon

Comment 2 Vitor Sanches 2011-05-03 12:08:02 UTC
I have the gnome-terminal indicated as shown below, but still the problem with the proxy.
[vitor.sanches bh20c @ ~] $ rpm-qa | grep gnome-terminal
gnome-terminal-3.0.1-1.fc15.i686
[vitor.sanches bh20c @ ~] $

I checked the terminal settings, and they are configured as follows:
[vitor.sanches bh20c @ ~] $ export | grep-i proxy
declare-x FTP_PROXY = "http://http://192.168.0.2:3128/"
declare-x https_proxy = "http://http://192.168.0.2:3128/"
declare-x NO_PROXY = "localhost, 127.0.0.0 / 8"
declare-x ftp_proxy = "http://http://192.168.0.2:3128/"
declare-x https_proxy = "http://http://192.168.0.2:3128/"
declare-x no_proxy = "localhost, 127.0.0.0 / 8"
[vitor.sanches bh20c @ ~] $

The settings appear to be wrong because they have 2 times "http://".

I believe that beyond these settings, requiring the setting http_proxy to some connections.

Comment 3 Juan Saavedra 2011-05-09 14:22:51 UTC
Setting up a proxy seems to be setting envirnoment variables ok.

A problem persists, because http_proxy nor HTTP_PROXY are set even if configured manually in the gnome dialog box.

¿Has anyone this same issue?

Greets.

Comment 4 Mikhail Kryshen 2011-05-26 15:05:17 UTC
Have the same problem. Proxy is configured in network settings. In gnome-terminal https_proxy is set to http://<server>:<port>, http_proxy is not set.

Also, why is this bug related to gnome-terminal? I think that any application launched from gnome-shell should see these variables.

Comment 5 Michal Nowak 2011-06-02 23:12:19 UTC
Moving to "control-center" component as I believe it handles "Control Center -> Network".

As I see this, when I set up proxy for HTTP is does not propagate to environment variable (as one can easily check in gnome-terminal - $http_proxy nor $HTTP_PROXY is set) but HTTPS_PROXY and others do propagate.

Can anyone have a look, please?

Comment 6 Michal Nowak 2011-06-03 12:35:51 UTC
Filed upstream as https://bugzilla.gnome.org/show_bug.cgi?id=651778.

Comment 7 Michal Nowak 2011-06-03 13:34:24 UTC
Switching to gnome-terminal per upstream.

Comment 8 Dan Winship 2011-06-06 15:56:34 UTC
Created attachment 503263 [details]
patch to fedora package

Here's a patch to the Fedora package. (I don't have commit access to it.) The patch it adds has already been committed upstream.

Comment 9 Fedora Admin XMLRPC Client 2012-01-10 15:45:27 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Fedora Admin XMLRPC Client 2012-01-10 15:48:02 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 11 Dan Winship 2012-07-10 17:37:40 UTC
not sure if the patch above ever got committed to Fedora, but it's been fixed in the upstream sources since 3.2