Proxy settings "apply system wide" generates the wrong proxy URL ( And possible solution )
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-control-center (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The settings for the different protocols should generate variable values as follows:
http_proxy=http://
https_proxy=http://
ftp_proxy=http://
socks_proxy=
but instead the proxied protocol is used to generate the URL as follows:
http_proxy=http://
https_proxy=https:/
ftp_proxy=ftp://HOST:PORT/
socks_proxy=
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-
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"
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
Status changed to 'Confirmed' because the bug affects multiple users.