Tine20 address book sync doesn't work, but calendar + notes work



  • When syncing with Tine20, calenders and tasks work fine, but addressbook sync fails.

    Address book sync works fine with the carddav sync app from Marten Gajda.

    Tine20 is easy to setup for testing. Or I can set up a test account on my server if a dev is interested.

    Currently the download link is hard to find. The current stable is here:

    http://packages.tine20.org/source/2015.07.7/tine20-allinone_2015.07.7.zip

    Log output:

    SYNCHRONIZATION INFO
    Synchronization phase: 0
    Account name: malte
    Authority: com.android.contacts
    
    STACK TRACE:
    at.bitfire.vcard4android.ContactsStorageException: Couldn't get address book URL
    at.bitfire.vcard4android.ContactsStorageException: Couldn't get address book URL
    	at at.bitfire.davdroid.syncadapter.ContactsSyncManager.prepare(ContactsSyncManager.java:84)
    	at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:139)
    	at at.bitfire.davdroid.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.onPerformSync(ContactsSyncAdapterService.java:52)
    	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:257)
    
    SOFTWARE INFORMATION
    DAVdroid version: 0.9.1.3 (87) Sun Jan 03 08:04:57 MEZ 2016
    Installed from: APK (directly)
    JB Workaround installed: no
    
    CONFIGURATION
    System-wide synchronization: automatically
    Account: malte
      Address book sync. interval: manually
      Calendar     sync. interval: 1440 min
      OpenTasks    sync. interval: 1440 min
    
    SYSTEM INFORMATION
    Android version: 4.3.1 (cm_p930-userdebug 4.3.1 JLS36I ff5c5d2fcc test-keys)
    Device: LGE LG-P930 (p930)
    

    I set up the redirects in the apache config file as follows:

    RewriteEngine on
        RewriteBase /
    # ActiveSync
    RewriteRule ^Microsoft-Server-ActiveSync index.php?frontend=activesync         [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    
    # OpenID
    #RewriteRule ^users/(.*)                  index.php?frontend=openid&username=$1 [L,QSA]
    
    # WebDAV / CalDAV / CardDAV
    RewriteCond %{REQUEST_METHOD} !^(GET|POST)$
    RewriteRule ^$                           index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    
    RewriteRule ^addressbooks                index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    RewriteRule ^calendars                   index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    RewriteRule ^webdav                      index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    RewriteRule ^principals                  index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    RewriteRule ^remote.php                  index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    
    # Anonymous downloads
    RewriteRule ^download/get/(.*)           index.php?method=Download.downloadNode&path=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
    RewriteRule ^download/show/(.*)          index.php?method=Download.displayNode&path=$1  [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]

  • developer

    at.bitfire.vcard4android.ContactsStorageException: Couldn't get address book URL

    Your problems are not related to client/server communication, but it's a client problem only. DAVdroid is not allowed or not able to read the address book URL from the address book sync state.

    Was there an Android update recently? Is DAVdroid blocked by privacy apps?



  • That was a simple user error. I had indeed forgot that privacy settings were on by default. This is a bit embarrassing.


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.