Public bug reported:

The settings for the different protocols should generate variable values
as follows:

http_proxy=http://HOST:PORT/
https_proxy=http://HOST:PORT/
ftp_proxy=http://HOST:PORT/
socks_proxy=socks://HOST:PORT

but instead the proxied protocol is used to generate the URL as follows:

http_proxy=http://HOST:PORT/
https_proxy=https://HOST:PORT/
ftp_proxy=ftp://HOST:PORT/
socks_proxy=socks://HOST:PORT

This breaks apt.conf, webkit applications and every normal app that
depends on an https_proxy as it's not a common practice to connect to a
forward proxy over HTTPS


##### Code ######


The problem seems to be in gnome-control-center, file: 
panels/network/net-proxy.c line 377

 proxy_str = g_strdup_printf ("%s://%s:%i/", protocol, host, port);

I believe this should instead look like:

 proxy_str = g_strdup_printf ("%s://%s:%i/", (protocol ==
"socks")?"socks":"http", host, port);


I would be happy to try it out but I can't find the repository where the 
ubuntu-specific patches live, if someone could help me with that I can submit 
the patch myself

** Affects: gnome-control-center (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1710291

Title:
  Proxy settings "apply system wide" generates the wrong proxy URL ( And
  possible solution )

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1710291/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to