Hello,
Please follow up at https://forums.bitfire.at/post/6487
Hi,
I’m having troubling syncing my phone (android 4.4 AOSP based) with a webdav server. Auth if fine, but syncing is always failing. Not sure exactly which side is the fault here, I’ve no knowledge DAV…
I/davdroid.SNISocketFactory(17538): Established TLSv1 connection with dkm.cozycloud.cc using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "PROPFIND /public/webdav/calendars/me/my-calendar/ HTTP/1.1[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "Depth: 1[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "Content-Length: 134[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "Host: dkm.cozycloud.cc[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "User-Agent: DAVdroid/0.5.14-alpha[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "Authorization: Basic xxxxxxxx[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "<propfind xmlns="DAV:">[\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> " <prop>[\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> " <CS:getctag xmlns:CS="http://calendarserver.org/ns/"/>[\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> " <getetag/>[\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> " </prop>[\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 >> "</propfind>"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "HTTP/1.1 207 Multi-Status[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "Server: nginx[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "Date: Tue, 27 May 2014 16:16:19 GMT[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "Content-Type: application/xml; charset=utf-8[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "Transfer-Encoding: chunked[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "Connection: keep-alive[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "Set-Cookie: connect.sid=s%3A0%2BuuNzQCemGon1rR9cU3YLBQ.vQbqJceV3hnyEgf%2FbQ20vuElp8e19TjZ39Xn%2BrMqj9c; Path=/; Expires=Thu, 26 Jun 2014 16:16:19 GMT; HttpOnly[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "vary: Brief,Prefer[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "dav: 1,3,extended-mkcol,addressbook,calendar-access,access-control,calendarserver-principal-property-search[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "10a[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "<?xml version="1.0" encoding="utf-8"?><d:multistatus xmlns:d="DAV:" xmlns:a="http://ajax.org/2005/aml" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:dav="urn:DAV" xmlns:card="urn:ietf:params:xml:ns:carddav"></d:multistatus>[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "0[\r][\n]"
D/ch.boye.httpclientandroidlib.wire(17538): http-outgoing-0 << "[\r][\n]"
E/davdroid.DavSyncAdapter(17538): Invalid DAV response
E/davdroid.DavSyncAdapter(17538): at.bitfire.davdroid.webdav.DavNoContentException: Invalid DAV response: HTTP response entity (content) expected but not received
E/davdroid.DavSyncAdapter(17538): at at.bitfire.davdroid.webdav.WebDavResource.processMultiStatus(WebDavResource.java:409)
E/davdroid.DavSyncAdapter(17538): at at.bitfire.davdroid.webdav.WebDavResource.propfind(WebDavResource.java:273)
E/davdroid.DavSyncAdapter(17538): at at.bitfire.davdroid.resource.RemoteCollection.getMemberETags(RemoteCollection.java:68)
E/davdroid.DavSyncAdapter(17538): at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:75)
E/davdroid.DavSyncAdapter(17538): at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:129)
E/davdroid.DavSyncAdapter(17538): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
I/davdroid.DavSyncAdapter(17538): Sync complete for com.android.calendar
D/davdroid.DavSyncAdapter(17538): Closing httpClient
Thanks for your report. Please tell us
Server software is Cozy cloud (latest github code https://github.com/mycozycloud/cozy-webdav ).
Problem has also been linked to this:
https://github.com/mikedeboer/jsDAV/pull/91
I could give you some credentials to try a sync on my cloud instance, but of course won’t copy/paste them here
@dkm Please send a demo account to play@bitfire.at
sent last week, no ack received… Did you get it ?
@dkm Yes, thanks
Please follow up at issue #282.