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

Bug #1710291 reported by Filipe Azevedo
10
This bug affects 2 people
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://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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.