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 676226 - Changing GOA mail account looses GOA key
Changing GOA mail account looses GOA key
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.4.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[goa]
: 676874 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-05-17 12:00 UTC by Milan Crha
Modified: 2012-06-12 07:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (2.44 KB, patch)
2012-05-17 12:07 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2012-05-17 12:00:39 UTC
Moving this from a downstream bug report for 3.4.1:
https://bugzilla.redhat.com/show_bug.cgi?id=821667

Description of problem:
I get the message:
"Cannot find a corresponding account in the org.gnome.OnlineAccounts service
from which to obtain an authentication token."

Version-Release number of selected component (if applicable):
evolution-3.4.1-2.fc17.i686


How reproducible:
Always


Steps to Reproduce:
1. Add Google on Online Accounts
2. Open Evolution, edit Google's account settings
3. Select "Check for new mail in all folders"
4. Close evolution
5. Reopen evolution


Actual results:
Error message appears "Cannot find a corresponding account in the
org.gnome.OnlineAccounts service from which to obtain an authentication token."


Expected results:
Should "Check for new mail in all folders"


Additional info:
Checking or unchecking any other checkbox on "Receiving options" also triggers
the error; renaming the account seems to do it as well.


"Fix" the issue:
1- Delete 'username@gmail.com' account from Evolution.
2- Close Evolution.
3- Open "Online Accounts"
4- Select "Gmail".
5- Disable and Reenable "Mail".
6- Open Evolution: the account works again.
Comment 1 Milan Crha 2012-05-17 12:02:48 UTC
I initially investigated this as part of bug #660378, but then I realized I'm wrong, this is a different issue.
Comment 2 Milan Crha 2012-05-17 12:07:44 UTC
Created attachment 214246 [details] [review]
evo patch

for evolution;

There is an issue with GOA accounts and CamelSettings and its transformation into URL on account change. The problem is that the GOA account uses a custom URL parameter to store the ID of the Online Account to use for XOAUTH, but as CamelSettings doesn't have any idea about the parameter, then it's lost of account change save. This patch copies all parameters and lets the CamelSetting overwrite the old known parameters with new values (even remove them).

I also added some defaults for the account, like it has enabled checking for new messages every 10 minutes and enabled filtering on Inbox folder.
Comment 3 Milan Crha 2012-05-17 12:10:59 UTC
Created commit 7d33763 in evo master (3.5.2+)
Created commit 6b21e87 in evo gnome-3-4 (3.4.3+)
Comment 4 Milan Crha 2012-06-12 07:18:22 UTC
*** Bug 676874 has been marked as a duplicate of this bug. ***