Bug 319622 - Carddav contacts not shown in KAddressbook after a while after adding account
Summary: Carddav contacts not shown in KAddressbook after a while after adding account
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: 4.10
Platform: Arch Linux Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 12:28 UTC by Josh Liberty
Modified: 2013-05-19 21:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.4


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Liberty 2013-05-10 12:28:40 UTC
When adding a new carddav account (ownCloud) the contacts show up in KAddressbook, but after a while - roughly a day, they don't show up anymore. The resource is still shown as ready and synchronization with akonadi console does not help.  Here are the logs of akonadi console debugger when I synchronize the resource:

akonadi_davgroupware_resource_9 (0x1f5e650) 61 RID SELECT SILENT "https://MYDOMAIN/owncloud/remote.php/carddav/addressbooks/josh/contacts/" 
akonadi_davgroupware_resource_9 (0x1f5e650) 61 OK Completed 
akonadi_davgroupware_resource_9 (0x1f5e650) 62 FETCH 1:* EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
akonadi_davgroupware_resource_9 (0x1f5e650) 62 OK FETCH completed 
akonadi_davgroupware_resource_9 (0x1f5e650) 63 BEGIN 
akonadi_davgroupware_resource_9 (0x1f5e650) 63 OK Begin completed 
akonadi_davgroupware_resource_9 (0x1f5e650) 64 LIST 0 INF (RESOURCE akonadi_davgroupware_resource_9) (ANCESTORS 1) 
akonadi_davgroupware_resource_9 (0x1f5e650) * 104 103 (NAME "Contacts" MIMETYPE (inode/directory text/directory) REMOTEID "https://MYDOMAIN/owncloud/remote.php/carddav/addressbooks/josh/contacts/" REMOTEREVISION "" RESOURCE "akonadi_davgroupware_resource_9" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((103 "akonadi_davgroupware_resource_9")) AccessRights "a" davprotocol "1") 
akonadi_davgroupware_resource_9 (0x1f5e650) * 103 0 (NAME "akonadi_davgroupware_resource_9" MIMETYPE (inode/directory) REMOTEID "akonadi_davgroupware_resource_9" REMOTEREVISION "" RESOURCE "akonadi_davgroupware_resource_9" VIRTUAL 0 CACHEPOLICY (INHERIT false INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((0 "")) ENTITYDISPLAY "(\"ownCloud Contacts\" \"folder-remote\" \"\" ())" AccessRights "WCD") 
akonadi_davgroupware_resource_9 (0x1f5e650) 64 OK List completed 
akonadi_davgroupware_resource_9 (0x1f5e650) 65 UID MODIFY 103 MIMETYPE (inode/directory) PARENT 0 NAME "akonadi_davgroupware_resource_9" REMOTEID "akonadi_davgroupware_resource_9" CACHEPOLICY (INHERIT false INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ENTITYDISPLAY "(\"ownCloud Contacts\" \"folder-remote\" \"\" ())" AccessRights "WCD" 
akonadi_davgroupware_resource_9 (0x1f5e650) 65 OK MODIFY done 
akonadi_davgroupware_resource_9 (0x1f5e650) 66 UID MODIFY 104 MIMETYPE (inode/directory text/directory) PARENT 103 NAME "Contacts" REMOTEID "https://MYDOMAIN/owncloud/remote.php/carddav/addressbooks/josh/contacts/" AccessRights "a" davprotocol "1" 
akonadi_davgroupware_resource_9 (0x1f5e650) 66 OK MODIFY done 
akonadi_davgroupware_resource_9 (0x1f5e650) 67 COMMIT 
akonadi_davgroupware_resource_9 (0x1f5e650) 67 OK Commit completed 
akonadi_davgroupware_resource_9 (0x1f5e650) 68 LSUB 0 INF (RESOURCE akonadi_davgroupware_resource_9) (ANCESTORS INF) 
akonadi_davgroupware_resource_9 (0x1f5e650) * 104 103 (NAME "Contacts" MIMETYPE (inode/directory text/directory) REMOTEID "https://MYDOMAIN/owncloud/remote.php/carddav/addressbooks/josh/contacts/" REMOTEREVISION "" RESOURCE "akonadi_davgroupware_resource_9" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((103 "akonadi_davgroupware_resource_9") (0 "")) AccessRights "a" davprotocol "1") 
akonadi_davgroupware_resource_9 (0x1f5e650) * 103 0 (NAME "akonadi_davgroupware_resource_9" MIMETYPE (inode/directory) REMOTEID "akonadi_davgroupware_resource_9" REMOTEREVISION "" RESOURCE "akonadi_davgroupware_resource_9" VIRTUAL 0 CACHEPOLICY (INHERIT false INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((0 "")) ENTITYDISPLAY "(\"ownCloud Contacts\" \"folder-remote\" \"\" ())" AccessRights "WCD") 
akonadi_davgroupware_resource_9 (0x1f5e650) 68 OK List completed 
akonadi_davgroupware_resource_9 (0x1f5e650) 69 SELECT SILENT 104 
akonadi_davgroupware_resource_9 (0x1f5e650) 69 OK Completed 
akonadi_davgroupware_resource_9 (0x1f5e650) 70 FETCH 1:* FULLPAYLOAD ALLATTR CACHEONLY EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
akonadi_davgroupware_resource_9 (0x1f5e650) 70 OK FETCH completed 

Reproducible: Always

Steps to Reproduce:
1. Add new carddav account (either choose "ownCloud" in groupdav wizard, or configure manually, happens in both cases)
2. Use KDE for a day or so.
3. Open KAddressbook
Actual Results:  
You won't see any contacts, even though the addressbook is checked and "Ready".

Expected Results:  
See contacts from Groupdav resource.

KDE 4.10.3
Comment 1 Grégory Oestreicher 2013-05-19 21:53:16 UTC
Git commit c7f5445f431c400319b40a81c1c9ed2f27458e57 by Grégory Oestreicher.
Committed on 19/05/2013 at 23:46.
Pushed by goestreicher into branch 'KDE/4.10'.

Re-enable the errorPage
Disabling it somehow prevents KIO from setting the response
code and the metadata is completely screwed.
This has the inconvenient that error messages are less descriptive
but the advantage that now events stop disappearing.
FIXED-IN: 4.10.4

M  +0    -3    resources/dav/common/davmanager.cpp

http://commits.kde.org/kdepim-runtime/c7f5445f431c400319b40a81c1c9ed2f27458e57