Bug 212319 - Broken http_proxy env if using "automatic proxy configuration"
Summary: Broken http_proxy env if using "automatic proxy configuration"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-session
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 212354
TreeView+ depends on / blocked
 
Reported: 2006-10-26 09:28 UTC by Mark McLoughlin
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-11-30 14:47:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark McLoughlin 2006-10-26 09:28:02 UTC
If, using gnome-network-preferences, you configure the proxy use use "automatic
proxy configuration", then you end up with something like:

  /system/http_proxy/use_http_proxy = true
  /system/http_proxy/host = ""
  /system/proxy/autoconfig_url = file:///home/markmc/.proxy.pac

and gnome-session sets http_proxy to "http://:8080"

This would fix it:

 if (host == NULL || host[0] == '\0')
   {
     g_unsetenv ("http_proxy");
     return;
   }

Look at this, though:

  http://bugzilla.gnome.org/show_bug.cgi?id=343811

There may be a bit more too it ... there may be a bit more to interpreting the
proxy settings

Comment 1 Ray Strode [halfline] 2006-10-26 14:15:39 UTC
another interesting bit, is there is now code out there that will break down an
autoconfiguration url into it's peices using gecko's javascript engine.

At some point we may want to think about using that to make http_proxy work in
those situations (or maybe not worth the effort)

http://mail.gnome.org/archives/gnome-announce-list/2006-October/msg00071.html

Comment 2 Ray Strode [halfline] 2006-11-30 14:47:42 UTC
I'm going to go ahead a close this.  We can figured out the autoconfiguration
half later.


Note You need to log in before you can comment on or make changes to this bug.