Bug 324339 - Google contacts gone after deleting addressbook
Summary: Google contacts gone after deleting addressbook
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: 4.11
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-01 06:44 UTC by Ruchir Brahmbhatt
Modified: 2017-01-07 22:12 UTC (History)
3 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 Ruchir Brahmbhatt 2013-09-01 06:44:25 UTC
Kmail: 4.11
Addressbook: Google contacts

I noticed something very weird. One day addressbook started complaining about conflicting contacts and asked me to verify one by one. Obviously this could be tedious and I knew address book is not altered so I decided to delete and add the addressbook again. But that was terrible decision. Since then I'm not able to add the google contacts back. When I add addressbook, it appears in akonady resources in ready status but it doesn't appear in kontact's addressbook tab. Neither kmail2 looks up and autocompletes addresses. 

Reproducible: Always

Steps to Reproduce:
1. Add google contacts as addressbook.
2. Remove addressbook.
3. Try to add again.
Actual Results:  
Can't add google contacts again.

Expected Results:  
Addressbook should be populated as it did first time.
Comment 1 Daniel Vrátil 2013-09-01 10:43:32 UTC
Can you please open Akonadi Console, go to the Debugger tab, enable the debugger, then try to add the resource again and see, whether any errors are printed in any of the views?
Comment 2 Ruchir Brahmbhatt 2013-09-01 14:11:26 UTC
0xcc1880 * OK Akonadi Almost IMAP Server [PROTOCOL 33] 
0xcc1880 0 LOGIN "akonadi_googlecontacts_resource_12" 
akonadi_googlecontacts_resource_12 (0xcc1880) 0 OK User logged in 
akonadi_googlecontacts_resource_12 (0xcc1880) 1 CAPABILITY (NOTIFY 2)
akonadi_googlecontacts_resource_12 (0xcc1880) 1 OK CAPABILITY completed 
akonadi_googlecontacts_resource_12 (0xcc1880) 2 RESSELECT "akonadi_googlecontacts_resource_12" 
akonadi_googlecontacts_resource_12 (0xcc1880) 2 OK akonadi_googlecontacts_resource_12 selected 
akonadi_googlecontacts_resource_12 (0xcc1880) 3 BEGIN 
akonadi_googlecontacts_resource_12 (0xcc1880) 3 OK Begin completed 
akonadi_googlecontacts_resource_12 (0xcc1880) 4 LIST 0 INF (RESOURCE akonadi_googlecontacts_resource_12) (ANCESTORS 1) 
akonadi_googlecontacts_resource_12 (0xcc1880) 4 OK List completed 
akonadi_googlecontacts_resource_12 (0xcc1880) 5 CREATE "[MY_EMAIL@MY_DOMAIN.COM]" 0 (MIMETYPE (application/x-vnd.akonadi.collection.virtual text/directory) REMOTEID "MyContacts" REMOTEREVISION "" VIRTUAL 0 ENTITYDISPLAY "(\"[MY_EMAIL@MY_DOMAIN.COM]\" \"im-google\" \"\" ())" AccessRights "wcdC" CACHEPOLICY (INHERIT true)) 
akonadi_googlecontacts_resource_12 (0xcc1880) * 288 0 (NAME "[MY_EMAIL@MY_DOMAIN.COM]" MIMETYPE (text/directory application/x-vnd.akonadi.collection.virtual) REMOTEID "MyContacts" REMOTEREVISION "" RESOURCE "akonadi_googlecontacts_resource_12" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ENTITYDISPLAY "(\"[MY_EMAIL@MY_DOMAIN.COM]\" \"im-google\" \"\" ())" AccessRights "wcdC") 
akonadi_googlecontacts_resource_12 (0xcc1880) 5 OK CREATE completed 
akonadi_googlecontacts_resource_12 (0xcc1880) 6 CREATE "Other Contacts" 288 (MIMETYPE (text/directory) REMOTEID "OtherContacts" REMOTEREVISION "" VIRTUAL 0 ENTITYDISPLAY "(\"Other Contacts\" \"view-pim-contacts\" \"\" ())" AccessRights "wcd" CACHEPOLICY (INHERIT true)) 
akonadi_googlecontacts_resource_12 (0xcc1880) * 289 288 (NAME "Other Contacts" MIMETYPE (text/directory) REMOTEID "OtherContacts" REMOTEREVISION "" RESOURCE "akonadi_googlecontacts_resource_12" VIRTUAL 1 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ENTITYDISPLAY "(\"Other Contacts\" \"view-pim-contacts\" \"\" ())" AccessRights "wcd") 
akonadi_googlecontacts_resource_12 (0xcc1880) 6 OK CREATE completed 
akonadi_googlecontacts_resource_12 (0xcc1880) 7 CREATE "Personal" 288 (MIMETYPE (text/directory) REMOTEID "http://www.google.com/m8/feeds/groups/MY_EMAIL%40MY_DOMAIN.COM/base/11354bc208526203" REMOTEREVISION "" VIRTUAL 1 ENTITYDISPLAY "(\"Personal\" \"view-pim-contacts\" \"\" ())" AccessRights "wWDlu" CACHEPOLICY (INHERIT true)) 
akonadi_googlecontacts_resource_12 (0xcc1880) * 290 288 (NAME "Personal" MIMETYPE (text/directory) REMOTEID "http://www.google.com/m8/feeds/groups/MY_EMAIL%40MY_DOMAIN.COM/base/11354bc208526203" REMOTEREVISION "" RESOURCE "akonadi_googlecontacts_resource_12" VIRTUAL 1 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ENTITYDISPLAY "(\"Personal\" \"view-pim-contacts\" \"\" ())" AccessRights "wWDlu") 
akonadi_googlecontacts_resource_12 (0xcc1880) 7 OK CREATE completed 
akonadi_googlecontacts_resource_12 (0xcc1880) 8 CREATE "Personal" 288 (MIMETYPE (text/directory) REMOTEID "http://www.google.com/m8/feeds/groups/MY_EMAIL%40MY_DOMAIN.COM/base/12a0a9a48a4d2262" REMOTEREVISION "" VIRTUAL 1 ENTITYDISPLAY "(\"Personal\" \"view-pim-contacts\" \"\" ())" AccessRights "wWDlu" CACHEPOLICY (INHERIT true)) 
akonadi_googlecontacts_resource_12 (0xcc1880) 8 NO Could not create collection Personal resourceId: 21 
akonadi_googlecontacts_resource_12 (0xcc1880) 9 ROLLBACK 
akonadi_googlecontacts_resource_12 (0xcc1880) 9 OK Rollback completed
Comment 3 Daniel Vrátil 2013-09-02 12:29:23 UTC
It looks like you have two groups called "Personal" in Google Contacts - can you confirm that please?

The problem is that when the resource tries to create the second "Personal" group it runs into name conflict and aborts.
Comment 4 Ruchir Brahmbhatt 2013-09-02 13:19:36 UTC
That was correct. I had 5-6 groups named  "Personal" . I removed all and now google contacts are loading. But I don't know how it appeared. I never created that group manually from gmail or from kmail2. Is it possible that kmail2 created the groups?
Comment 5 Daniel Vrátil 2013-09-02 15:22:41 UTC
Can tell for sure. One "Personal" group has been created by Google by default. It is possible that due to a bug in the Google contacts resource the groups have been duplicated.

Anyway, I'll keep this open so that I can work on handling duplicate names in the resource.
Comment 6 René Fritz 2013-09-07 16:57:45 UTC
I can confirm this problem.

I have multiple groups named 'Starred in Android'. I guess this is because I have multiple Android devices. Therefore the groups appear again shortly after removing them (due to syncing).

This means there's no workaround available for my szenario.

The log looks similar for me.
Comment 7 Denis Kurz 2016-09-24 20:53:13 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kaddressbook (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 8 Denis Kurz 2017-01-07 22:12:31 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.