Comment 12 for bug 1034207

Giovanni Mellini (merlos) wrote :

The attached patch for get_network_proxies() function in fogger_lib/helpers.py fix the problem that we experience while we have the Proxy Settings set to 'none' but we have the http and https url and port set-up, but not active

Before return http and https host/port values we have to check the value of org.gnome.system.proxy mode
In fact mode can be
- 'none' ==> proxies must be empty
- 'manual' ==> proxies contains host/port values, like current implementation
- 'auto' ==> we should read the autoconfig-url value. IMPORTANT: now the function returns an empty proxies array, this should be fixed (I have no test network to try this)

From terminal do this command

giovanni@trumpet-fish:/opt/extras.ubuntu.com/fogger/fogger_lib$ gsettings list-recursively org.gnome.system.proxy
org.gnome.system.proxy autoconfig-url ''
org.gnome.system.proxy ignore-hosts ['localhost', '127.0.0.0/8']
org.gnome.system.proxy mode 'none'
org.gnome.system.proxy use-same-proxy false
org.gnome.system.proxy.ftp host 'ocs-sa-ubu01'
org.gnome.system.proxy.ftp port 5865
org.gnome.system.proxy.http authentication-password ''
org.gnome.system.proxy.http authentication-user ''
org.gnome.system.proxy.http enabled false
org.gnome.system.proxy.http host 'ubu01'
org.gnome.system.proxy.http port 5865
org.gnome.system.proxy.http use-authentication false
org.gnome.system.proxy.https host 'ubu01'
org.gnome.system.proxy.https port 5865
org.gnome.system.proxy.socks host 'ubu01'
org.gnome.system.proxy.socks port 5865
giovanni@trumpet-fish:/opt/extras.ubuntu.com/fogger/fogger_lib$