Address books duplicated by -system- group


  • developer

    @Natanji Is is possible that the duplicate entries come from shared address books? I can’t reproduce that behaviour with our Horde test installation.



  • @Natanji I think we figured out what caused the problem. Can you

    1. delete the account again,
    2. reboot your device,
    3. add it again? Then it should work.

    Thanks!



  • @devvv4ever I tried your suggestion of removing+rebooting+readding, but that didn’t fix it. It’s not my own server so providing a test account is not possible for me (I could only give you the contact info of the server admin, if all other debug info doesn’t help - I’m pretty sure he uses DAVdroid and likes it ^^). It’s Horde version 5.2.10.

    @rfc2822 No, it’s definitely my own address books. If I rename my “Adressbuch” to something else and refresh the list, it will appear double with the new name.

    Log file of address book refresh:

    2016-03-26 09:31:21 4 [AccountSettings] Account myusername@mydomain.com has version 3, current version: 3
    2016-03-26 09:31:24 5 [AccountSettings] Account myusername@mydomain.com has version 3, current version: 3
    2016-03-26 09:31:24 11 [DavService$RefreshCollections] Refreshing carddav collections of service #5
    2016-03-26 09:31:24 11 [AccountSettings] Account myusername@mydomain.com has version 3, current version: 3
    2016-03-26 09:31:24 11 [DavService$RefreshCollections] Querying principal for home sets
    2016-03-26 09:31:24 11 [HttpClient$1] --> PROPFIND https://org.myserver.de/rpc.php/principals/myusername@mydomain.com/ http/1.1
    2016-03-26 09:31:24 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:24 11 [HttpClient$1] Content-Length: 221
    2016-03-26 09:31:24 11 [HttpClient$1] Depth: 0
    2016-03-26 09:31:24 11 [HttpClient$1] 
    2016-03-26 09:31:24 11 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><CARD:addressbook-home-set /><group-membership /></prop></propfind>
    2016-03-26 09:31:24 11 [HttpClient$1] --> END PROPFIND (221-byte body)
    2016-03-26 09:31:24 11 [HttpClient$PreemptiveAuthenticationInterceptor] Adding basic authorization header for user myusername@mydomain.com
    2016-03-26 09:31:27 11 [HttpClient$1] <-- 207 Multi-Status https://org.myserver.de/rpc.php/principals/myusername@mydomain.com/ (2838ms)
    2016-03-26 09:31:27 11 [HttpClient$1] Date: Sat, 26 Mar 2016 08:31:24 GMT
    2016-03-26 09:31:27 11 [HttpClient$1] Server: Apache/2.2.22 (Debian)
    2016-03-26 09:31:27 11 [HttpClient$1] X-Powered-By: PHP/5.4.4-14+deb7u8
    2016-03-26 09:31:27 11 [HttpClient$1] Expires: Thu, 19 Nov 1981 08:52:00 GMT
    2016-03-26 09:31:27 11 [HttpClient$1] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    2016-03-26 09:31:27 11 [HttpClient$1] Pragma: no-cache
    2016-03-26 09:31:27 11 [HttpClient$1] Set-Cookie: default_horde_view=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=org.myserver.de
    2016-03-26 09:31:27 11 [HttpClient$1] Vary: Accept-Encoding
    2016-03-26 09:31:27 11 [HttpClient$1] DAV: 1, 3, extended-mkcol, calendar-access, calendar-proxy, addressbook, 2, access-control, calendarserver-principal-property-search
    2016-03-26 09:31:27 11 [HttpClient$1] Keep-Alive: timeout=5, max=100
    2016-03-26 09:31:27 11 [HttpClient$1] Connection: Keep-Alive
    2016-03-26 09:31:27 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:27 11 [HttpClient$1] OkHttp-Sent-Millis: 1458981084981
    2016-03-26 09:31:27 11 [HttpClient$1] OkHttp-Received-Millis: 1458981087510
    2016-03-26 09:31:27 11 [HttpClient$1] 
    2016-03-26 09:31:27 11 [HttpClient$1] <?xml version="1.0" encoding="utf-8"?>
    <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/rpc.php/principals/myusername@mydomain.com/</d:href><d:propstat><d:prop><card:addressbook-home-set><d:href>/rpc.php/addressbooks/myusername@mydomain.com/</d:href></card:addressbook-home-set><d:group-membership><d:href>/rpc.php/principals/-system-</d:href></d:group-membership></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>
    
    2016-03-26 09:31:27 11 [HttpClient$1] <-- END HTTP (600-byte body)
    2016-03-26 09:31:27 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/principals/myusername@mydomain.com/
    	PARAMETER #1 = [group-membership(DAV:): hrefs=[/rpc.php/principals/-system-], addressbook-home-set(urn:ietf:params:xml:ns:carddav): hrefs=[/rpc.php/addressbooks/myusername@mydomain.com/]]
    2016-03-26 09:31:27 11 [DavService$RefreshCollections] Principal is member of group /rpc.php/principals/-system-, checking for home sets
    2016-03-26 09:31:27 11 [HttpClient$1] --> PROPFIND https://org.myserver.de/rpc.php/principals/-system- http/1.1
    2016-03-26 09:31:27 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:27 11 [HttpClient$1] Content-Length: 221
    2016-03-26 09:31:27 11 [HttpClient$1] Depth: 0
    2016-03-26 09:31:27 11 [HttpClient$1] 
    2016-03-26 09:31:27 11 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><CARD:addressbook-home-set /><group-membership /></prop></propfind>
    2016-03-26 09:31:27 11 [HttpClient$1] --> END PROPFIND (221-byte body)
    2016-03-26 09:31:27 11 [HttpClient$PreemptiveAuthenticationInterceptor] Adding basic authorization header for user myusername@mydomain.com
    2016-03-26 09:31:27 11 [HttpClient$1] <-- 207 Multi-Status https://org.myserver.de/rpc.php/principals/-system- (220ms)
    2016-03-26 09:31:27 11 [HttpClient$1] Date: Sat, 26 Mar 2016 08:31:27 GMT
    2016-03-26 09:31:27 11 [HttpClient$1] Server: Apache/2.2.22 (Debian)
    2016-03-26 09:31:27 11 [HttpClient$1] X-Powered-By: PHP/5.4.4-14+deb7u8
    2016-03-26 09:31:27 11 [HttpClient$1] Expires: Thu, 19 Nov 1981 08:52:00 GMT
    2016-03-26 09:31:27 11 [HttpClient$1] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    2016-03-26 09:31:27 11 [HttpClient$1] Pragma: no-cache
    2016-03-26 09:31:27 11 [HttpClient$1] Set-Cookie: default_horde_view=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=org.myserver.de
    2016-03-26 09:31:27 11 [HttpClient$1] Vary: Accept-Encoding
    2016-03-26 09:31:27 11 [HttpClient$1] DAV: 1, 3, extended-mkcol, calendar-access, calendar-proxy, addressbook, 2, access-control, calendarserver-principal-property-search
    2016-03-26 09:31:27 11 [HttpClient$1] Keep-Alive: timeout=5, max=99
    2016-03-26 09:31:27 11 [HttpClient$1] Connection: Keep-Alive
    2016-03-26 09:31:27 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:27 11 [HttpClient$1] OkHttp-Sent-Millis: 1458981087567
    2016-03-26 09:31:27 11 [HttpClient$1] OkHttp-Received-Millis: 1458981087775
    2016-03-26 09:31:27 11 [HttpClient$1] 
    2016-03-26 09:31:27 11 [HttpClient$1] <?xml version="1.0" encoding="utf-8"?>
    <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/rpc.php/principals/-system-/</d:href><d:propstat><d:prop><card:addressbook-home-set><d:href>/rpc.php/addressbooks/-system-/</d:href></card:addressbook-home-set><d:group-membership><d:href>/rpc.php/principals/-system-</d:href></d:group-membership></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>
    
    2016-03-26 09:31:27 11 [HttpClient$1] <-- END HTTP (584-byte body)
    2016-03-26 09:31:27 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/principals/-system-/
    	PARAMETER #1 = [group-membership(DAV:): hrefs=[/rpc.php/principals/-system-], addressbook-home-set(urn:ietf:params:xml:ns:carddav): hrefs=[/rpc.php/addressbooks/-system-/]]
    2016-03-26 09:31:27 11 [DavService$RefreshCollections] Listing home set https://org.myserver.de/rpc.php/addressbooks/-system-/
    2016-03-26 09:31:27 11 [HttpClient$1] --> PROPFIND https://org.myserver.de/rpc.php/addressbooks/-system-/ http/1.1
    2016-03-26 09:31:27 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:27 11 [HttpClient$1] Content-Length: 422
    2016-03-26 09:31:27 11 [HttpClient$1] Depth: 1
    2016-03-26 09:31:27 11 [HttpClient$1] 
    2016-03-26 09:31:27 11 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><resourcetype /><current-user-privilege-set /><displayname /><CARD:addressbook-description /><CARD:supported-address-data /><CAL:calendar-description /><n0:calendar-color xmlns:n0="http://apple.com/ns/ical/" /><CAL:supported-calendar-component-set /></prop></propfind>
    2016-03-26 09:31:27 11 [HttpClient$1] --> END PROPFIND (422-byte body)
    2016-03-26 09:31:27 11 [HttpClient$PreemptiveAuthenticationInterceptor] Adding basic authorization header for user myusername@mydomain.com
    2016-03-26 09:31:28 11 [HttpClient$1] <-- 207 Multi-Status https://org.myserver.de/rpc.php/addressbooks/-system-/ (232ms)
    2016-03-26 09:31:28 11 [HttpClient$1] Date: Sat, 26 Mar 2016 08:31:27 GMT
    2016-03-26 09:31:28 11 [HttpClient$1] Server: Apache/2.2.22 (Debian)
    2016-03-26 09:31:28 11 [HttpClient$1] X-Powered-By: PHP/5.4.4-14+deb7u8
    2016-03-26 09:31:28 11 [HttpClient$1] Expires: Thu, 19 Nov 1981 08:52:00 GMT
    2016-03-26 09:31:28 11 [HttpClient$1] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    2016-03-26 09:31:28 11 [HttpClient$1] Pragma: no-cache
    2016-03-26 09:31:28 11 [HttpClient$1] Set-Cookie: default_horde_view=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=org.myserver.de
    2016-03-26 09:31:28 11 [HttpClient$1] Vary: Accept-Encoding
    2016-03-26 09:31:28 11 [HttpClient$1] DAV: 1, 3, extended-mkcol, calendar-access, calendar-proxy, addressbook, 2, access-control, calendarserver-principal-property-search
    2016-03-26 09:31:28 11 [HttpClient$1] Keep-Alive: timeout=5, max=98
    2016-03-26 09:31:28 11 [HttpClient$1] Connection: Keep-Alive
    2016-03-26 09:31:28 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:28 11 [HttpClient$1] OkHttp-Sent-Millis: 1458981087863
    2016-03-26 09:31:28 11 [HttpClient$1] OkHttp-Received-Millis: 1458981088074
    2016-03-26 09:31:28 11 [HttpClient$1] 
    2016-03-26 09:31:28 11 [HttpClient$1] <?xml version="1.0" encoding="utf-8"?>
    <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/rpc.php/addressbooks/-system-/</d:href><d:propstat><d:prop><d:current-user-privilege-set><d:privilege xmlns:d="DAV:"><d:write/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-properties/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-content/></d:privilege><d:privilege xmlns:d="DAV:"><d:bind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unbind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unlock/></d:privilege><d:privilege xmlns:d="DAV:"><d:read/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-current-user-privilege-set/></d:privilege></d:current-user-privilege-set><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:displayname/><card:addressbook-description/><card:supported-address-data/><cal:calendar-description/><x5:calendar-color xmlns:x5="http://apple.com/ns/ical/"/><cal:supported-calendar-component-set/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/rpc.php/addressbooks/-system-/contacts:b33WgPk9O170axWg3JHZbQ3/</d:href><d:propstat><d:prop><d:current-user-privilege-set><d:privilege xmlns:d="DAV:"><d:write/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-properties/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-content/></d:privilege><d:privilege xmlns:d="DAV:"><d:bind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unbind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unlock/></d:privilege><d:privilege xmlns:d="DAV:"><d:read/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-current-user-privilege-set/></d:privilege></d:current-user-privilege-set><d:displayname>myusername</d:displayname><card:supported-address-data><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/directory" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/vcard" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/x-vcard" version="2.1"/></card:supported-address-data><d:resourcetype><d:collection/><card:addressbook/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><card:addressbook-description/><cal:calendar-description/><x5:calendar-color xmlns:x5="http://apple.com/ns/ical/"/><cal:supported-calendar-component-set/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/rpc.php/addressbooks/-system-/contacts:favourites/</d:href><d:propstat><d:prop><d:current-user-privilege-set><d:privilege xmlns:d="DAV:"><d:write/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-properties/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-content/></d:privilege><d:privilege xmlns:d="DAV:"><d:bind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unbind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unlock/></d:privilege><d:privilege xmlns:d="DAV:"><d:read/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-current-user-privilege-set/></d:privilege></d:current-user-privilege-set><d:displayname>Favourite Recipients</d:displayname><card:supported-address-data><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/directory" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/vcard" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/x-vcard" version="2.1"/></card:supported-address-data><d:resourcetype><d:collection/><card:addressbook/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><card:addressbook-description/><cal:calendar-description/><x5:calendar-color xmlns:x5="http://apple.com/ns/ical/"/><cal:supported-calendar-component-set/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>
    
    2016-03-26 09:31:28 11 [HttpClient$1] <-- END HTTP (4468-byte body)
    2016-03-26 09:31:28 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/addressbooks/-system-/
    	PARAMETER #1 = [resourcetype(DAV:): ResourceType(types=[collection(DAV:)]), supported-calendar-component-set(urn:ietf:params:xml:ns:caldav): null, current-user-privilege-set(DAV:): [read/write], displayname(DAV:): null, calendar-description(urn:ietf:params:xml:ns:caldav): null, calendar-color(http://apple.com/ns/ical/): null, addressbook-description(urn:ietf:params:xml:ns:carddav): null, supported-address-data(urn:ietf:params:xml:ns:carddav): null]
    2016-03-26 09:31:28 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:b33WgPk9O170axWg3JHZbQ3/
    	PARAMETER #1 = [supported-calendar-component-set(urn:ietf:params:xml:ns:caldav): null, calendar-description(urn:ietf:params:xml:ns:caldav): null, current-user-privilege-set(DAV:): [read/write], displayname(DAV:): DisplayName(displayName=myusername), addressbook-description(urn:ietf:params:xml:ns:carddav): null, calendar-color(http://apple.com/ns/ical/): null, resourcetype(DAV:): ResourceType(types=[addressbook(urn:ietf:params:xml:ns:carddav), collection(DAV:)]), supported-address-data(urn:ietf:params:xml:ns:carddav): at.bitfire.dav4android.property.SupportedAddressData@3b6ff3b0]
    2016-03-26 09:31:28 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:favourites/
    	PARAMETER #1 = [displayname(DAV:): DisplayName(displayName=Favourite Recipients), resourcetype(DAV:): ResourceType(types=[addressbook(urn:ietf:params:xml:ns:carddav), collection(DAV:)]), calendar-description(urn:ietf:params:xml:ns:caldav): null, current-user-privilege-set(DAV:): [read/write], supported-calendar-component-set(urn:ietf:params:xml:ns:caldav): null, calendar-color(http://apple.com/ns/ical/): null, supported-address-data(urn:ietf:params:xml:ns:carddav): at.bitfire.dav4android.property.SupportedAddressData@7e4d70e, addressbook-description(urn:ietf:params:xml:ns:carddav): null]
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Found collection
    	PARAMETER #1 = CollectionInfo(id=0, serviceID=null, type=ADDRESS_BOOK, url=https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:favourites/, readOnly=false, displayName=Favourite Recipients, description=null, color=null, timeZone=null, supportsVEVENT=null, supportsVTODO=null, selected=false, confirmed=true)
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Found collection
    	PARAMETER #1 = CollectionInfo(id=0, serviceID=null, type=ADDRESS_BOOK, url=https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:b33WgPk9O170axWg3JHZbQ3/, readOnly=false, displayName=myusername, description=null, color=null, timeZone=null, supportsVEVENT=null, supportsVTODO=null, selected=false, confirmed=true)
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Listing home set https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/
    2016-03-26 09:31:28 11 [HttpClient$1] --> PROPFIND https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/ http/1.1
    2016-03-26 09:31:28 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:28 11 [HttpClient$1] Content-Length: 422
    2016-03-26 09:31:28 11 [HttpClient$1] Depth: 1
    2016-03-26 09:31:28 11 [HttpClient$1] 
    2016-03-26 09:31:28 11 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><resourcetype /><current-user-privilege-set /><displayname /><CARD:addressbook-description /><CARD:supported-address-data /><CAL:calendar-description /><n0:calendar-color xmlns:n0="http://apple.com/ns/ical/" /><CAL:supported-calendar-component-set /></prop></propfind>
    2016-03-26 09:31:28 11 [HttpClient$1] --> END PROPFIND (422-byte body)
    2016-03-26 09:31:28 11 [HttpClient$PreemptiveAuthenticationInterceptor] Adding basic authorization header for user myusername@mydomain.com
    2016-03-26 09:31:28 11 [HttpClient$1] <-- 207 Multi-Status https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/ (227ms)
    2016-03-26 09:31:28 11 [HttpClient$1] Date: Sat, 26 Mar 2016 08:31:28 GMT
    2016-03-26 09:31:28 11 [HttpClient$1] Server: Apache/2.2.22 (Debian)
    2016-03-26 09:31:28 11 [HttpClient$1] X-Powered-By: PHP/5.4.4-14+deb7u8
    2016-03-26 09:31:28 11 [HttpClient$1] Expires: Thu, 19 Nov 1981 08:52:00 GMT
    2016-03-26 09:31:28 11 [HttpClient$1] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    2016-03-26 09:31:28 11 [HttpClient$1] Pragma: no-cache
    2016-03-26 09:31:28 11 [HttpClient$1] Set-Cookie: default_horde_view=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=org.myserver.de
    2016-03-26 09:31:28 11 [HttpClient$1] Vary: Accept-Encoding
    2016-03-26 09:31:28 11 [HttpClient$1] DAV: 1, 3, extended-mkcol, calendar-access, calendar-proxy, addressbook, 2, access-control, calendarserver-principal-property-search
    2016-03-26 09:31:28 11 [HttpClient$1] Keep-Alive: timeout=5, max=97
    2016-03-26 09:31:28 11 [HttpClient$1] Connection: Keep-Alive
    2016-03-26 09:31:28 11 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-03-26 09:31:28 11 [HttpClient$1] OkHttp-Sent-Millis: 1458981088173
    2016-03-26 09:31:28 11 [HttpClient$1] OkHttp-Received-Millis: 1458981088382
    2016-03-26 09:31:28 11 [HttpClient$1] 
    2016-03-26 09:31:28 11 [HttpClient$1] <?xml version="1.0" encoding="utf-8"?>
    <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/rpc.php/addressbooks/myusername@mydomain.com/</d:href><d:propstat><d:prop><d:current-user-privilege-set><d:privilege xmlns:d="DAV:"><d:write/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-properties/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-content/></d:privilege><d:privilege xmlns:d="DAV:"><d:bind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unbind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unlock/></d:privilege><d:privilege xmlns:d="DAV:"><d:read/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-current-user-privilege-set/></d:privilege></d:current-user-privilege-set><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:displayname/><card:addressbook-description/><card:supported-address-data/><cal:calendar-description/><x5:calendar-color xmlns:x5="http://apple.com/ns/ical/"/><cal:supported-calendar-component-set/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/rpc.php/addressbooks/myusername@mydomain.com/contacts:b33WgPk9O170axWg3JHZbQ3/</d:href><d:propstat><d:prop><d:current-user-privilege-set><d:privilege xmlns:d="DAV:"><d:write/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-properties/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-content/></d:privilege><d:privilege xmlns:d="DAV:"><d:bind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unbind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unlock/></d:privilege><d:privilege xmlns:d="DAV:"><d:read/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-current-user-privilege-set/></d:privilege></d:current-user-privilege-set><d:displayname>myusername</d:displayname><card:supported-address-data><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/directory" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/vcard" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/x-vcard" version="2.1"/></card:supported-address-data><d:resourcetype><d:collection/><card:addressbook/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><card:addressbook-description/><cal:calendar-description/><x5:calendar-color xmlns:x5="http://apple.com/ns/ical/"/><cal:supported-calendar-component-set/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/rpc.php/addressbooks/myusername@mydomain.com/contacts:favourites/</d:href><d:propstat><d:prop><d:current-user-privilege-set><d:privilege xmlns:d="DAV:"><d:write/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-properties/></d:privilege><d:privilege xmlns:d="DAV:"><d:write-content/></d:privilege><d:privilege xmlns:d="DAV:"><d:bind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unbind/></d:privilege><d:privilege xmlns:d="DAV:"><d:unlock/></d:privilege><d:privilege xmlns:d="DAV:"><d:read/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-acl/></d:privilege><d:privilege xmlns:d="DAV:"><d:read-current-user-privilege-set/></d:privilege></d:current-user-privilege-set><d:displayname>Favourite Recipients</d:displayname><card:supported-address-data><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/directory" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/vcard" version="3.0"/><card:address-data-type xmlns:card="urn:ietf:params:xml:ns:carddav" content-type="text/x-vcard" version="2.1"/></card:supported-address-data><d:resourcetype><d:collection/><card:addressbook/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><card:addressbook-description/><cal:calendar-description/><x5:calendar-color xmlns:x5="http://apple.com/ns/ical/"/><cal:supported-calendar-component-set/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>
    
    2016-03-26 09:31:28 11 [HttpClient$1] <-- END HTTP (4492-byte body)
    2016-03-26 09:31:28 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/
    	PARAMETER #1 = [calendar-color(http://apple.com/ns/ical/): null, addressbook-description(urn:ietf:params:xml:ns:carddav): null, current-user-privilege-set(DAV:): [read/write], calendar-description(urn:ietf:params:xml:ns:caldav): null, displayname(DAV:): null, supported-address-data(urn:ietf:params:xml:ns:carddav): null, supported-calendar-component-set(urn:ietf:params:xml:ns:caldav): null, resourcetype(DAV:): ResourceType(types=[collection(DAV:)])]
    2016-03-26 09:31:28 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:b33WgPk9O170axWg3JHZbQ3/
    	PARAMETER #1 = [current-user-privilege-set(DAV:): [read/write], resourcetype(DAV:): ResourceType(types=[addressbook(urn:ietf:params:xml:ns:carddav), collection(DAV:)]), displayname(DAV:): DisplayName(displayName=myusername), addressbook-description(urn:ietf:params:xml:ns:carddav): null, supported-calendar-component-set(urn:ietf:params:xml:ns:caldav): null, supported-address-data(urn:ietf:params:xml:ns:carddav): at.bitfire.dav4android.property.SupportedAddressData@3b4ffffc, calendar-color(http://apple.com/ns/ical/): null, calendar-description(urn:ietf:params:xml:ns:caldav): null]
    2016-03-26 09:31:28 11 [dav4android.DavResource] Received <response> for https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:favourites/
    	PARAMETER #1 = [supported-calendar-component-set(urn:ietf:params:xml:ns:caldav): null, calendar-description(urn:ietf:params:xml:ns:caldav): null, addressbook-description(urn:ietf:params:xml:ns:carddav): null, calendar-color(http://apple.com/ns/ical/): null, current-user-privilege-set(DAV:): [read/write], supported-address-data(urn:ietf:params:xml:ns:carddav): at.bitfire.dav4android.property.SupportedAddressData@d0a03a, resourcetype(DAV:): ResourceType(types=[addressbook(urn:ietf:params:xml:ns:carddav), collection(DAV:)]), displayname(DAV:): DisplayName(displayName=Favourite Recipients)]
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Found collection
    	PARAMETER #1 = CollectionInfo(id=0, serviceID=null, type=ADDRESS_BOOK, url=https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:favourites/, readOnly=false, displayName=Favourite Recipients, description=null, color=null, timeZone=null, supportsVEVENT=null, supportsVTODO=null, selected=false, confirmed=true)
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Found collection
    	PARAMETER #1 = CollectionInfo(id=0, serviceID=null, type=ADDRESS_BOOK, url=https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:b33WgPk9O170axWg3JHZbQ3/, readOnly=false, displayName=myusername, description=null, color=null, timeZone=null, supportsVEVENT=null, supportsVTODO=null, selected=false, confirmed=true)
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Saving collection
    	PARAMETER #1 = description=null displayName=myusername sync=1 timezone=null color=null readOnly=0 url=https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:b33WgPk9O170axWg3JHZbQ3/
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Saving collection
    	PARAMETER #1 = description=null displayName=Favourite Recipients sync=0 timezone=null color=null readOnly=0 url=https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:favourites/
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Saving collection
    	PARAMETER #1 = description=null displayName=myusername sync=0 timezone=null color=null readOnly=0 url=https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:b33WgPk9O170axWg3JHZbQ3/
    2016-03-26 09:31:28 11 [DavService$RefreshCollections] Saving collection
    	PARAMETER #1 = description=null displayName=Favourite Recipients sync=0 timezone=null color=null readOnly=0 url=https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:favourites/
    2016-03-26 09:31:28 6 [AccountSettings] Account myusername@mydomain.com has version 3, current version: 3
    

    Debug info:

    SOFTWARE INFORMATION
    DAVdroid version: 1.0-rc1 (89) Thu Mar 24 20:54:24 MEZ 2016
    Installed from: APK (directly)
    JB Workaround installed: no
    
    CONFIGURATION
    System-wide synchronization: automatically
    Account: myusername@mydomain.com
      Address book sync. interval: 1440 min
      Calendar     sync. interval: 1440 min
      OpenTasks    sync. interval: 1440 min
    
    SQLITE DUMP
    android_metadata
    |  locale |
    |  de_DE |
    ----------
    settings
    |  setting | value |
    |  hint_OpenTasksNotInstalled | 0 |
    |  logToExternalStorage | 0 |
    ----------
    services
    |  _id | accountName | service | principal |
    |  5 | myusername@mydomain.com | carddav | https://org.myserver.de/rpc.php/principals/myusername@mydomain.com/ |
    |  6 | myusername@mydomain.com | caldav | https://org.myserver.de/rpc.php/principals/myusername@mydomain.com/ |
    ----------
    sqlite_sequence
    |  name | seq |
    |  services | 6 |
    |  homesets | 22 |
    |  collections | 44 |
    ----------
    homesets
    |  _id | serviceID | url |
    |  17 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/ |
    |  18 | 6 | https://org.myserver.de/rpc.php/calendars/-system-/ |
    |  21 | 5 | https://org.myserver.de/rpc.php/addressbooks/-system-/ |
    |  22 | 5 | https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/ |
    ----------
    collections
    |  _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
    |  29 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/calendar~FQYBtk8hAMg-w8q4gPcZqg1/ | 0 | Calendar of otheruser1@mydomain.com [otheruser1@mydomain.com] | <null> | -12515076 | <null> | 1 | 0 | 0 |
    |  30 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/calendar~jZBOe0ToeUhHTJDGd4KhFQ4/ | 0 | Lehrstuhl | <null> | -13554034 | <null> | 1 | 0 | 1 |
    |  31 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/calendar~aH7I-9j6TwEPu3j5XOTD9xx/ | 0 | otheruser2 neu [otheruser2@myserver.de] | Neuer Kalender von otheruser2 | -12861184 | <null> | 1 | 0 | 1 |
    |  32 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/calendar:knT1fW4vA3amrxUf5R3yjg2/ | 0 | myusername | <null> | -16728585 | <null> | 1 | 0 | 1 |
    |  33 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/tasks:ZfIjYSFw7Ab_AapP09uzkQ1/ | 0 | Task list of myusername@mydomain.com | <null> | -13571983 | <null> | 0 | 1 | 0 |
    |  34 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/calendar:20NMEuSMkLWUwn4Zw0F60Q1/ | 0 | otheruser2 [otheruser2@myserver.de] | otheruser2s Kalender | -4474360 | <null> | 1 | 0 | 0 |
    |  35 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/calendar~ntv9eWsY_wYkpbDfR9iSrom/ | 0 | myusername vielleicht | <null> | -7725693 | <null> | 1 | 0 | 0 |
    |  36 | 6 | https://org.myserver.de/rpc.php/calendars/myusername@mydomain.com/calendar~9xPuBlKCxmQ_xjdDFvABXQ1/ | 0 | otheruser3 [otheruser3@myserver.de] | <null> | -5242844 | <null> | 1 | 0 | 0 |
    |  41 | 5 | https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:b33WgPk9O170axWg3JHZbQ3/ | 0 | Adressbuch | <null> | <null> | <null> | <null> | <null> | 1 |
    |  42 | 5 | https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:favourites/ | 0 | Favourite Recipients | <null> | <null> | <null> | <null> | <null> | 0 |
    |  43 | 5 | https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:b33WgPk9O170axWg3JHZbQ3/ | 0 | Adressbuch | <null> | <null> | <null> | <null> | <null> | 0 |
    |  44 | 5 | https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:favourites/ | 0 | Favourite Recipients | <null> | <null> | <null> | <null> | <null> | 0 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 5.1.1 (LMY48Y)
    Device: OnePlus A0001 (A0001)
    

  • developer

    As to see from the logs, Horde says that you are a member in the group https://org.myserver.de/rpc.php/principals/-system-.

    DAVdroid checks group principals for address books too (for instance, you might be member of your team’s group, which owns a shared address book for the whole team). According to Horde, this -system- group has an address book home-set (= owns address books) at https://org.myserver.de/rpc.php/addressbooks/-system-/.

    So, DAVdroid queries this folder and Horde returns those address books:

    • https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:favourites/
    • https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:b33WgPk9O170axWg3JHZbQ3/

    Together with your own address books, these are 4 address books. You can see them in the debug info in the collections table:

    |  41 | 5 | https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:b33WgPk9O170axWg3JHZbQ3/ | 0 | Adressbuch | <null> | <null> | <null> | <null> | <null> | 1 |
    |  42 | 5 | https://org.myserver.de/rpc.php/addressbooks/-system-/contacts:favourites/ | 0 | Favourite Recipients | <null> | <null> | <null> | <null> | <null> | 0 |
    |  43 | 5 | https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:b33WgPk9O170axWg3JHZbQ3/ | 0 | Adressbuch | <null> | <null> | <null> | <null> | <null> | 0 |
    |  44 | 5 | https://org.myserver.de/rpc.php/addressbooks/myusername@mydomain.com/contacts:favourites/ | 0 | Favourite Recipients | <null> | <null> | <null> | <null> | <null> | 0 |
    

    (Look at the URLs)

    So, if this is not intended behavior (I guess it’s not), then it’s a Horde bug, because the -system- group shouldn’t mirror your personal address books with other URLs.

    The strange thing is that this doesn’t happen with our testing Horde …



  • This is indeed strange. Especially because with beta1 I didn’t have this problem - the address books only appeared once. I’m really not sure what is causing this behaviour. It’s not like it’s a big deal either, just cosmetically… unsound.


  • developer

    @Natanji said:

    This is indeed strange. Especially because with beta1 I didn’t have this problem - the address books only appeared once.

    Beta1 didn’t query member groups (correctly).

    I’m really not sure what is causing this behaviour. It’s not like it’s a big deal either, just cosmetically… unsound.

    For further discussion, I’d move to the Horde community, as this is a Horde problem (in case it’s not a feature).



  • Hi,

    just 2 questions to that:
    *did someone write a bug report to the Horde framework?
    *does this cause any problem? If I understand correctly it does not matter which address book I choose everything gets synced correctly

    regards


  • developer

    @daniu said:

    *did someone write a bug report to the Horde framework?

    As far as I know: no. Would be cool if you’d do that (and provide this thread for reference).

    *does this cause any problem? If I understand correctly it does not matter which address book I choose everything gets synced correctly

    Synchronizing the wrong address book (the one that belongs to -system-) might not work. When synchronizing the correct address book, there should be no problems.





  • As mentioned herehttps://forums.bitfire.at/topic/1055/address-books-are-displayed-twice and also at the horde bugtracker the problem was solved - for me I realized as I got an error message because I synced an address book before that does not exist any more. …


Log in to reply