After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616191 - gconf key .../http_proxy/ignore_hosts is a list, not a string
gconf key .../http_proxy/ignore_hosts is a list, not a string
Status: RESOLVED DUPLICATE of bug 580623
Product: evolution-data-server
Classification: Platform
Component: general
2.28.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2010-04-19 15:18 UTC by Brian J. Murrell
Modified: 2010-09-03 08:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Brian J. Murrell 2010-04-19 15:18:02 UTC
I could be totally barking up the wrong tree here given that I don't know the libedataserver API, but in libedataserver/e-proxy.c there is this code:

ignore = gconf_client_get_list (client, RIGHT_KEY (HTTP_IGNORE_HOSTS), GCONF_VALUE_STRING, NULL);
if (ignore) {
	g_slist_foreach (ignore, (GFunc) ep_parse_ignore_host, proxy);
	g_slist_foreach (ignore, (GFunc) g_free, NULL);
	g_slist_free (ignore);
}

In particular I notice the constant "GCONF_VALUE_STRING".  In my local configuration however /system/http_proxy/ignore_hosts is a list, not a string.

Am I just misinterpreting the APIs being used here?
Comment 1 Matthew Barnes 2010-04-19 16:04:30 UTC
It's a list of strings.  GCONF_VALUE_STRING specifies the list element type.

However our handling of the /apps/evolution/shell/network_config/ignore_hosts key is totally botched on the Evolution side.  See bug #580623.  (I would greatly prefer ditching our own Network Preferences and just always using the desktop-wide settings.  It's a mess otherwise.)
Comment 2 Brian J. Murrell 2010-04-19 18:13:04 UTC
Hrm.  Interesting.  In Evolution's "No Proxy for:" I have a space separated list:

example example.com

and in /apps/evolution/shell/network_config/ignore_hosts I indeed have a simple GConf string:

example example.com

If I edit the setting in evolution to comma separate it, it's still a simple string in GConf, now with commas embedded.

Is it supposed to be a list type like the /system/http_proxy/ignore_hosts?
Comment 3 Brian J. Murrell 2010-04-19 18:16:15 UTC
Oh.  I just looked at bug 580623.  So it really is supposed to be just a simple string (with a list in it)?  Is it supposed to be space or comma separated?
Comment 4 Brian J. Murrell 2010-04-19 18:21:51 UTC
Regardless, even using the system settings, the ignore list is simply not working.  In my /system/http_proxy/ignore_hosts one of the list items I have is "localhost" yet caldav still insists on using the proxy for "caldav://localhost/.

I really, really ,really hate the mess that is proxy configuration in gnome/linux.

I don't think there is a single application that handles it all properly.  ~sigh~
Comment 5 Brian J. Murrell 2010-04-19 18:28:47 UTC
In Evolution's (and every other app that has botched it up) defense, this is something that should be handled by the platform (i.e. gnome, libsoup) transparently so that it's not left up to every application to botch up.

I have seen movement in libsoup on this issue, but I think it's pretty slow going, sadly.
Comment 6 Matthew Barnes 2010-04-19 22:16:33 UTC
(In reply to comment #3)
> Oh.  I just looked at bug 580623.  So it really is supposed to be just a simple
> string (with a list in it)?  Is it supposed to be space or comma separated?

Actually no, I think I got it backwards in bug #580623.  It think it was meant to mimic /system/http_proxy/ignore_hosts but the Evolution preferences botched it up.
Comment 7 Matthew Barnes 2010-04-19 22:19:54 UTC
(In reply to comment #5)
> In Evolution's (and every other app that has botched it up) defense, this is
> something that should be handled by the platform (i.e. gnome, libsoup)
> transparently so that it's not left up to every application to botch up.

Agreed, and now that libgio has networking capabilities, the GNOME platform has a central place to do proxy handling.
Comment 8 Milan Crha 2010-09-03 08:10:53 UTC
What with this bug now? It's basically a duplicate of bug #580623, as of its initial description, but then it also seems that it turned into "ignore list doesn't work", which may also be caused by the mentioned issue with GConf key type, so I believe both is relevant to that bug and it can be safely marked as a duplicate. Feel free to reopen, if you disagree.

*** This bug has been marked as a duplicate of bug 580623 ***
Comment 9 Milan Crha 2010-09-03 08:24:42 UTC
And seeing a help for Network Preferences, it expects a comma-separated list of addresses in the ignore host entry.