Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem syncing with DAVdroid #24

Closed
dkm opened this issue Jun 13, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@dkm
Copy link

commented Jun 13, 2014

Auth is working fine, but sync (contact / calendar) does not work.

Also opened an issue in DAVdroid :
https://github.com/rfc2822/davdroid/issues/260#issuecomment-45704094

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 bWU6bDFwLVFKQjNS[\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
@jsilvestre

This comment has been minimized.

Copy link

commented Oct 17, 2014

@aenario @frankrousseau any update on that issue?

@jsilvestre jsilvestre added bug troubleshooting and removed bug labels Oct 17, 2014

@jsilvestre

This comment has been minimized.

Copy link

commented Oct 20, 2014

I have pushed a fix related to this cozy/cozy-proxy#85 (see cozy/cozy-proxy#69) that might allow us to close this issue.

@frankrousseau

This comment has been minimized.

Copy link

commented Oct 23, 2014

The Davdroid maintainers said that it works fine now. I think we can close it.

@jsilvestre

This comment has been minimized.

Copy link

commented Oct 23, 2014

Feel free to reopen if something goes wrong again.

@jsilvestre jsilvestre closed this Oct 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.