Ohh, never tried the preemptive auth checkbox… Then its working. I have tried on this for ours. ;-(
Thank you!
OwnCloud returns invalid PREF value
-
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:
- Exported android contacts using True Phone app.
- Imported android contacts in owncloud using import tool in contact app.
- After a while, android will give me a warning saying “error while downloading remote entries”.
See log here:
http://paste.fedoraproject.org/386252/67200518/I am running ownCloud 9.0.1 (stable) and Contacts app in owncloud is the latest version (1.3.1.0)
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, althoughPREF
is an integer between 1 and 100 in VCard 4. -
I have verified the problem:
- Exporting contacts from Android generates a VCard 2.1 with lines like
TEL;CELL;PREF:+12345
. - Import this into OwnCloud.
- Request the VCard with
Accept: text/vcard; version=4.0
and OwnCloud serves a VCard 4 with this line:TEL;CELL=;PREF=:+12345
. The missing value forPREF
is not allowed and thus causes problems.
I have created an OwnCloud Contacts bug report for this problem, please follow up there.
- Exporting contacts from Android generates a VCard 2.1 with lines like
-
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
PREF
values. -
DAVdroid 1.3.6 now ignores invalid
PREF
values. Please update to the latest DAVdroid version and synchronize again.