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

Bug #1710291 reported by Filipe Azevedo on 2017-08-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Undecided
Unassigned

Bug Description

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers