Posteo: unsupported media type



  • hey there...i have gone through the faq, but cannot get a solution for this.
    Apparrently theres a problem with uploading contacts from my device to my adress book on posteo.de.

    i´m not very talented with technical issues, hope this explanation helps. here is the error log (it´s sennsitive personal data,, so i blacked out the content):

    SYNCHRONIZATION INFO
    Synchronization phase: 4
    Account name: m.rauh@posteo.net
    Authority: com.android.contacts
    
    HTTP REQUEST:
    PUT /addressbooks/m.rauh/default/CDB5354C-BEFB-1FC4-4CBB-21B3C9C918F4.vcf
    Content-Length: 630
    Content-Type: text/vcard;version=4.0
    If-Match: "51c1eb1cde3aa2d4ac53c8f9db4ec368"
    
    BEGIN:VCARD[CR][LF]
    VERSION:4.0[CR][LF]
    PRODID:+//IDN bitfire.at//DAVdroid/1.0.9.1 vcard4android ez-vcard/0.9.10[CR][LF]
    UID:CDB5354C-BEFB-1FC4-4CBB-21B3C9C918F4[CR][LF]
    FN:**[CR][LF]
    N:***;;[CR][LF]
    TEL;TYPE=work:0345 [ffffffe2][ffffff80][ffffff93] 61 41 59 93[CR][LF]
    TEL;TYPE=home:*[CR][LF]
    TEL;TYPE=cell:**[CR][LF]
    EMAIL;TYPE=x-internet:*[CR][LF]
    ORG:*[CR][LF]
    ADR;LABEL=Gro[ffffffc3][ffffff9f]e Klausstra[ffffffc3][ffffff9f]*;TYPE=work:;;Gro[ffffffc3][ffffff9f]e Klaus[CR][LF]
    stra[ffffffc3][ffffff9f]e 11;*[CR][LF]
    ADR;LABEL=*^nhalle;TYPE=home:;;Franz Schubert Strass[CR][LF]
    e 1\nhalle;;;;[CR][LF]
    URL;TYPE=work:*[CR][LF]
    REV:20160705T054549Z[CR][LF]
    END:VCARD[CR][LF]
    
    
    HTTP RESPONSE:
    http/1.1 415 Unsupported Media Type
    Connection: Keep-Alive
    Content-Type: application/xml; charset=utf-8
    Date: Tue, 05 Jul 2016 05:45:49 GMT
    Keep-Alive: timeout=5, max=99
    Server: Apache
    Transfer-Encoding: chunked
    X-Powered-By: PHP/5.4.35-0+deb7u2
    
    <?xml version="1.0" encoding="utf-8"?>[LF]
    <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">;[LF]
    <s:exception>Sabre_DAV_Exception_UnsupportedMediaType</s:exception>[LF]
    <s:message>This resource only supports valid vcard data. Parse error: Invalid VObject, line 12 did not follow the icalendar/vcard format</s:message>[LF]
    <s:sabredav-version>1.7.1</s:sabredav-version>[LF]
    </d:error>[LF]
    
    
    EXCEPTION:
    at.bitfire.dav4android.exception.HttpException: 415 Unsupported Media Type
    at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:317)
    at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:290)
    at at.bitfire.dav4android.DavResource.put(DavResource.java:201)
    at at.bitfire.davdroid.syncadapter.SyncManager.uploadDirty(SyncManager.java:314)
    at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:147)
    at at.bitfire.davdroid.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.onPerformSync(ContactsSyncAdapterService.java:66)
    at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    
    SOFTWARE INFORMATION
    DAVdroid version: 1.0.9.1 (101) Fri May 27 07:58:12 MESZ 2016
    Installed from: org.fdroid.fdroid
    JB Workaround installed: no
    
    CONFIGURATION
    System-wide synchronization: automatically
    Account: jte@posteo.de
    Address book sync. interval: manually
    Calendar sync. interval: 240 min
    OpenTasks sync. interval: 240 min
    Account: m.rauh@posteo.net
    Address book sync. interval: 240 min
    Calendar sync. interval: manually
    OpenTasks sync. interval: manually
    
    SQLITE DUMP
    android_metadata
    | locale |
    | de_DE |
    ----------
    settings
    | setting | value |
    ----------
    services
    | _id | accountName | service | principal |
    | 1 | jte@posteo.de | carddav | https://dav.fruux.com/principals/uid/a3298245429/ |
    | 2 | jte@posteo.de | caldav | https://dav.fruux.com/principals/uid/a3298245429/ |
    | 3 | m.rauh@posteo.net | carddav | https://posteo.de:8443/principals/m.rauh/ |
    | 4 | m.rauh@posteo.net | caldav | https://posteo.de:8443/principals/m.rauh/ |
    ----------
    sqlite_sequence
    | name | seq |
    | services | 4 |
    | homesets | 7 |
    | collections | 11 |
    ----------
    homesets
    | _id | serviceID | url |
    | 1 | 1 | https://dav.fruux.com/addressbooks/a3298245429/ |
    | 3 | 2 | https://dav.fruux.com/calendars/a3298245429/ |
    | 4 | 4 | https://posteo.de:8443/calendars/m.rauh/ |
    | 7 | 3 | https://posteo.de:8443/addressbooks/m.rauh/ |
    ----------
    collections
    | _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
    | 1 | 1 | https://dav.fruux.com/addressbooks/a3298245429/d9e62f32-914e-4381-814c-811d8c172f06/ | 0 | Contacts | <null> | <null> | <null> | <null> | <null> | 1 |
    | 5 | 2 | https://dav.fruux.com/calendars/a3298245429/1437db6a-0441-4048-8743-cd37685fb4e1/ | 0 | Proyectadáno | Imported: 2015-12-16 16:38 | -15834695 | <null> | 1 | 0 | 1 |
    | 6 | 2 | https://dav.fruux.com/calendars/a3298245429/8a3a71df-c1f4-49a2-b4ac-568e16aacad8/ | 0 | Tasks | Imported: 2015-12-16 17:03 | -65536 | <null> | 0 | 1 | 1 |
    | 7 | 2 | https://dav.fruux.com/calendars/a3298245429/cc699f2c-0239-494e-9a3f-f1607d8295ca/ | 0 | Privacityzen | <null> | -12278013 | <null> | 1 | 0 | 1 |
    | 8 | 4 | https://posteo.de:8443/calendars/m.rauh/default/ | 0 | Posteo1 | <null> | -15472099 | <null> | 1 | 1 | 0 |
    | 11 | 3 | https://posteo.de:8443/addressbooks/m.rauh/default/ | 0 | default addressbook | <null> | <null> | <null> | <null> | <null> | 1 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 5.0.2 (23.1.A.0.690)
    Device: Sony D5803 (D5803)
    

    Any help appreciated - THANK YOU!


  • developer

    Hello,

    1. In case of problems, I'd always try the latest version of the app in question. DAVdroid 1.2 is available in F-Droid.
    2. This is a Posteo problem and has already been discussed. You have to disable RFC 6868 escaping, as described on https://davdroid.bitfire.at/configuration/posteode/, to work around this.


  • Thanks - worked for me!


Log in to reply
 

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