Bug 336758 - GMail resource never starts
Summary: GMail resource never starts
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Gmail resource (show other bugs)
Version: GIT (master)
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 13:36 UTC by Emil Sedgh
Modified: 2014-07-16 13:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.90


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Sedgh 2014-06-26 13:36:27 UTC
Added Gmail resource. It authenticates just fine.
However, it always stays in 'Ready' state (seen on Akonadi Configuration dialog) and never starts working.

Also, nothing appears on folder list.

Checking mail manually does not trigger anything.

Reproducible: Always

Steps to Reproduce:
1. Add a gmail resource to kmail
Actual Results:  
Resource adds, authenticates fine, but nevers fetches folders/emails.

Expected Results:  
It should start fetching folders and emails

Following error appears in xsession-errors file:

akonadi_gmail_resource_3(2140)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::startAuthentication: sasl_client_start failed with: -1
Comment 1 Raymond Wooninck 2014-06-26 14:07:02 UTC
If I look in the resource Schedulers page of akonadiconsole, then I can see that the gmail resource seems to be "hanging" in the step Custom-startConnect. At least this one stays on the status running .
Comment 2 Christophe Marin 2014-06-26 14:22:29 UTC
fwiw, I don't see the sasl error.
The resource just complains about a missing slot (No such slot PasswordRequesterInterface::onAuthFinished(KGAPI2::AccountPtr,bool) in /kde/src/4/pim/kdepim-runtime/resources/gmail/gmailpasswordrequester.cpp:47) and nothing happens (no visible account in KMail and nothing in the akonadiconsole browser view).
Comment 3 Daniel Vrátil 2014-07-14 15:14:37 UTC
I can confirm the problem and I have a fix, but first Christian and I have to come up with a solution how to implement it in Gmail/IMAP resource.
Comment 4 Daniel Vrátil 2014-07-16 11:49:48 UTC
Git commit 7e632ebfc186aeed6e4936da9e337e91f71bbe02 by Dan Vrátil.
Committed on 16/07/2014 at 11:48.
Pushed by dvratil into branch 'KDE/4.14'.

Gmail resource: fix resource not being able to authenticate

This was caused by IMAP resource parts and Gmail resource parts using
different instance of Settings, which caused mess in configuration.
FIXED-IN: 4.13.90

M  +1    -1    resources/gmail/CMakeLists.txt
M  +38   -33   resources/gmail/gmailconfigdialog.cpp
M  +5    -2    resources/gmail/gmaillinkitemstask.cpp
M  +3    -1    resources/gmail/gmaillinkitemstask.h
M  +6    -4    resources/gmail/gmailpasswordrequester.cpp
M  +4    -1    resources/gmail/gmailpasswordrequester.h
M  +15   -4    resources/gmail/gmailresource.cpp
M  +5    -0    resources/gmail/gmailresource.h
M  +16   -66   resources/gmail/gmailsettings.cpp
M  +4    -10   resources/gmail/gmailsettings.h
M  +14   -14   resources/imap/settings.h

http://commits.kde.org/kdepim-runtime/7e632ebfc186aeed6e4936da9e337e91f71bbe02
Comment 5 Daniel Vrátil 2014-07-16 13:05:38 UTC
Git commit 90e98f05b5838c2497690170d92561ec66f7f680 by Dan Vrátil.
Committed on 16/07/2014 at 13:05.
Pushed by dvratil into branch 'KDE/4.14'.

Gmail resource: Add missing Q_OBJECT macro

M  +2    -0    resources/gmail/gmailpasswordrequester.h

http://commits.kde.org/kdepim-runtime/90e98f05b5838c2497690170d92561ec66f7f680