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 337479 - Evolution forgets password on any error
Evolution forgets password on any error
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.30.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[passwords] evolution[gnome3]
: 530137 547903 581949 584178 626327 626898 630273 (view as bug list)
Depends on: 691938
Blocks:
 
 
Reported: 2006-04-06 10:45 UTC by Stanislav Brabec
Modified: 2013-01-17 11:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
proposed eds patch (the above trace only) (1.59 KB, patch)
2008-09-24 15:35 UTC, Milan Crha
committed Details | Review
eds patch (6.83 KB, patch)
2010-05-10 15:38 UTC, Milan Crha
committed Details | Review
eex patch (3.27 KB, patch)
2010-05-10 15:39 UTC, Milan Crha
committed Details | Review
ema patch (1.10 KB, patch)
2010-05-10 15:39 UTC, Milan Crha
committed Details | Review

Description Stanislav Brabec 2006-04-06 10:45:05 UTC
Please describe the problem:
When Groupwise mail server is down, evolution shows many obsolete password prompts.

Steps to reproduce:
1. Down your goupwise server or disconnect from network.
2. Start Evolution.
3. Evolution asks for Groupwise password.
4. Cancel
5. Evolution asks for Groupwise password.
6. Cancel
7. Evolution asks for Groupwise password.
8. Cancel
9. Evolution asks for Groupwise password.
10. Cancel
11. Evolution asks for Groupwise password.
12. Cancel
13. Go to another account, find a mail.
14. Press Reply
15. Evolution asks for Groupwise password.
16. Cancel
17. Go to your Groupwise Account properties
18. Uncheck "Automatically check every..."
19. Press OK
20. Evolution asks for Groupwise password.
21. Cancel


Actual results:
I had to press 7 times Cancel

Expected results:
Cancel one time, do not show again until explicitly try to get mails.

Does this happen every time?
Only if server is down

Other information:
Unchecking of "Automatically check every..."  does not help (I have checked on
also "Search in all drawers"). First time it asks immediately after pressing OK,
and again after pressing Reply.

Additionally, it seems thet Evolution hangs on rendering for a long time:
1. Start evolution (mailer should appear)
2. Immediately when window appears go to another workspace (do not wait for
window rendering; you can probably need a hotkey for workspace switching).
3. Return back to Evolution workspace
Current behavior: Evolution is dead, window is not rendered.
Setting SOUP_SESSION_TIMEOUT=5 heps a much.
Comment 1 Akhil Laddha 2008-09-24 04:27:06 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but
we are happy to tell you that the problem has already been fixed. It should be
solved in the next software version. You may want to check for a software
upgrade.

*** This bug has been marked as a duplicate of 552631 ***
Comment 2 Stanislav Brabec 2008-09-24 11:00:33 UTC
It is not a duplicate.

Referred report and fix refers only to IMAP.

This report refers to GroupWise.
Comment 3 Milan Crha 2008-09-24 12:18:06 UTC
I was looking in the GW code and unfortunately I didn't find any invalidity in the logic of the code there, with respect to this. It forgets password only when server returns E_GW_CONNECTION_STATUS_INVALID_PASSWORD, which seems to be correct to me.

Maybe the error code is set wrong, I do not know. I cannot test it myself, unfortunately, I just told Akhil to make it duplicates, even the more general bug #553301 would fit better, that's right. Are you able to reproduce this?
Comment 4 Stanislav Brabec 2008-09-24 15:18:48 UTC
After disabling access to the GroupWise server, Evolution 2.23.92 only silently crashes, not asking for any password:

  • #0 strlen
    from /lib64/libc.so.6
  • #1 g_strdup
    from /usr/lib64/libglib-2.0.so.0
  • #2 groupwise_connect
    at camel-groupwise-store.c line 225
  • #3 groupwise_folders_sync
    at camel-groupwise-store.c line 907
  • #4 groupwise_get_folder_info
    at camel-groupwise-store.c line 1124
  • #5 camel_store_get_folder_info
    at camel-store.c line 851
  • #6 get_folderinfo_exec
    at mail-ops.c line 1068
  • #7 mail_msg_proxy
    at mail-mt.c line 521
  • #8 ??
    from /usr/lib64/libglib-2.0.so.0
  • #9 ??
    from /usr/lib64/libglib-2.0.so.0
  • #10 start_thread
    at pthread_create.c line 297
  • #11 clone
    from /lib64/libc.so.6
  • #12 ??

Comment 5 Milan Crha 2008-09-24 15:35:41 UTC
Created attachment 119313 [details] [review]
proposed eds patch (the above trace only)

for evolution-data-server;

