Bug 212319

Summary: Broken http_proxy env if using "automatic proxy configuration"
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: gnome-sessionAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: tromey
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-30 14:47:42 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:
Bug Depends On:    
Bug Blocks: 212354    

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.