Bug 234495 - gcal does not use username and password saved in kwallet after akonadi restart
Summary: gcal does not use username and password saved in kwallet after akonadi restart
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: GoogleData Resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Adenilson Cavalcanti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 01:04 UTC by Jari Laamanen
Modified: 2010-04-16 18:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jari Laamanen 2010-04-16 01:04:47 UTC
Version:           1.0.1-0ubuntu1 (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

akonadi_gcal_resource does not use username and password saved in kwallet after akonadi restart, but leaves them blank. Therefore, no syncing is possible until the username and password are entered by using either the "modify" option in akonadi configuration or "manage calendar sources" in KOrganizer.

How to reproduce:
1) In a new user account, start kontact 
2) add gcal resource to a new calendar in korganizer
The google account data is now saved into kwallet.
3) Exit kontact, close the open kwallet, stop and restart akonadi
4) start kontact.
Now kontact asks for the password for the kwallet.
5) Go to the calendar and see the status of gcal_resource: Status: Ready (Online) BUT when you look at the actual username/pwd dialog, the fields are empty. (Look either in akonadi configuration or in kontact.) Hence the calendars cannot be synced, until the user data has been added again by hand.

ii  akonadi-kde-resource-googledata  1.0.1-0ubuntu1
ii  akonadi-server 1.3.1-0ubuntu1~karmic1~ppa2
ii  kontact  4:4.4.2-0ubuntu1~karmic1~ppa1
ii  kwalletmanager  4:4.4.1-0ubuntu1~karmic1~ppa1
Comment 1 Jari Laamanen 2010-04-16 01:48:06 UTC
Actually it is akonadi that asks for the password for the kwallet after the akonadi restart, not kontact. And it seems like sometimes it works and sometimes not. However, always the fields are empty (which is not important if the syncing of new events happens to work). This is on a laptop with wireless connection and routine suspend/resume while staying logged-in in the same kde session.
Comment 2 Jari Laamanen 2010-04-16 18:28:14 UTC
I cannot seem to reproduce this anymore, so I change the status to resolved. The fields are empty but the calendars get synced without need to refill the account info. Sorry for waste of space... :) I'll come back to this if the situation reverts back to what it was, for some reason.