{"action":"created","issue":{"url":"https://api.github.com/repos/bitfireAT/davdroid/issues/542","labels_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/542/comments","events_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/542/events","html_url":"https://github.com/bitfireAT/davdroid/issues/542","id":86488802,"number":542,"title":"Issues with DavDroid 0.8.0 no longer syncing with Kolab","user":{"login":"greve","id":763954,"avatar_url":"https://avatars.githubusercontent.com/u/763954?v=3","gravatar_id":"","url":"https://api.github.com/users/greve","html_url":"https://github.com/greve","followers_url":"https://api.github.com/users/greve/followers","following_url":"https://api.github.com/users/greve/following{/other_user}","gists_url":"https://api.github.com/users/greve/gists{/gist_id}","starred_url":"https://api.github.com/users/greve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greve/subscriptions","organizations_url":"https://api.github.com/users/greve/orgs","repos_url":"https://api.github.com/users/greve/repos","events_url":"https://api.github.com/users/greve/events{/privacy}","received_events_url":"https://api.github.com/users/greve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitfireAT/davdroid/labels/need%20info","name":"need info","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-09T07:27:26Z","updated_at":"2015-06-15T07:59:03Z","closed_at":null,"body":"Verified both with Kolab Now, as well as our corporate Kolab Server:\r\n\r\n![screenshot_2015-05-30-15-30-51](https://cloud.githubusercontent.com/assets/763954/8052596/2a02023a-0e89-11e5-882e-87f8fa2f7214.jpg)\r\n\r\nIssue occurs for calendars only, tasks seem to sync fine.\r\n\r\nDebug log:\r\n\r\n```\r\nI/davdroid.SyncManager( 7664): Uploading 0 modified resource(s) (if not changed)\r\nI/davdroid.SyncManager( 7664): Synchronization forced\r\nI/davdroid.SyncManager( 7664): Fetching remote resource list\r\nD/HttpClient( 7664): Re-using cached 'basic' auth scheme for https://apps.kolabnow.com:443\r\nD/HttpClient( 7664): Connection request: [route: HttpRoute[{s}->https://apps.kolabnow.com:443]][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 3]\r\nD/HttpClient( 7664): Connection leased: [id: 5][route: HttpRoute[{s}->https://apps.kolabnow.com:443]][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 3]\r\nD/HttpClient( 7664): Executing request REPORT /calendars/greve@georggreve.net/c81425b202e6-3182008d3351-2712f63c/ HTTP/1.1\r\nD/HttpClient( 7664): Target auth state: CHALLENGED\r\nD/HttpClient( 7664): Proxy auth state: UNCHALLENGED\r\nD/Wire    ( 7664): http-outgoing-5 >> \"REPORT /calendars/greve@georggreve.net/c81425b202e6-3182008d3351-2712f63c/ HTTP/1.1[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"Content-Type: text/xml; charset=UTF-8[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"Accept: text/xml[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"Depth: 1[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"Content-Length: 260[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"Host: apps.kolabnow.com[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"Connection: Keep-Alive[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"User-Agent: DAVdroid/0.8.0[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"Authorization: <stripped>\r\nD/Wire    ( 7664): http-outgoing-5 >> \"[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"<C:calendar-query xmlns:C=\"urn:ietf:params:xml:ns:caldav\" xmlns=\"DAV:\">[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"   <C:filter>[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"      <C:comp-filter name=\"VCALENDAR\">[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"         <C:comp-filter name=\"VEVENT\"/>[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"      </C:comp-filter>[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"   </C:filter>[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"   <prop>[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"      <getetag/>[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"   </prop>[\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 >> \"</C:calendar-query>\"\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/Zygote  ( 9516): MountEmulatedStorage()\r\nE/Zygote  ( 9516): v2\r\nE/SELinux ( 9516): [DEBUG] get_category: variable seinfo: release sensitivity: NULL, cateogry: NULL\r\nE/PhoneWindow(21526): Circular progress bar not located in current window decor\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/ActivityManager( 1021): checkUser: useridlist=null, currentuser=0\r\nE/Zygote  ( 9534): MountEmulatedStorage()\r\nE/Zygote  ( 9534): v2\r\nE/SELinux ( 9534): [DEBUG] get_category: variable seinfo: platform sensitivity: NULL, cateogry: NULL\r\nE/DownloadManager( 4736): SB enabled \r\nE/DownloadManager( 4736): SB enabled \r\nD/Wire    ( 7664): http-outgoing-5 << \"HTTP/1.1 404 Not Found[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 << \"Date: Fri, 29 May 2015 14:46:45 GMT[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 << \"Server: Apache[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 << \"X-Frame-Options: SAMEORIGIN[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 << \"Strict-Transport-Security: max-age=63072000; includeSubDomains[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 << \"Transfer-Encoding: chunked[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 << \"Content-Type: application/xml; charset=utf-8[\\r][\\n]\"\r\nD/Wire    ( 7664): http-outgoing-5 << \"[\\r][\\n]\"\r\nD/HttpClient( 7664): Connection can be kept alive indefinitely\r\nD/HttpClient( 7664): Authentication succeeded\r\nD/HttpClient( 7664): http-outgoing-5: Shutdown connection\r\nD/HttpClient( 7664): Connection discarded\r\nD/HttpClient( 7664): http-outgoing-5: Close connection\r\nD/HttpClient( 7664): Connection released: [id: 5][route: HttpRoute[{s}->https://apps.kolabnow.com:443]][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 3]\r\nE/davdroid.DavSyncAdapter( 7664): Hard HTTP error 404\r\nE/davdroid.DavSyncAdapter( 7664): at.bitfire.davdroid.webdav.NotFoundException: 404 Not Found\r\nE/davdroid.DavSyncAdapter( 7664): \tat at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:427)\r\nE/davdroid.DavSyncAdapter( 7664): \tat at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:405)\r\nE/davdroid.DavSyncAdapter( 7664): \tat at.bitfire.davdroid.webdav.WebDavResource.report(WebDavResource.java:343)\r\nE/davdroid.DavSyncAdapter( 7664): \tat at.bitfire.davdroid.resource.RemoteCollection.getMemberETags(RemoteCollection.java:100)\r\nE/davdroid.DavSyncAdapter( 7664): \tat at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:78)\r\nE/davdroid.DavSyncAdapter( 7664): \tat at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:146)\r\nE/davdroid.DavSyncAdapter( 7664): \tat android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)\r\nI/davdroid.DavSyncAdapter( 7664): Sync complete for com.android.calendar\r\nD/davdroid.DavSyncAdapter( 7664): Closing httpClient\r\nD/HttpClient( 7664): Connection manager is shutting down\r\nD/HttpClient( 7664): Connection manager shut down\r\n```\r\n\r\nPlease let me know how to provide more/better information."},"comment":{"url":"https://api.github.com/repos/bitfireAT/davdroid/issues/comments/111971251","html_url":"https://github.com/bitfireAT/davdroid/issues/542#issuecomment-111971251","issue_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/542","id":111971251,"user":{"login":"greve","id":763954,"avatar_url":"https://avatars.githubusercontent.com/u/763954?v=3","gravatar_id":"","url":"https://api.github.com/users/greve","html_url":"https://github.com/greve","followers_url":"https://api.github.com/users/greve/followers","following_url":"https://api.github.com/users/greve/following{/other_user}","gists_url":"https://api.github.com/users/greve/gists{/gist_id}","starred_url":"https://api.github.com/users/greve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greve/subscriptions","organizations_url":"https://api.github.com/users/greve/orgs","repos_url":"https://api.github.com/users/greve/repos","events_url":"https://api.github.com/users/greve/events{/privacy}","received_events_url":"https://api.github.com/users/greve/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T07:59:03Z","updated_at":"2015-06-15T07:59:03Z","body":"@devvv4ever Not sure whether \"404 Not Found\" is a valid server response for DAV when there is no report to be found even if the path is valid per se. So filed this as https://git.kolab.org/T474 on our end to have our team look into that as well.\r\n\r\nSince this peeked my curiosity I had a peek into the RFC: \r\n\r\nLooking at https://tools.ietf.org/html/rfc3253#section-3.6, the precondition for a client to be able to expect REPORT to work appears to be that the resource URL must have reported \"(DAV:supported-report)\" before. I cannot find that in the debug log, however. So unless I misread the RFC, this may be the culprit.\r\n\r\nIs DavDroid checking for having received \"(DAV:supported-report)\" before issuing REPORT? "}}