Unable to sync shared data using ownCloud 8.1.0



  • After upgrading to ownCloud 8.1.0 I can not sync contacts, calendar entries nor tasks shared by another user although I can select her shared address books, calendars and task list when creating the DAVdroid account on my mobile.
    When syncing with my login data, those lists just stay empty. When removing all DAVdroid accounts and adding the addressbioks, calendars and task lists using her login data, the successfully sync.


  • developer

    Thanks for your report. Please read Reporting issues and provide all information mentioned there, including detailled steps to reproduce the issue, client and server software details, and verbose logs.



  • Issue occurred on following setting:
    Android version is 5.1.1 and 4.2.2
    DAVdroid: version 0.8.0 and 0.8.1
    ownCloud 8.1.0

    For reproduction I've ...

    1. Setup test accounts Alice and Bob

    2. Created shared addressbooks, calendars and tasks through owncCloud web interface on both accounts.

    3. Included all those own and shared data with DAVdroid to my device (Android 5.1.1)
      => result: issues does not reproduce so far ... all items present on device as expected :-(

    It seemes to also depend on some problematic items, thus I imported a task into Alices' shared calendar:

    1. filename: xyz.ics
      content:
    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//bitfire web engineering//DAVdroid 0.8.0 (ical4j 1.0.x)//EN
    BEGIN:VTODO
    DTSTAMP:20150709T111728Z
    UID:20150707T111331Z-6220@8ce1b24638b1b7e4
    CREATED:20150707T111227Z
    LAST-MODIFIED:20150709T111626Z
    SUMMARY:DiskStation Backup
    PRIORITY:9
    STATUS:COMPLETED
    DUE;TZID=Europe/Berlin:20150720T131500
    DTSTART;TZID=Europe/Berlin:20150709T131500
    COMPLETED:20150709T111626Z
    PERCENT-COMPLETE:100
    END:VTODO
    END:VCALENDAR
    
    1. Deleted Bobs' and Alice's accounts from device and added Alices' shared task list through share using Bobs credentials and directly using Alices' crendentials.
    2. Synchronized and => Alice sees her two tasks in Tasks app (by Marten Gajda), Bob doesn't (=0 tasks visible for him in Task list shared by Alice).
    3. Synchronized again and recorded verbose log - State didn't change: Alice keeps her tasks in list, Bob has 0 Tasks in list of Tasks app
    E/WifiStateMachine(  738): cancelDelayedScan -> 363
    E/native  (  738): do suspend false
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack( 1101): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    I/davdroid.DavSyncAdapter(24943): Performing sync for authority org.dmfs.tasks
    D/davdroid.DavSyncAdapter(24943): Creating new DavHttpClient
    V/davdroid.TLS_SNI(24943): Setting allowed TLS protocols: TLSv1, TLSv1.1, TLSv1.2
    I/davdroid.DavHttpClient(24943): Wire logging active, disabling HTTP compression
    V/davdroid.URIUtils(24943): Normalized URI https://***/owncloud/remote.php/caldav/calendars/Bob/persönlich_shared_by_Alice/ -> https://***/owncloud/remote.php/caldav/calendars/Bob/pers%C3%B6nlich_shared_by_Alice/ assuming that it was an URI or path name
    D/davdroid.WebDavResource(24943): Using preemptive authentication (not compatible with Digest auth)
    I/davdroid.SyncManager(24943): Remotely removing 0 deleted resource(s) (if not changed)
    I/davdroid.SyncManager(24943): Uploading 0 new resource(s) (if not existing)
    I/davdroid.SyncManager(24943): Uploading 0 modified resource(s) (if not changed)
    I/davdroid.SyncManager(24943): Synchronization forced
    I/davdroid.SyncManager(24943): Fetching remote resource list
    D/HttpClient(24943): CookieSpec selected: best-match
    D/HttpClient(24943): Re-using cached 'basic' auth scheme for https://***:443
    D/HttpClient(24943): Connection request: [route: HttpRoute[{s}->https://***:443]][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 3]
    D/HttpClient(24943): Connection leased: [id: 0][route: HttpRoute[{s}->https://***:443]][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 3]
    D/HttpClient(24943): Opening connection HttpRoute[{s}->https://***:443]
    D/HttpClient(24943): Connecting to ***/*.*.*.*:443
    D/HttpClient(24943): Connecting socket to ***/*.*.*.*:443 with timeout 20000
    D/HttpClient(24943): Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
    D/HttpClient(24943): Enabled cipher suites:[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
    D/HttpClient(24943): Enabling SNI for ***
    D/HttpClient(24943): Starting handshake
    D/HttpClient(24943): Secure session established
    D/HttpClient(24943):  negotiated protocol: TLSv1.2
    D/HttpClient(24943):  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
    D/HttpClient(24943):  peer principal: CN=***, OU=NA, O=NA, L=***, ST=***, C=DE
    D/HttpClient(24943):  issuer principal: CN=***, OU=NA, O=NA, L=***, ST=***, C=DE
    D/HttpClient(24943): Connection established *.*.*.*:41760<->*.*.*.*:443
    D/HttpClient(24943): Executing request REPORT /owncloud/remote.php/caldav/calendars/Bob/pers%C3%B6nlich_shared_by_Alice/ HTTP/1.1
    D/HttpClient(24943): Target auth state: CHALLENGED
    D/HttpClient(24943): Proxy auth state: UNCHALLENGED
    D/Wire    (24943): http-outgoing-0 >> "REPORT /owncloud/remote.php/caldav/calendars/Bob/pers%C3%B6nlich_shared_by_Alice/ HTTP/1.1[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "Accept: text/xml[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "Depth: 1[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "Content-Length: 259[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "Host: ***[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "User-Agent: DAVdroid/0.8.1[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "Authorization: Basic ******[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "[\r][\n]"
    D/Wire    (24943): http-outgoing-0 >> "<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns="DAV:">[\n]"
    D/Wire    (24943): http-outgoing-0 >> "   <C:filter>[\n]"
    D/Wire    (24943): http-outgoing-0 >> "      <C:comp-filter name="VCALENDAR">[\n]"
    D/Wire    (24943): http-outgoing-0 >> "         <C:comp-filter name="VTODO"/>[\n]"
    D/Wire    (24943): http-outgoing-0 >> "      </C:comp-filter>[\n]"
    D/Wire    (24943): http-outgoing-0 >> "   </C:filter>[\n]"
    D/Wire    (24943): http-outgoing-0 >> "   <prop>[\n]"
    D/Wire    (24943): http-outgoing-0 >> "      <getetag/>[\n]"
    D/Wire    (24943): http-outgoing-0 >> "   </prop>[\n]"
    D/Wire    (24943): http-outgoing-0 >> "</C:calendar-query>"
    D/Wire    (24943): http-outgoing-0 << "HTTP/1.1 207 Multi-Status[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Date: Fri, 24 Jul 2015 20:29:46 GMT[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Server: Apache[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Expires: Thu, 19 Nov 1981 08:52:00 GMT[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Pragma: no-cache[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *; connect-src *[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "X-XSS-Protection: 1; mode=block[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "X-Content-Type-Options: nosniff[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "X-Frame-Options: Sameorigin[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "X-Robots-Tag: none[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Set-Cookie: *****; path=/owncloud; secure; HttpOnly[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "X-Sabre-Version: 2.1.3[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Vary: Brief,Prefer,Accept-Encoding[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Keep-Alive: timeout=5, max=100[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Connection: Keep-Alive[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Transfer-Encoding: chunked[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "Content-Type: application/xml; charset=utf-8[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "[\r][\n]"
    D/HttpClient(24943): Connection can be kept alive for 5000 MILLISECONDS
    D/HttpClient(24943): Authentication succeeded
    D/HttpClient(24943): Cookie accepted [*****, version:0, domain:***, path:/owncloud, expiry:null]
    D/Wire    (24943): http-outgoing-0 << "31a[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "<?xml version="1.0" encoding="utf-8"?>[\n]"
    D/Wire    (24943): http-outgoing-0 << "<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"><d:response><d:href>/owncloud/remote.php/caldav/calendars/Bob/pers%c3%b6nlich_shared_by_Alice/owncloud-fd20864968680523010a457b534e22f7.ics</d:href><d:propstat><d:prop><d:getetag>"f1200ade534b44ce0aa0d34c5a7cd562"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/Bob/pers%c3%b6nlich_shared_by_Alice/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics</d:href><d:propstat><d:prop><d:getetag>"36fd77b6ec5352440bd1cc34c53d56f3"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>[\n]"
    V/davdroid.URIUtils(24943): Normalized URI /owncloud/remote.php/caldav/calendars/Bob/pers%c3%b6nlich_shared_by_Alice/owncloud-fd20864968680523010a457b534e22f7.ics -> /owncloud/remote.php/caldav/calendars/Bob/pers%C3%B6nlich_shared_by_Alice/owncloud-fd20864968680523010a457b534e22f7.ics assuming that it was an URI or path name
    D/davdroid.WebDavResource(24943): Processing multi-status element: https://***/owncloud/remote.php/caldav/calendars/Bob/persönlich_shared_by_Alice/owncloud-fd20864968680523010a457b534e22f7.ics
    V/davdroid.URIUtils(24943): Normalized URI /owncloud/remote.php/caldav/calendars/Bob/pers%c3%b6nlich_shared_by_Alice/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics -> /owncloud/remote.php/caldav/calendars/Bob/pers%C3%B6nlich_shared_by_Alice/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics assuming that it was an URI or path name
    D/davdroid.WebDavResource(24943): Processing multi-status element: https://***/owncloud/remote.php/caldav/calendars/Bob/persönlich_shared_by_Alice/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics
    D/Wire    (24943): http-outgoing-0 << "[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "0[\r][\n]"
    D/Wire    (24943): http-outgoing-0 << "[\r][\n]"
    D/HttpClient(24943): Connection [id: 0][route: HttpRoute[{s}->https://***:443]] can be kept alive for 5.0 seconds
    D/HttpClient(24943): Connection released: [id: 0][route: HttpRoute[{s}->https://***:443]][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 3]
    I/davdroid.SyncManager(24943): Fetching 0 new remote resource(s)
    I/davdroid.SyncManager(24943): Fetching 0 updated remote resource(s)
    I/davdroid.SyncManager(24943): Removing non-dirty resources that are not present remotely anymore
    I/davdroid.SyncManager(24943): Sync complete, fetching new CTag
    I/davdroid.DavSyncAdapter(24943): Sync complete for org.dmfs.tasks
    D/davdroid.DavSyncAdapter(24943): Closing httpClient
    D/HttpClient(24943): Connection manager is shutting down
    D/HttpClient(24943): http-outgoing-0: Close connection
    D/HttpClient(24943): http-outgoing-0: Close connection
    D/HttpClient(24943): Connection manager shut down
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    I/davdroid.DavSyncAdapter(24943): Performing sync for authority org.dmfs.tasks
    D/davdroid.DavSyncAdapter(24943): Creating new DavHttpClient
    I/davdroid.DavHttpClient(24943): Wire logging active, disabling HTTP compression
    V/davdroid.URIUtils(24943): Normalized URI https://***/owncloud/remote.php/caldav/calendars/Alice/persönlich/ -> https://***/owncloud/remote.php/caldav/calendars/Alice/pers%C3%B6nlich/ assuming that it was an URI or path name
    D/davdroid.WebDavResource(24943): Using preemptive authentication (not compatible with Digest auth)
    I/davdroid.SyncManager(24943): Remotely removing 0 deleted resource(s) (if not changed)
    I/davdroid.SyncManager(24943): Uploading 0 new resource(s) (if not existing)
    I/davdroid.SyncManager(24943): Uploading 0 modified resource(s) (if not changed)
    I/davdroid.SyncManager(24943): Synchronization forced
    I/davdroid.SyncManager(24943): Fetching remote resource list
    D/HttpClient(24943): CookieSpec selected: best-match
    D/HttpClient(24943): Re-using cached 'basic' auth scheme for https://***:443
    D/HttpClient(24943): Connection request: [route: HttpRoute[{s}->https://***:443]][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 3]
    D/HttpClient(24943): Connection leased: [id: 1][route: HttpRoute[{s}->https://***:443]][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 3]
    D/HttpClient(24943): Opening connection HttpRoute[{s}->https://***:443]
    D/HttpClient(24943): Connecting to ***/*.*.*.*:443
    D/HttpClient(24943): Connecting socket to ***/*.*.*.*:443 with timeout 20000
    D/HttpClient(24943): Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
    D/HttpClient(24943): Enabled cipher suites:[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
    D/HttpClient(24943): Enabling SNI for ***
    D/HttpClient(24943): Starting handshake
    D/HttpClient(24943): Secure session established
    D/HttpClient(24943):  negotiated protocol: TLSv1.2
    D/HttpClient(24943):  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
    D/HttpClient(24943):  peer principal: CN=***, OU=NA, O=NA, L=***, ST=***, C=DE
    D/HttpClient(24943):  issuer principal: CN=***, OU=NA, O=NA, L=***, ST=***, C=DE
    D/HttpClient(24943): Connection established *.*.*.*:42574<->*.*.*.*:443
    D/HttpClient(24943): Executing request REPORT /owncloud/remote.php/caldav/calendars/Alice/pers%C3%B6nlich/ HTTP/1.1
    D/HttpClient(24943): Target auth state: CHALLENGED
    D/HttpClient(24943): Proxy auth state: UNCHALLENGED
    D/Wire    (24943): http-outgoing-1 >> "REPORT /owncloud/remote.php/caldav/calendars/Alice/pers%C3%B6nlich/ HTTP/1.1[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "Accept: text/xml[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "Depth: 1[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "Content-Length: 259[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "Host: ***[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "User-Agent: DAVdroid/0.8.1[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "Authorization: Basic *****[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "[\r][\n]"
    D/Wire    (24943): http-outgoing-1 >> "<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns="DAV:">[\n]"
    D/Wire    (24943): http-outgoing-1 >> "   <C:filter>[\n]"
    D/Wire    (24943): http-outgoing-1 >> "      <C:comp-filter name="VCALENDAR">[\n]"
    D/Wire    (24943): http-outgoing-1 >> "         <C:comp-filter name="VTODO"/>[\n]"
    D/Wire    (24943): http-outgoing-1 >> "      </C:comp-filter>[\n]"
    D/Wire    (24943): http-outgoing-1 >> "   </C:filter>[\n]"
    D/Wire    (24943): http-outgoing-1 >> "   <prop>[\n]"
    D/Wire    (24943): http-outgoing-1 >> "      <getetag/>[\n]"
    D/Wire    (24943): http-outgoing-1 >> "   </prop>[\n]"
    D/Wire    (24943): http-outgoing-1 >> "</C:calendar-query>"
    D/Wire    (24943): http-outgoing-1 << "HTTP/1.1 207 Multi-Status[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Date: Fri, 24 Jul 2015 20:30:20 GMT[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Server: Apache[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Expires: Thu, 19 Nov 1981 08:52:00 GMT[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Pragma: no-cache[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *; connect-src *[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "X-XSS-Protection: 1; mode=block[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "X-Content-Type-Options: nosniff[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "X-Frame-Options: Sameorigin[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "X-Robots-Tag: none[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Set-Cookie: *****; path=/owncloud; secure; HttpOnly[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "X-Sabre-Version: 2.1.3[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Vary: Brief,Prefer,Accept-Encoding[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Keep-Alive: timeout=5, max=100[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Connection: Keep-Alive[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Transfer-Encoding: chunked[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "Content-Type: application/xml; charset=utf-8[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "[\r][\n]"
    D/HttpClient(24943): Connection can be kept alive for 5000 MILLISECONDS
    D/HttpClient(24943): Authentication succeeded
    D/HttpClient(24943): Cookie accepted [*****, version:0, domain:***, path:/owncloud, expiry:null]
    D/Wire    (24943): http-outgoing-1 << "2fe[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "<?xml version="1.0" encoding="utf-8"?>[\n]"
    D/Wire    (24943): http-outgoing-1 << "<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"><d:response><d:href>/owncloud/remote.php/caldav/calendars/Alice/pers%c3%b6nlich/owncloud-fd20864968680523010a457b534e22f7.ics</d:href><d:propstat><d:prop><d:getetag>"f1200ade534b44ce0aa0d34c5a7cd562"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/Alice/pers%c3%b6nlich/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics</d:href><d:propstat><d:prop><d:getetag>"36fd77b6ec5352440bd1cc34c53d56f3"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>[\n]"
    V/davdroid.URIUtils(24943): Normalized URI /owncloud/remote.php/caldav/calendars/Alice/pers%c3%b6nlich/owncloud-fd20864968680523010a457b534e22f7.ics -> /owncloud/remote.php/caldav/calendars/Alice/pers%C3%B6nlich/owncloud-fd20864968680523010a457b534e22f7.ics assuming that it was an URI or path name
    D/davdroid.WebDavResource(24943): Processing multi-status element: https://***/owncloud/remote.php/caldav/calendars/Alice/persönlich/owncloud-fd20864968680523010a457b534e22f7.ics
    V/davdroid.URIUtils(24943): Normalized URI /owncloud/remote.php/caldav/calendars/Alice/pers%c3%b6nlich/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics -> /owncloud/remote.php/caldav/calendars/Alice/pers%C3%B6nlich/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics assuming that it was an URI or path name
    D/davdroid.WebDavResource(24943): Processing multi-status element: https://***/owncloud/remote.php/caldav/calendars/Alice/persönlich/owncloud-bea414675d83d3f9e1b7e6ff9dee301c.ics
    D/Wire    (24943): http-outgoing-1 << "[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "0[\r][\n]"
    D/Wire    (24943): http-outgoing-1 << "[\r][\n]"
    D/HttpClient(24943): Connection [id: 1][route: HttpRoute[{s}->https://***:443]] can be kept alive for 5.0 seconds
    D/HttpClient(24943): Connection released: [id: 1][route: HttpRoute[{s}->https://***:443]][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 3]
    I/davdroid.SyncManager(24943): Fetching 0 new remote resource(s)
    I/davdroid.SyncManager(24943): Fetching 0 updated remote resource(s)
    I/davdroid.SyncManager(24943): Removing non-dirty resources that are not present remotely anymore
    I/davdroid.SyncManager(24943): Sync complete, fetching new CTag
    I/davdroid.DavSyncAdapter(24943): Sync complete for org.dmfs.tasks
    D/davdroid.DavSyncAdapter(24943): Closing httpClient
    D/HttpClient(24943): Connection manager is shutting down
    D/HttpClient(24943): http-outgoing-1: Close connection
    D/HttpClient(24943): http-outgoing-1: Close connection
    D/HttpClient(24943): Connection manager shut down
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack(  738): AudioTrack::set : Exit
    E/AudioTrack( 1101): AudioTrack::set : Exit
    E/WifiStateMachine(  738): cancelDelayedScan -> 368
    E/native  (  738): do suspend true
    E/WifiStateMachine(  738): WifiStateMachine L2Connected CMD_START_SCAN source -2 367, 368 -> obsolete
    

  • admin

    I'm sorry... I can't reproduce this with Owncloud 8.1 / Android 5.1.1 / DAVdroid 0.8.1

    Two accounts active: acc1 / acc2

    acc1 = admin
    acc2 = user

    acc1 created a tasks list in owncloud. activated "Admin" -> "Sharing" -> Allow sharing.
    acc1 shares Tasks list with acc2
    acc2 logs in to owncloud. Sees shared tasks.

    acc2 installs 1) Tasks app on Android, 2) installs DAVdroid 0.8.1 afterwards
    acc2: complete setup with DAVdroid adding the Tasks list. Force a sync. Tasks showing up in the Tasks app on Android.

    After that I created tasks with both users in the same tasks list in owncloud. I also created tasks on Android and synced them. Tasks were always in the expected state for both users...

    If you have any other information on this please let me know...



  • I also have this problem with a group shared address book.

    Software: Owncloud 8.1.0 (App: Contacts 0.4.0.0) / Android 5.1.1 / DAVdroid 0.8.1 (also tried 0.8.0 and 0.7.7 with the same result)

    Owner of the address book can sync fine, other group members don't get any contacts on the phone.

    Log: https://owncloud.scheirle.de/index.php/s/pKvZf1A0QsgqyM5
    This log shows a forced sync.

    Please note the Ignoring entity without content lines in the log. Maybe that is the cause?

    Edit: Added older DAVDroid versions



  • Ok I did some additional testing.

    My comment above was with owncloud users from an ldap backend.
    I tried this scenario again with internal owncloud users. And then the sync worked fine. So this is probably an owncloud ldap issue.


  • developer

    According to the logs, there is no VCard content sent by OwnCloud (therefore the "Ignoring entity without content").

    I guess this is a duplicate of https://github.com/owncloud/contacts/issues/814 or another OwnCloud issue.

    In case there's something wrong on the DAVdroid side, please write here again.



  • I did a lot more tests (ldap with non-ldap user share, single and multiple entity changes, ...)

    I came to the conclusion that ldap isn't the problem.
    But if multiple entities should get updated the sync fails (I don't know if this is ownclouds or DAVDroids error)

    How to reproduce:

    1. New addressbook (admin user)
    2. Add 2 contacts
    3. Share it with acc2
    4. DAVDroid Sync from acc2 fails

    If you only add one Contact DAVDroid use a GET request like : https://acc2:✘@owncloud.host.tld/remote.php/carddav/addressbooks/acc2/addresbook_shared_by_admin/<uid>.vcf" which returns a valid vcard. But if multiple changes are present nothing happens.

    I'm not familiar with CardDav and don't know how multiple changes should be handled.


  • developer

    For single entries, DAVdroid sends a GET request. It seems like your OwnCloud responds to that correctly.

    If ther'es more than one entry to fetch, DAVdroid uses addressbook-/calendar-multi-get, and it seems like your OwnCloud installation has some problems with that.



  • Just for completeness:

    Edit: Added Calendar App fix


  • admin

    Scheirle: Great, thank you!



  • Fixing ownCloud also worked for me, thank you.
    Excuse me for bothering.


Log in to reply
 

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