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 655728 - Read proxy settings from GSettings since Gnome 3
Read proxy settings from GSettings since Gnome 3
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
3.0.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2011-08-01 16:23 UTC by brandon
Modified: 2011-09-10 15:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
eds patch (21.83 KB, patch)
2011-09-06 15:34 UTC, Milan Crha
committed Details | Review
evo patch (4.16 KB, patch)
2011-09-06 15:34 UTC, Milan Crha
committed Details | Review

Description brandon 2011-08-01 16:23:49 UTC
Since updating to Gnome 3 I have not been able to connect to an IMAP server through an HTTP proxy. All other programs I've tried (Firefox, Thunderbird, Epiphany, Empathy) follow the system proxy settings from network-manager and connect without a problem. Setting Evolution to follow the system proxy settings or to use manual proxy settings does not work

If I run from a terminal, I occasionally get this warning/error:
(evolution:5485): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: The proxy host does not support SOCKS4

netstat shows:
[brandon@brandon ~]$ netstat -pt | grep evolution
tcp        0      0 WS098367.cm.xxxxx.e:41433 proxy.xxxxx.edu:http-alt  ESTABLISHED 5690/evolution   

I'm unsure of the veracity of that error because the person sitting next to me is using Evolution on an older Ubuntu install (10.04?) and can connect fine via our proxy. I had also previously used it from this computer. After updating to Gnome 3, I decided to try Evolution again and I could never connect. I've since done a fresh install of Arch which is completely up-to-date and I continue to have the same problems.
Comment 1 Milan Crha 2011-09-06 11:17:57 UTC
Thanks for a bug report. The IMAP provider doesn't use HTTP proxy (as it is named in Evolution's Edit->Preferences->Network Preferences, it is using SOCKS proxy, the one the error claims about. It always was this way, maybe the only difference is that the proxy settings place changed in Gnome3, but evolution didn't adapt to this change. It used to be stored in GConf, in /system/proxy and /system/http_proxy keys, but in Gnome3 it's moved to GSettings, also under /system/proxy/..., but evolution doesn't search for it there.

As a workaround, if you populate GConf keys for SOCKS proxy with values from the system preferences, then evolution may start working again.
Comment 2 Milan Crha 2011-09-06 15:34:03 UTC
Created attachment 195792 [details] [review]
eds patch

for evolution-data-server;

Let EProxy know about GSettings values.
Comment 3 Milan Crha 2011-09-06 15:34:57 UTC
Created attachment 195793 [details] [review]
evo patch

for evolution;

Let CamelSession know about SOCKS GSettings values.
Comment 4 Milan Crha 2011-09-06 15:38:30 UTC
Created commit 079197d in eds master (3.1.92+)
Created commit 90d9555 in evo master (3.1.92+)
Comment 5 brandon 2011-09-10 15:05:34 UTC
Yes, that fixed it. I just had to clear the SOCKS proxy settings in gconf-editor. 
Thanks!