For the above trace only. Using uninitialized variables could lead to bad things, no doubt. (No string added, this one is from imap provider).
Comment 6 Stanislav Brabec 2008-09-24 17:01:16 UTC
With this patch, it is better than in 2.12, but there are still two obsolete password requests:

1. Down your groupwise server or disconnect from network or edit your /etc/hosts.
2. Start Evolution.
3. Evolution asks for GroupWise password.
4. Cancel
5. Evolution asks for GroupWise password.
6. Cancel
7. Correct error pop-up.

Actual results:
Cancel twice

Expected results:
Don't ask at all: If network is down, retyping password will not help.
Comment 7 Sankar P 2008-09-25 03:43:00 UTC
Approved. Commit to both trunk and branch.
Comment 8 Sankar P 2008-09-25 03:58:37 UTC
> Expected results:
> Don't ask at all: If network is down, retyping password will not help.
> 

If network is down, it will automatically start in offline. Do you still get password prompts if you start without network ?

You do not use networkmanager ?
Comment 9 Milan Crha 2008-09-25 04:35:19 UTC
Committed to trunk. Committed revision 9605.
Committed to gnome-2-24. Committed revision 9606.

Applies for crash patch in comment #5
Comment 10 Stanislav Brabec 2008-09-25 10:44:31 UTC
No, I do not use networkmanager, as it is a desktop computer.

In my new test, I did not disconnect from the network. I only mis-routed server mail address to simulate not responding server:

echo "127.0.0.3 my_gwmail_server.example.com" >>/etc/hosts
Comment 11 Milan Crha 2010-03-25 15:36:09 UTC
*** Bug 547903 has been marked as a duplicate of this bug. ***
Comment 12 Milan Crha 2010-03-25 15:36:51 UTC
*** Bug 530137 has been marked as a duplicate of this bug. ***
Comment 13 Milan Crha 2010-03-25 15:37:49 UTC
*** Bug 581949 has been marked as a duplicate of this bug. ***
Comment 14 Milan Crha 2010-03-25 15:38:08 UTC
*** Bug 584178 has been marked as a duplicate of this bug. ***
Comment 15 Milan Crha 2010-03-25 15:44:48 UTC
Please consult above duplicates for more cases of this general issue, and also for some suggestions how to solve this. Note also that using a keyring and waiting with the master password too long may timeout the connection, so providers may not forget the password (it's one of the above duplicates).
So this should be done through all the providers, like SMTP, POP, Exchange, ...
One suggestion and problem analyses is available in bug #571504.
Comment 16 Oliver Joos 2010-03-25 19:55:04 UTC
Confirming that this bug might be quite wide-spread!

Our provider simply has a POP server that is down for some time each day (bad, I know). Evolution tries to poll mails each 15 mins and makes us re-type our passwords again and again.

When server is down it answers things like:
 "-ERR mail storage services unavailable, wait a few minutes and try again"
 "-ERR Temporary problem, please try again later"
So it should be possible to detect that this is not a case where the password should be asked again.
Comment 17 garkein 2010-05-08 09:13:46 UTC
I have a similar problem with a free mail account where mail retrieval is allowed only every 15 mins. If I try more often, I get an ERR about that and Evolution asks for the password again although it had the correct one:

"-ERR Zeitabstand zwischen zwei Logins unterschritten (FreeMail: 15 min, Club: kein)/minimum poll time not reached"

and asking for the password, declaring the saved one as invalid.

It would be nice if Evolution could either differentiate between this and a real password failure or alternatively not forget the old and correct password.
Comment 18 Milan Crha 2010-05-10 15:38:49 UTC
Created attachment 160730 [details] [review]
eds patch

for evolution-data-server;

I thought this will be harder, but everything is in, just use it properly. Thus these patches. Maybe some follow up work will be needed, thus more people testing them better. (Reason why I'm committing to master only.)
Comment 19 Milan Crha 2010-05-10 15:39:20 UTC
Created attachment 160731 [details] [review]
eex patch

for evolution-exchange;
Comment 20 Milan Crha 2010-05-10 15:39:48 UTC
Created attachment 160732 [details] [review]
ema patch

for evolution-mapi;
Comment 21 Milan Crha 2010-05-10 15:43:03 UTC
Created commit 6f12470 in eds master (2.31.2+)
Created commit b9cbe5a in eex master (2.31.2+)
Created commit 4cadacc in ema master (0.31.2+)
Comment 22 Milan Crha 2010-09-10 08:44:52 UTC
*** Bug 626327 has been marked as a duplicate of this bug. ***
Comment 23 Milan Crha 2010-09-10 13:20:32 UTC
*** Bug 626898 has been marked as a duplicate of this bug. ***
Comment 24 Fabio Durán Verdugo 2010-09-21 20:17:54 UTC
*** Bug 630273 has been marked as a duplicate of this bug. ***