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 581780 - CalDav and Web Calendar does not remember password on restart
CalDav and Web Calendar does not remember password on restart
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.26.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
evolution[passwords] evolution[caldav]
: 509458 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-07 18:58 UTC by CannyDuck
Modified: 2009-06-03 17:55 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
proposed evo patch (3.57 KB, patch)
2009-05-25 16:38 UTC, Milan Crha
committed Details | Review

Description CannyDuck 2009-05-07 18:58:04 UTC
Please describe the problem:
Evolution does not remember passwords for CalDav and Web Calendar on restart although the "remember password" box is checked. For Google calendars is works quite fine and it's not necessary to retype the password.

Steps to reproduce:
1. add a new CalDav or Web Calendar with authentication required
2. check the "remember password" box
3. restart evolution


Actual results:
Evolution asks for the password again.

Expected results:
No password request on restart.

Does this happen every time?
yes

Other information:
Comment 1 Milan Crha 2009-05-25 16:14:08 UTC
Thanks for the bug report. I guess you use keyring for your passwords, do you? The CalDAV should be fine since 2.26.2, though one more fix was necessary to let it work, see bug #578335 for more information.

I see those "On The Web" don't work, confirming.
Comment 2 Milan Crha 2009-05-25 16:38:41 UTC
Created attachment 135333 [details] [review]
proposed evo patch

for evolution;

I did this in quite similar way in CalDAV, though would be nice to have some review at least here. Thanks.

Basically, keyring uses username from URL when reading/storing password, and webcal doesn't store usernames in URL, as didn't also CalDAV, after one my changes there, thus this adds username into URL.
Comment 3 Milan Crha 2009-05-27 17:22:18 UTC
*** Bug 509458 has been marked as a duplicate of this bug. ***
Comment 4 Chenthill P 2009-06-03 08:33:28 UTC
Instead of replace_at_sign function, you could use g_strdelimit glib function. Other than that it looks fine.
Comment 5 Milan Crha 2009-06-03 14:50:11 UTC
g_strdelimit changes list of bad characters to one character in a text, not to a string (I change '@' to "%40"), thus it's not the one :)
Comment 6 Chenthill P 2009-06-03 16:05:51 UTC
I tried to find if there is any function to do this common operation through glib. could not find any. Please commit the patch.
Comment 7 Milan Crha 2009-06-03 17:55:21 UTC
Created commit d83027f in evo master (2.27.3+)
Created commit c045b51 in evo gnome-2-26. (2.26.3+)