GNOME Bugzilla – Bug 676226
Changing GOA mail account looses GOA key
Last modified: 2012-06-12 07:18:22 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.
I initially investigated this as part of bug #660378, but then I realized I'm wrong, this is a different issue.
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.
Created commit 7d33763 in evo master (3.5.2+) Created commit 6b21e87 in evo gnome-3-4 (3.4.3+)
*** Bug 676874 has been marked as a duplicate of this bug. ***