[solved] Can't sync contacts (calendar ok)



  • Issue still here with 0.3.7 alpha


  • developer

    Unfortunately, the sync mechanism of Android doesn’t provide a method to give the user an error message when some error occurs. Instead, there’s just the red icon. So I will have to rely on logcat/server logs instead.

    OwnCloud is known to send unencoded characters in URLs. This has been improved in 0.3.8 but of course I don’t know if this will fix it (I doubt it in this case).

    Can you provide either logcat/server log output or a test account with this problem and send it to play@bitfire.at?



  • @rfc2822 : I use Baïkal on my server, not owncloud, and all I have (in terms of logs when trying to sync) is what I have allready transmitted to you :
    theipoftheclient - - [09/Nov/2013:13:08:47 +0100] “DELETE /card.php/addressbooks/arno/default/C5E24A1C-BAA0-0001-C61E-EB271170BB80.vcf HTTP/1.1” 401 304 “-” “DAVdroid/0.3.6-alpha”
    theipoftheclient - - [09/Nov/2013:13:08:47 +0100] “DELETE /card.php/addressbooks/arno/default/C5E24A1C-BAA0-0001-C61E-EB271170BB80.vcf HTTP/1.1” 404 266 “-” “DAVdroid/0.3.6-alpha”

    It’s written “DAVdroid/0.3.6-alpha” but I have 0.3.7-alpha (I’ve just checked and reboot to be sure…).



  • I found a solution at least for my problems (sync with owncloud): I exported my contacts from the owncloud web-ui to a VCF-file and deleted all contacts, then I imported the contacts in Android. After that contact sync worked.

    I exported the contacts to a VCF-file from owncloud web-ui again and compared the old and the new files; it looks like a lot of trash was removed (for example really meaningless stuff from Evolution). @ arno-githib: I know you try to sync with Baïkal (BTW, sorry I hijacked your bug report) – but maybe your problems are related to the imported VCF-files as well.



  • I know you try to sync with Baïkal (BTW, sorry I hijacked your bug report)
    but maybe your problems are related to the imported VCF-files as well

    Maybe… but I did it the same way : import VCF into android, deleted all contacts on baïkal, and sync doesn’t work


  • developer

    Could this be the same as in issue #68 – usage of URLs with :?



  • I don’t think so, the URL entered in the config of the davdroid account follow this syntax :
    http://server/anyfolder/card.php/addressbooks/user/default/


  • developer

    no I mean if the vcards contain URLs with colons? do you have URLs in your vcards?



  • “colons” is “?”
    I exported all my contacts (on Android) in a vcf file, and I looked for a “?” : I have some.
    I then looked for “http” (to find url), but didn’t find any.
    Just in case : in the vcf file, it’s written :" VERSION:2.1" (android 4.2.2)


  • developer

    @arno-github colons are “:”, for instance in URLs
    URL:http://www.test.at would be valid in VCard 4 and invalid in VCard 3 while
    URL:http://www.test.at would be valid in VCard 3 and invalid in VCard 4



  • I don’t see the difference, exept “http://” isn’t part of the link on the second example…

    See what I have :
    $ grep ‘URL’ Contacts.vcf
    URL:www.mairie.fr (not the real name, transformed as a link by github)
    URL:david-magnetiseur.fr
    URL:cabinet-mace.fr


  • developer

    Oh, github changed it. Difference again:
    URL:http://www.test.at would be valid in VCard 4 and invalid in VCard 3 while
    URL:http\://www.test.at would be valid in VCard 3 and invalid in VCard 4

    Which one do you have (see Github help for how to escape)?



  • I don’t have any of those, as written above… But I have a lot of colons in other fields !


  • developer

    Colons are OK to seperate field name and values, but not within the values. But maybe there’s another reason why it doesn’t work for you. I can only suggest not to import contacts or import sanitized, minimal VCFs until the problem has been identified.



  • I deleted the 2 colons present in the values, but it didn’t solve the problem.
    Maybe other special caracters can prevent from sync to work ? ("?", “/”, “!”…)



  • I have the same problem with DAVdroid 0.4.3. DAVdroid finds the addressbook after entering the carddav-link from ownCloud, but does not sync anything. The addressbook is empty.

    Server: ownCloud 5.0.11
    Phone: Sony Xperia S with Android 4.1.2

    Interesting fact:
    Syncing with the CardDAV app from Marten Gajda works fine.
    If I let the DAVdroid carddav-account active and add a CardDAV carddav-account, I get duplicated addresses and birthdays in my contacts. But my contacts do not get duplicated.
    If I remove the DAVdroid carddav-account, the duplicated addresses and birthdays disappear.
    So it seems, that DAVdroid syncs something, but the synced data are not stored properly on the phone. DAVdroid only stores data after the contacts were created by CardDAV but it cannot create/sync the contacts itself.

    Maybe this helps…


  • developer

    Possibly because of missing VCard 4 support? See issue #67



  • O.4.4 is OK for me, first contacts sync done 🙂
    Are all the fields well sync’ed ? I haven’t verified yet…
    Thanks !


  • developer

    DAVdroid 0.5 comes with VCard 3 support as CardDAV specs require. Please test and if there’s something missing, feel free to comment here again.



  • I still have the same problem with DAVdroid 0.5.1.

    DAVdroid does not sync any contact, but after adding a CardDAV sync account of Marten Gajdas app, I get duplicated birthdays and addresses.
    After removing the DAVdroid account, these duplicates disappear.
    After removing the CardDAV account (Marten Gajda), the contacts disappear.

    aLogcat shows no “dav”-related log entries.
    ownCloud shows no “dav”-related log entries.

    Any other ideas? 😞


Log in to reply
 

Similar topics