@rfc2822 Oh, as you will experience most of the time, this was my bad.
I had the old “well-known” URLs configured that pointed to /remote.php/carddav instead of /remote.php/dav
Thanks for your quick support and sorry for the noise.
I got the calendar sync fully working but I don’t manage to sync contacts between owncloud and android. I read configurations, faq and also searched for related topics in this forum, but I am still clueless.
Steps to reproduce:
See log here:
I am running ownCloud 9.0.1 (stable) and Contacts app in owncloud is the latest version (22.214.171.124)
What exactly does this error mean?
Any help would be appreciated. Thanks a lot.
@dav–noob Seems like OwnCloud serves unparsable VCards:
java.lang.IllegalStateException: [Error 15] PREF parameter value is malformed and could not be parsed. Retrieve its raw text values instead by calling property.getParameters().get(“PREF”).
To see the actual VCard, we would require logs.
I guess it’s because OwnCloud sends a VCard3-style
PREF in a VCard 4, although
PREF is an integer between 1 and 100 in VCard 4.
I have verified the problem:
Accept: text/vcard; version=4.0and OwnCloud serves a VCard 4 with this line:
TEL;CELL=;PREF=:+12345. The missing value for
PREFis not allowed and thus causes problems.
I have created an OwnCloud Contacts bug report for this problem, please follow up there.
Hello, thanks a lot for your answer.
You were right about the wrong vcard format and it pointed me in the direction to temporarily solve the issue.
I exported all contacts again using another app: https://f-droid.org/wiki/page/am.ed.exportcontacts
I can’t see which vcard format this app uses, but it worked okay with Owncloud.
@dav–noob Interesting. I deleted all contacts on Owncloud, exported with
am.ed.exportcontacts, imported to Owncloud, tried sync and got the same error 15.
Please see also: ez-vcard [Feature] Ignore invalid PREF parameter #76
From vcard4android/628ef73f, DAVdroid will ignore invalid
DAVdroid 1.3.6 now ignores invalid
PREF values. Please update to the latest DAVdroid version and synchronize again.