Custom phone numbers get removed on up-sync to posteo.de



  • Hi,

    I'm seeing this on Lineage 14.1 (Android 7.1.2) with the Contacts app that came with Lineage:

    1. adb shell setprop log.tag.davdroid VERBOSE
    2. Contacts app -> create new contact with a phone number with custom label "Hotline".
    3. Contacts app -> Export to .vcf file gives this:
    BEGIN:VCARD
    VERSION:2.1
    N:Claus;Santa;;;
    FN:Santa Claus
    TEL;X-Hotline:1234
    END:VCARD
    
    1. DAVdroid -> my posteo.de account -> sync
      I see the following in "adb logcat":
    04-29 14:37:30.448  8098  8269 I davdroid: [syncadapter.ContactsSyncManager] Server advertises VCard/4 support: true
    04-29 14:37:30.449  8098  8269 I davdroid: [syncadapter.ContactsSyncManager] Contact group method: CATEGORIES
    04-29 14:37:30.450  8098  8269 I davdroid: [syncadapter.SyncManager] Sending local deletes/updates to server
    04-29 14:37:30.463  8098  8269 I davdroid: [syncadapter.BaseDavSyncManager] Removed 0 record(s) from server
    04-29 14:37:30.492  8098  8269 D davdroid: [syncadapter.BaseDavSyncManager] Generating file name/UID for local record #167
    04-29 14:37:30.567  8098  8269 D davdroid: [syncadapter.ContactsSyncManager] Preparing upload of VCard 02efdd91-fab7-4021-9ad2-a81cd812e7de.vcf
    04-29 14:37:30.567  8098  8269 D davdroid:      PARAMETER #0 = at.bitfire.vcard4android.Contact@dd3822[addresses=[],anniversary=<null>,birthDay=<null>,categories=[],displayName=Santa Claus,emails=[
    ],familyName=Claus,givenName=Santa,group=false,impps=[],jobDescription=<null>,jobTitle=<null>,members=[],middleName=<null>,nickName=<null>,note=<null>,organization=<null>,phoneNumbers=[LabeledPrope
    rty(property=ezvcard.property.Telephone [ group=null | parameters={TYPE=[x-hotline]} | uri=null | text=1234 ], label=Hotline)],phoneticFamilyName=<null>,phoneticGivenName=<null>,phoneticMiddleName=
    <null>,prefix=<null>,relations=[],suffix=<null>,uid=02efdd91-fab7-4021-9ad2-a81cd812e7de,unknownProperties=<null>,urls=[]]
    04-29 14:37:30.621  8098  8269 I davdroid: [syncadapter.BaseDavSyncManager] Uploading new record 02efdd91-fab7-4021-9ad2-a81cd812e7de.vcf
    04-29 14:37:30.622  8098  8269 V davdroid: [HttpClient] --> PUT https://posteo.de:8443/addressbooks/my_account/default/02efdd91-fab7-4021-9ad2-a81cd812e7de.vcf
    04-29 14:37:30.623  8098  8269 V davdroid: [HttpClient] Content-Type: text/vcard;version=4.0
    04-29 14:37:30.624  8098  8269 V davdroid: [HttpClient] Content-Length: 262
    04-29 14:37:30.625  8098  8269 V davdroid: [HttpClient] If-None-Match: *
    04-29 14:37:30.626  8098  8269 V davdroid: [HttpClient]
    04-29 14:37:30.627  8098  8269 V davdroid: [HttpClient] BEGIN:VCARD
    04-29 14:37:30.627  8098  8269 V davdroid: VERSION:4.0
    04-29 14:37:30.627  8098  8269 V davdroid: PRODID:+//IDN bitfire.at//DAVdroid/1.11.1-ose ez-vcard/0.10.4
    04-29 14:37:30.627  8098  8269 V davdroid: UID:02efdd91-fab7-4021-9ad2-a81cd812e7de
    04-29 14:37:30.627  8098  8269 V davdroid: FN:Santa Claus
    04-29 14:37:30.627  8098  8269 V davdroid: N:Claus;Santa;;;
    04-29 14:37:30.627  8098  8269 V davdroid: davdroid1.TEL;TYPE=x-hotline:1234
    04-29 14:37:30.627  8098  8269 V davdroid: davdroid1.X-ABLabel:Hotline
    04-29 14:37:30.627  8098  8269 V davdroid: REV:20180429T123730Z
    04-29 14:37:30.627  8098  8269 V davdroid: END:VCARD
    04-29 14:37:30.628  8098  8269 V davdroid: [HttpClient] --> END PUT (262-byte body)
    04-29 14:37:30.718  8098  8269 V davdroid: [HttpClient] <-- 201 Created https://posteo.de:8443/addressbooks/my_account/default/02efdd91-fab7-4021-9ad2-a81cd812e7de.vcf (88ms)
    04-29 14:37:30.720  8098  8269 V davdroid: [HttpClient] Date: Sun, 29 Apr 2018 12:37:32 GMT
    04-29 14:37:30.722  8098  8269 V davdroid: [HttpClient] Server: Apache
    04-29 14:37:30.723  8098  8269 V davdroid: [HttpClient] X-Powered-By: PHP/5.4.35-0+deb7u2
    04-29 14:37:30.725  8098  8269 V davdroid: [HttpClient] Content-Length: 0
    04-29 14:37:30.726  8098  8269 V davdroid: [HttpClient] ETag: "6dce5f4474d06c1cc5938fe0ca8e0fcc"
    04-29 14:37:30.728  8098  8269 V davdroid: [HttpClient] Keep-Alive: timeout=5, max=99
    04-29 14:37:30.746  8098  8269 V davdroid: [HttpClient] Connection: Keep-Alive
    04-29 14:37:30.747  8098  8269 V davdroid: [HttpClient] Content-Type: text/html
    04-29 14:37:30.771  8098  8269 V davdroid: [HttpClient] <-- END HTTP (0-byte body)
    04-29 14:37:30.772  8098  8269 D davdroid: [syncadapter.BaseDavSyncManager] Received new ETag=6dce5f4474d06c1cc5938fe0ca8e0fcc after uploading
    04-29 14:37:30.793  8098  8269 V davdroid: [resource.LocalContact] Calculated data hash = 1853533688, group memberships hash = 0
    04-29 14:37:30.794  8098  8269 D davdroid: [resource.LocalContact] Clearing dirty flag with eTag = 6dce5f4474d06c1cc5938fe0ca8e0fcc, contact hash = 1853533688
    04-29 14:37:30.827  8098  8269 I davdroid: [syncadapter.BaseDavSyncManager] Sent 1 record(s) to server
    
    1. posteo.de webUI does show the new contact, but without any phone number
    2. posteo.de webUI -> export contacts gives this vcard (also, without any phone number) for the new contact:
    BEGIN:VCARD
    VERSION:3.0
    N:Claus;Santa;;;
    FN:Santa Claus
    END:VCARD
    

    How can we get the custom phone number correctly up-synced to posteo?
    Any help would be highly appreciated.


  • developer

    @mbpost0123 Hello,

    This is a limitation by Posteo. The vCard uploaded by DAVdroid contains the label information, but servers are not required to support that.

    However, the phone number (without label) should be kept by Posteo. Did you already ask Posteo support about that?



  • I just addressed this to Posteo support.
    Waiting for their feedback.