Following your link I found https://github.com/owncloud/calendar/issues/1002 and the second comment has a solution that fixes the problem for me. I did a vimdiff on his file and without understanding much I can tell you that the changes look reasonable. I have only been testing for 5 minutes but so far it works.
vCards of OwnCloud which UID's matches /UID:.*[\.|@]/ are not synched to DAVdroid
This topic is related to DAVdroid 0.8.4.1 and OwnCloud 8.1.3.
After synching my Andorid phone with OC I missed some contacts.
So I exported all OC contacts as vCards and experienced that all affected contacts contain a . or @ char in it’s UID:
>grep -c "UID:.*[\.|@]" Selected_contacts.vcf 18
Fix (very pragmatic)
I just modified the related UID’s char as following:
diff Selected_contacts.vcf Selected_contacts.modified.vcf 1297c1297 < UID:20140307T200521.email@example.com --- > UID:20140307T200521-f825b17bf7 38c38 < UID:firstname.lastname@example.org --- > UID:72f0c3d8-ab6e-4f80-aca6-82e75e255d1e ...
After deleting all contacts in OC I imported my modified vCard’s file. Afterwards the sync with DAVdroid was successful for all my contacts now.
I was not sure where to post this experience. I just want to help improving this really, really wonderful Syncing Software! Hope this is the right place. Or should it be located at the OC forum? Maybe I bother the wrong guys…
“.” should work. Regarding “@”: Do you mean this problem? It’s an OwnCloud issue and has already been fixed.
In a first approach I only replaced “@” and subsequent chars but it was not successful. Leaving “.” did not work and disturbed the syncing. After replacing “.” with “-” it worked.