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 405119 - don't export http_proxy when there is no host defined
don't export http_proxy when there is no host defined
Status: RESOLVED DUPLICATE of bug 343811
Product: gnome-terminal
Classification: Core
Component: general
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-06 20:47 UTC by Sebastien Bacher
Modified: 2008-05-29 20:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Sebastien Bacher 2007-02-06 20:47:58 UTC
That bug has been described on https://launchpad.net/bugs/78098

"If I set a socks proxy without setting an http proxy, gnome terminal sessions still have the http_proxy environment variable set, but as "http://:8080". Needless to say, this does not work.
...
> Alex, do you have "8080" as port number for http to the dialog? I tried again and without an IP nor a port there is no http_proxy variable set on my feisty desktop
...
Yes, I did. 8080 was the default value; I assumed it would be ignored if the host was left blank. Further, using gconf-editor's "unset key" action on /system/http_proxy/port sets it back to 8080

Through the applet I cannot completely unset the port. It gets set to 0 if I blank it out (and the gconf key /system/http_proxy/use_http_proxy stays set)

So presumably either this applet should be changed to default to 0; or other things (gnome-session?) should ignore the [other] settings for http_proxy if the host is blank; or the the applet should unset the key /system/http_proxy/use_http_proxy if the host is blank, and whatever sets the environment variable should read the key /system/http_proxy/use_http_proxy instead of using /system/http_proxy/host and /system/http_proxy/port."
Comment 1 Mariano Suárez-Alvarez 2007-02-06 20:51:58 UTC
Just so that I don't lose this: cf. bug 343811.
Comment 2 Mariano Suárez-Alvarez 2007-02-06 22:20:55 UTC
The terminal sets the http_env when creating a new terminal iff:
  - when g-t itself was launched, the http_variable was not set; and
  - the /system/http_proxy/use_http_proxy is set to true.

If the proxy gconf keys are in a sane state, that should be enough, no?
CCint g-c-c-maint...
Comment 3 Alex L. Mauer 2007-02-06 22:56:13 UTC
(In reply to comment #2)

> If the proxy gconf keys are in a sane state, that should be enough, no?
> CCint g-c-c-maint...
> 

Is /system/http_proxy/host="" and /system/http_proxy/port="8080" and /system/http_proxy/use_http_proxy=true considered "a sane state"?  I would think not, as clearly using an empty host will never work -- at least without some bizarre firewalling rules, and even then I'm not sure it's possible.
Comment 4 Mariano Suárez-Alvarez 2007-02-06 23:09:31 UTC
What I meant is, if everything that manipulates the gconf keys leaves them in a sane state. 

If at some point /system/http_proxy/host="" and /system/http_proxy/port="8080" and /system/http_proxy/use_http_proxy=true, then clearly something has in the past changed the gconf keys to be in a non-sane state.

Comment 5 Sebastien Bacher 2007-02-12 11:10:55 UTC
Getting that state is quite easy, you might want to use a socks proxy only, an easy way for the user to not use an HTTP one is to clear the entry which leads him to that config. The "use_http_proxy" might be misnamed, it's set when configuring a sock proxy and no http one for example
Comment 6 Mariano Suárez-Alvarez 2007-02-27 18:42:05 UTC
Can someone who knows how is one is supposed to interpret the gconf strings write a spec on live.gnome.org? 

The most common use is to get the http proxy: a pseudocode example which obtains it would be the perfect finishing touch to that spec...
Comment 7 Christian Persch 2008-05-29 20:40:28 UTC

*** This bug has been marked as a duplicate of 343811 ***