Error 415 while syncing via Caldav



  • Hi,

    I'm getting a 415 error code while trying to sync my caldav calendar with my android 4.2 which I did not have before (using the same calendar, hosted on Owncloud, and also syncing by davdroid).

    I had to change my certificate recently, but apart from that, there has been no other changes (client side or server side).

    I fetched the log :

     E/davdroid.DavSyncAdapter( 3380): Hard HTTP error 415
    E/davdroid.DavSyncAdapter( 3380): at.bitfire.davdroid.webdav.HttpException: 415 Unsupported Media Type
    E/davdroid.DavSyncAdapter( 3380): 	at at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:419)
    E/davdroid.DavSyncAdapter( 3380): 	at at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:393)
    E/davdroid.DavSyncAdapter( 3380): 	at at.bitfire.davdroid.webdav.WebDavResource.put(WebDavResource.java:370)
    E/davdroid.DavSyncAdapter( 3380): 	at at.bitfire.davdroid.resource.RemoteCollection.add(RemoteCollection.java:155)
    E/davdroid.DavSyncAdapter( 3380): 	at at.bitfire.davdroid.syncadapter.SyncManager.pushNew(SyncManager.java:143)
    E/davdroid.DavSyncAdapter( 3380): 	at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:49)
    E/davdroid.DavSyncAdapter( 3380): 	at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:146)
    E/davdroid.DavSyncAdapter( 3380): 	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
    I/davdroid.DavSyncAdapter( 3380): Sync complete for com.android.calendar
    

    So, if you could help me, that'd be great :)

    Best regards,
    TD


  • developer

    Thanks for your report. The logs are incomplete, could you please include the network traffic? Please do the setprop calls described in https://github.com/bitfireAT/davdroid/wiki/How-to-view-the-logs.

    It sounds like your OwnCloud doesn't like the Content-Type of an uploaded contact/event.

    Also, which OwnCloud version do you use? Is there a way to reproduce the issue or do you have a test account?



  • Thanks for your help and your app :)

    Here are the correct logs :

    E/WifiService(  517): Invoking mWifiStateMachine.setWifiEnabled
    E/FWKEXT  (  517): Enter GetCurrentOP
    ...
    ...
    E/FWKEXT  (  517): Enter GetCurrentOP
    I/davdroid.DavSyncAdapter( 5528): Performing sync for authority com.android.calendar
    D/davdroid.DavSyncAdapter( 5528): Creating new DavHttpClient
    V/davdroid.TlsSniSocketFactory( 5528): Setting allowed TLS protocols: TLSv1, TLSv1.1, TLSv1.2
    V/davdroid.TlsSniSocketFactory( 5528): Setting allowed TLS ciphers: TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_RC4_128_MD5, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA
    I/davdroid.DavHttpClient( 5528): Wire logging active, disabling HTTP compression
    D/davdroid.DavSyncAdapter( 5528): Server supports VCard version 3.0
    V/davdroid.URIUtils( 5528): Normalized URL https://xxx/owncloud/remote.php/caldav/calendars/Philippe/xxx/ -> https://xxx/owncloud/remote.php/caldav/calendars/Philippe/xxx/
    D/davdroid.WebDavResource( 5528): Using preemptive authentication (not compatible with Digest auth)
    I/davdroid.SyncManager( 5528): Remotely removing 0 deleted resource(s) (if not changed)
    I/davdroid.SyncManager( 5528): Uploading 5 new resource(s) (if not existing)
    V/davdroid.URIUtils( 5528): Normalized URL 20150619T080121Z-5528_1f8899417136f4a0.ics -> 20150619T080121Z-5528_1f8899417136f4a0.ics
    D/HttpClient( 5528): Re-using cached 'basic' auth scheme for https://xxx:443
    D/HttpClient( 5528): Connection request: [route: HttpRoute[{s}->https://xxx:443]][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 3]
    D/HttpClient( 5528): Connection leased: [id: 0][route: HttpRoute[{s}->https://xxx:443]][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 3]
    D/HttpClient( 5528): Opening connection HttpRoute[{s}->https://xxx:443]
    D/HttpClient( 5528): Connecting to xxx/xx.xx.xx.xx:443
    D/HttpClient( 5528): Connecting socket to xxx/xx.xx.xx.xx:443 with timeout 20000
    D/HttpClient( 5528): Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
    D/HttpClient( 5528): Enabled cipher suites:[TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_RC4_128_MD5, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA]
    D/HttpClient( 5528): Enabling SNI for xxx
    D/HttpClient( 5528): Starting handshake
    E/NativeCrypto( 5528): ssl=0x5bc79738 cert_verify_callback x509_store_ctx=0x5da96ab0 arg=0x0
    E/NativeCrypto( 5528): ssl=0x5bc79738 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
    D/HttpClient( 5528): Secure session established
    D/HttpClient( 5528):  negotiated protocol: TLSv1.2
    D/HttpClient( 5528):  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
    D/HttpClient( 5528):  peer principal: CN=xxx, OU=Gandi Standard SSL, OU=Domain Control Validated
    D/HttpClient( 5528):  peer alternative names: [xxx, xxx]
    D/HttpClient( 5528):  issuer principal: CN=Gandi Standard SSL CA 2, O=Gandi, L=Paris, ST=Paris, C=FR
    D/HttpClient( 5528): Connection established 192.168.0.16:49420<->xx.xx.xx.xx:443
    D/HttpClient( 5528): Executing request PUT /owncloud/remote.php/caldav/calendars/xxx/xxx/20150619T080121Z-5528_1f8899417136f4a0.ics HTTP/1.1
    D/HttpClient( 5528): Target auth state: CHALLENGED
    D/HttpClient( 5528): Proxy auth state: UNCHALLENGED
    D/Wire    ( 5528): http-outgoing-0 >> "PUT /owncloud/remote.php/caldav/calendars/xxx/xxx/20150619T080121Z-5528_1f8899417136f4a0.ics HTTP/1.1[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "If-None-Match: *[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "Content-Type: text/calendar[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "Content-Length: 4204[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "Host: forceistrongwithisone.fr[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "User-Agent: DAVdroid/0.7.5[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "Authorization: Basic xxx[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:VCALENDAR[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "VERSION:2.0[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "PRODID:-//bitfire web engineering//DAVdroid 0.7.5 (ical4j 1.0.x)//EN[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:VEVENT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTAMP:20150619T080122Z[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "UID:20150619T080121Z-5528@1f8899417136f4a0[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART;TZID=Europe/Paris:20150618T150041[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTEND;TZID=Europe/Paris:20150618T153041[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "SUMMARY:MOISERIE - M VANTAL et SEDA et CCRCT - r[0xc3][0xa9]union [\r]annul[0xc3][0xa9]e et report[0xc3][0xa9]e [\r][\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "LOCATION:[0xc3][0xa0] la CCRCT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DESCRIPTION:Quand : jeudi 18 juin 2015 15:00-15:30 (UTC+01:0[\r]0) Bruxelles\\\, Copenhague\\\, Madrid\\\, Paris.\nEmplacement : [0xc3][0xa0] la CCRCT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> " \n\n[\r]Remarque : le d[0xc3][0xa9]calage GMT ci-dessus ne tient pas compte des r[0xc3][0xa9]glages de[\r] l'heure d'[0xc3][0xa9]t[0xc3][0xa9].\n\n*~*~*~*~*~*~*~*~*~*[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "STATUS:CONFIRMED[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "ORGANIZER:mailto:Agenda%20Philippe[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "LAST-MODIFIED:20150619T080122Z[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:VEVENT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:VTIMEZONE[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZID:Europe/Paris[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZURL:http://tzurl.org/zoneinfo/Europe/Paris[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "X-LIC-LOCATION:Europe/Paris[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:CEST[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19810329T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:CET[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19961027T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+000921[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+000921[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:PMT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:18910315T000100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:18910315T000100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+000921[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:WET[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19110311T010100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19110311T010100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:WEST[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19160614T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19160614T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19170324T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19180309T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19190301T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19200214T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19210314T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19220325T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19230526T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19240329T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19250404T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19260417T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19270409T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19280414T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19290420T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19300412T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19310418T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19320402T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19330325T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19340407T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19350330T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19360418T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19370403T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19380326T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19390415T230000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19400225T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:WET[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19161002T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19161002T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19171008T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19181007T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19191006T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19201024T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19211026T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19221008T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19231007T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19241005T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19251004T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19261003T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19271002T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19281007T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19291006T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19301005T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19311004T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19321002T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19331008T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19341007T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19351006T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19361004T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19371003T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19381002T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19391119T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:CEST[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19400615T000000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19400615T000000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19430329T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19440403T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19760328T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19770403T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19780402T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19790401T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19800406T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:CET[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19421102T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19421102T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19431004T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19450916T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19760926T010000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19770925T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19781001T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19790930T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19800928T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19810927T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19820926T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19830925T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19840930T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19850929T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19860928T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19870927T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19880925T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19890924T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19900930T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19910929T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19920927T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19930926T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19940925T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19950924T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:WEMT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19440825T000000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19440825T000000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:WEST[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19441008T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19441008T020000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0200[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:WEMT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19450402T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19450402T030000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:DAYLIGHT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "BEGIN:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETFROM:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZOFFSETTO:+0100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "TZNAME:CET[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "DTSTART:19770101T000000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "RDATE:19770101T000000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:STANDARD[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:VTIMEZONE[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 >> "END:VCALENDAR[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "HTTP/1.1 415 Unsupported Media Type[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Date: Fri, 19 Jun 2015 08:01:24 GMT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Server: Apache[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Expires: Thu, 19 Nov 1981 08:52:00 GMT[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Pragma: no-cache[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Strict-Transport-Security: max-age=31536000[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "X-XSS-Protection: 1; mode=block[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "X-Content-Type-Options: nosniff[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "X-Frame-Options: Sameorigin[\r][\n]"
    D/Wire    ( 5528): 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 *[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Set-Cookie: oc0a78284d2c=ao3fe7bl2kslqvrog3phsli8q4; path=/owncloud; secure; HttpOnly[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Keep-Alive: timeout=5, max=100[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Connection: Keep-Alive[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Transfer-Encoding: chunked[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "Content-Type: application/xml; charset=utf-8[\r][\n]"
    D/Wire    ( 5528): http-outgoing-0 << "[\r][\n]"
    D/HttpClient( 5528): Connection can be kept alive for 5000 MILLISECONDS
    D/HttpClient( 5528): Authentication succeeded
    D/HttpClient( 5528): http-outgoing-0: Shutdown connection
    D/HttpClient( 5528): Connection discarded
    D/HttpClient( 5528): http-outgoing-0: Close connection
    D/HttpClient( 5528): Connection released: [id: 0][route: HttpRoute[{s}->https://xxx:443]][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 3]
    E/davdroid.DavSyncAdapter( 5528): Hard HTTP error 415
    E/davdroid.DavSyncAdapter( 5528): at.bitfire.davdroid.webdav.HttpException: 415 Unsupported Media Type
    E/davdroid.DavSyncAdapter( 5528): 	at at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:419)
    E/davdroid.DavSyncAdapter( 5528): 	at at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:393)
    E/davdroid.DavSyncAdapter( 5528): 	at at.bitfire.davdroid.webdav.WebDavResource.put(WebDavResource.java:370)
    E/davdroid.DavSyncAdapter( 5528): 	at at.bitfire.davdroid.resource.RemoteCollection.add(RemoteCollection.java:155)
    E/davdroid.DavSyncAdapter( 5528): 	at at.bitfire.davdroid.syncadapter.SyncManager.pushNew(SyncManager.java:143)
    E/davdroid.DavSyncAdapter( 5528): 	at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:49)
    E/davdroid.DavSyncAdapter( 5528): 	at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:146)
    E/davdroid.DavSyncAdapter( 5528): 	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
    I/davdroid.DavSyncAdapter( 5528): Sync complete for com.android.calendar
    E/FWKEXT  (  517): Enter GetCurrentOP
    ...
    ...
    E/FWKEXT  (  517): Enter GetCurrentOP
    D/davdroid.DavSyncAdapter( 5528): Closing httpClient
    E/FWKEXT  (  517): Enter GetCurrentOP
    D/HttpClient( 5528): Connection manager is shutting down
    D/HttpClient( 5528): Connection manager shut down
    E/FWKEXT  (  517): Enter GetCurrentOP
    ...
    ...
    E/FWKEXT  (  517): Enter GetCurrentOP
    E/ATCIJ   ( 5463): Couldn't find 'atci-serv-fw' socket after 16 times, continuing to retry silently
    E/FWKEXT  (  517): Enter GetCurrentOP
    ...
    ...
    E/FWKEXT  (  517): Enter GetCurrentOP
    

    I don't know about the content type. As I said it, I was able to use Davdroid with the same Owncloud account some months before (after that, I left it unsynced -cert error- for some time and only reset it a few days ago).
    I tried with evolution, it works.

    I use owncloud 6 (ooops, I just realize I forgot to update it, I'll do it right now :))
    I can create a test account, yeah.


  • developer

    Seems to be a server issue. The MIME type for iCalendar resources is text/calendar, but the server rejects the iCal file with "415 Unsupported Media Type".

    OwnCloud 6 seems quite old. I guess this has been fixed in OwnCloud because I haven't seen this problem with OC 7 or 8.



  • Problem solved, although I have no idea what caused it.

    I updated Owncloud from 6 to 8 (I had to update to OC7, you can't do it directly, if that can be useful), but I did not solve the problem, I still had a 415 error.

    Then, I tried using a different account. It worked fine.
    So I knew I just had to delete and re-create the account for the calendar, which I did, and it worked.

    Unfortunately, since the base calendar app for android is really a shitty application (and I'm being polite) which does not allow neither the import nor the export of the whole calendar, I had to send each events one by one by email to import them back after recreating the account. But when trying to import them to my calendar (the davdroid one), it only allows me to import them to the Google account calendar, but not to the caldav one...
    (I'm not asking for help, just complaining about that app, it helps :))

    Anyway, thanks a lot for your help, and for providing us with such a great app :)


  • developer

    OK, so I'll close this issue now as it works for you.


Log in to reply
 

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