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 238791 - gpg can make evo hang if keyserver unreachable
gpg can make evo hang if keyserver unreachable
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
unspecified
Other All
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 236142 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-02-26 22:26 UTC by Joe Ammond
Modified: 2013-09-10 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fixes cancellation (11.99 KB, patch)
2005-02-01 06:48 UTC, Not Zed
none Details | Review

Description Joe Ammond 2003-02-26 22:26:05 UTC
Description of Problem:

To check signatures using gpg, I need to use an
http proxy server.  This is configured and works
from the command line, as long as the http_proxy
environment variable is set up.

However, evolution does not pass these settings
to gpg when verifying signatures.  Replacing
the 'gpg' binary with a shell-script that sets
the env and calls the real gpg binary works.

Steps to reproduce the problem:
1. Configure gpg to use a keyserver and an http proxy
(in ~/.gnupg/gpg.conf, 
keyserver wwwkeys.us.pgp.net
keyserver-options honor-http-proxy)
2. Bring up a signed message in evolution
3. Click to verify the signature. The shell hangs
as gpg attempts to connect directly to the
keyserver, and not through the proxy

Actual Results:
Evolution hangs.

Expected Results:
The key should be verified.

How often does this happen? 
Every time.

Additional Information:
Comment 1 Jeffrey Stedfast 2003-02-27 17:53:41 UTC
this sounds more like a gpg bug, no?

I don't believe that evolution should have to know about any gpg
configuration options, if those settings are in ~/.gnupg/options (or,
with 1.2.x I think it's ~/.gnupg/gpg.conf or whatever) then it should
Just Work (tm).
Comment 2 Jeffrey Stedfast 2003-02-27 17:55:13 UTC
actually, reopening bug because evolution hangs (right?). I'll
consider the hang a bug, but not the http proxy thing (as that is a
gpg bug afaik).
Comment 3 Joe Ammond 2003-02-27 19:47:00 UTC
I've done a little more research into this. I don't think it is
a gpg bug, but more of an interaction between the different
components in evolution.

If I "setenv http_proxy http://localhost:3128" in an xterm, then
start evolution, I see the behavior.  

In a separate xterm, if I set the same environment variable and start
evolution-mail on its own, then start the shell from another xterm,
gpg can successfully use the proxy to retrieve keys from the keyservers.

I've verified that I have the http-proxy* settings correct in gconf
(the Summary page uses them correctly to pull the weather and news
feeds).

I noticed I forgot to include the version of Evolution I'm running:
Evolution 1.2.2, from the redhat 8.0.94 distribution.  I'll check this
behavior on a stock RedHat 8.0 installation with the latest Ximian
1.2 build from Red Carpet also.
Comment 4 Jeffrey Stedfast 2003-03-10 20:49:23 UTC
oh, then that is an oafd bug. you see, evolution starts up and tells
oafd to start the other components. oafd just reuses the same shell
env that it was started with, so if it is running *before* you set the
http_proxy env, then evolution-mail won't get it.

that part is not an evolution bug. leaving open still only because of
the hang.
Comment 5 Jeffrey Stedfast 2004-01-09 16:03:11 UTC
I think evo 1.5 now checks gpg status in another thread so this
shouldn't be a problem anymore. need to verify that tho...
Comment 6 Not Zed 2005-01-24 02:18:54 UTC
hmm, that doesn't make it an oaf bug.

anyway - if the stop/cancel button fixes the hang, then it isn't a
bug, just a configuration issue.

(actually i doubt the gpg code does)
Comment 7 Not Zed 2005-02-01 04:39:52 UTC
afaict the gpg code doesn't support cancellation quite fully/properly,
and it shouldn't be hard for it to do it, so making this a 2.1 bug
Comment 8 Not Zed 2005-02-01 06:48:12 UTC
Created attachment 44716 [details] [review]
fixes cancellation
Comment 9 Not Zed 2005-02-01 06:50:45 UTC
*** bug 236142 has been marked as a duplicate of this bug. ***
Comment 10 Not Zed 2005-02-02 03:05:27 UTC
closing.  if gpg 'hangs', but the stop button works in evolution,
there is no bug.

it should now work properly, so long as checking is done in another
thread, which should always be the case.