Bug 459059

Summary: akonadi_google_resource forgets access token
Product: [Frameworks and Libraries] Akonadi Reporter: Sebastian Frei <sebastian>
Component: Google ResourceAssignee: Daniel Vrátil <dvratil>
Status: REPORTED ---    
Severity: normal CC: kdepim-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sebastian Frei 2022-09-13 12:35:52 UTC
The akonadi_google_resource seems to forget the authorization for the google account.

STEPS TO REPRODUCE
1.  Create a new google calendar resource in korganizer
2.  Reboot and/or wait a while
3.  This message will be in the system log:

Sep 13 13:01:08 PC akonadi_google_resource[1829]: org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
Sep 13 13:01:08 PC akonadi_google_resource[1829]: org.kde.pim.google: Got error: KGAPI2::TaskListFetchJob(0x55963b9574d0) "Ungültige Authentifizierung."
Sep 13 13:01:08 PC akonadi_google_resource[1829]: org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
Sep 13 13:01:08 PC akonadi_google_resource[1829]: org.kde.pim.google: Got error: KGAPI2::CalendarFetchJob(0x55963b9abc30) "Ungültige Authentifizierung."

4. The calendar does not receive updates anymore.

Used versions:
kdepim-runtime 22.08.1-1.1 from OpenSUSE Tumbleweed
plasma5-desktop 5.25.5-1.1
plasma-framework 5.97.0-1.2
qt 5.15.1+kde166-1.2

Access is granted via FireFox.
The accessToken and refreshToken are stored in kdewallet.

Maybe related to bug https://bugs.kde.org/show_bug.cgi?id=391186