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]