-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnsupportedMediaType: HTTP/1.1 415 Validation error in vCard: The FN property must appear in the VCARD component exactly 1 time #206
Comments
Just wanted to say that I'm facing this problem as well. I have the exact same setup except with Win10 clients w/ TB, Lightning and SoGo. |
@worric Thanks for confirming. cc @irgendwie |
It seems like both of you have contacts with multiple FN (full name) properties specified, which leads to the error - specifying multiple FN in a vcard is not allowed.
@enoch85 I see PUT requests in the nextcloud log - are you trying to first time sync your contacts, or push new contacts onto the server? |
@irgendwie Thunderbird (Sogo plugin) tries to push to the server once an hour. That's where the PUT comes from. I'll double check my contacts and get back to you. |
@enoch85 Could you export the address book in thunderbird and check the produced file (it just contains all vcards separated by newlines) and see if there is one contact with a double FN property? |
Could it be these --^ that cause errors? |
sorry, I mean contacts which have multiple FN entries and not one FN entry with multiple names |
I have several with nothing set. Will remove them and see what happens |
Yup, seems like that solved it. Sorry for the noise. |
@worric I assume it is a similar thing in your case - do you mind to check? |
I've been experimenting a bit, and it seems I see the problem whenever a new contact is automatically added to the Nextcloud-synced address book via the "automatically add outgoing e-mails addresses to my..."-functionality. In that case, TB only adds the email address to the contact and leaves the Display Name (the FN property) empty. |
@worric Yes, that's exactly what happens. |
Filed a bug report with Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1373576 |
You might be interested in https://github.com/fruux/sabre-vobject/pull/384 |
@lars-sh Great stuff! So this will stop spamming my log if implemented? |
That patch just uses the EMAIL field of such VCards as another fallback and keeps your logs clean. @irgendwie How are you going to implement 3rdparty patches? As you see I created a pull request for sabre-vobject. Shall I create another one for https://github.com/nextcloud/3rdparty or do you update from time to time? |
* Added VCard without FN fallback see nextcloud/contacts#206 * Added tests for VCard with EMAIL fallback * Fixed broken test
@irgendwie So, now when https://github.com/fruux/sabre-vobject/pull/384 is , can we finally fix this? |
But it's against the rfc rules right? EDIT: yeah, he's just adding a fn field as fallback, I misread, my bad. That's the proper way to do :) |
Switched to using CardBook in Thunderbird instead and the error is gone. But still, SOGO is recomended in the Docs so I think many users have this spamming error. Would be nice with a fix. |
SOGO? |
Thanks :) |
Is this still relevant to the contacts app then? |
Yes, as the error will still appear for everyone that doesn't run CardBook. |
I honestly don't know what we can do here! :p |
@skjnldsv Release is available now, see https://github.com/sabre-io/vobject/releases/tag/4.1.3 |
Hi, I've just discovered the log fill with this error. My nextcloud instance and apps are all up to date.
Do I need to open an new Issue for this? Cheers. |
@buttle Use Cardbook if you use Thunderbird, that solved my issue. Please read the above comments. |
@enoch85 Tomorrow I'll do that. I'll get back if it doesn't work ;) |
* Added VCard without FN fallback see nextcloud/contacts#206 * Added tests for VCard with EMAIL fallback * Fixed broken test
Steps to reproduce
Expected behaviour
No errors
Actual behaviour
See Nextcloud server log. Maybe just certain VCards but still...
Server configuration
Operating system:
Ubunt Server 16.04
Web server:
Apache 2.4
Database:
MySQL 5.7
PHP version:
7.0
Nextcloud version: (see Nextcloud admin page)
11.0.3
Contacts version: (see Nextcloud apps page)
1.5.3
Updated from an older Nextcloud or fresh install:
Updated since first version
Signing status:
List of activated apps:
Nextcloud configuration:
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
Browser:
Chromium Version 58.0.3029.81 Built on Ubuntu , running on Ubuntu 17.04 (64-bit)
Operating system:
Ubuntu 17.07 Budgie (great OS btw)
CardDAV-clients:
Using Lightning and Sogo connector with Thunderbird like described in the documentation: https://docs.nextcloud.com/server/11/user_manual/pim/sync_thunderbird.html
Logs
Nextcloud log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: