Skip to content
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

Sync does not work correctly when add or edit contact on web interface #109

Open
rolapp opened this issue Oct 4, 2015 · 2 comments
Open

Comments

@rolapp
Copy link

rolapp commented Oct 4, 2015

When I add or edit a contact on the web interface, the sync of phone- and email- types not correctly.
I'm using sogo-connector for thunderbird and carddav-sync for android.

On web type is home, on android type is others, on thunderbird type is work.

douple-qoutes

double-qoutes-android geaendert

double-quotes-tb

I have testing something and found the solution.

VERSION:3.0
PRODID:-//ownCloud//NONSGML Contacts Plus 1.0.9//EN
UID:0378641fdd
N:;double quotes;;;
FN:double quotes 
TEL;TYPE="HOME,VOICE";PREF=1:+49 0815 4711
END:VCARD

The quotes in the TYPE entry are the cause (TEL;TYPE="HOME,VOICE";PREF=1:+49 0815 4711)
I remove the quotes in the database, it looks now like this.

VERSION:3.0
PRODID:-//ownCloud//NONSGML Contacts Plus 1.0.9//EN
UID:60ea10981b
N:;without quotes;;;
FN:without quotes 
TEL;TYPE=CELL,VOICE;PREF=1:+49 171 123 456
END:VCARD

With out quotes sync is now working correctly.
without-qoutes

without-qoutes-android

without-quotes-tb

Add contact in android or thunderbird syncing is also correctly.
I think the contact-editor in contactsplus add the quotes in vcard.
When importing the vCard, the error only occurs when multiple entries in TYPE (HOME,VOICE) or (HOME,FAX)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27157890-sync-does-not-work-correctly-when-add-or-edit-contact-on-web-interface?utm_campaign=plugin&utm_content=tracker%2F19713444&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F19713444&utm_medium=issues&utm_source=github).
@rolapp
Copy link
Author

rolapp commented Oct 7, 2015

I have found the file who writes the quotes in the vCard.
3rdparty/sabre/vobject/lib/Parameter.php this funktion.

public function serialize()

In the comments of the function is this link.
https://tools.ietf.org/html/rfc6868
rfc6868 is for vcard4.0 ?
If I edit a contact photo the entry in vcard is like this:
PHOTO;ENCODING=b;TYPE=image/jpeg: Thunderbird can't open the photo.
This is also vcard4.0 ?
But we use vCard 3.0
Maybe the sabre app is thinking we use vcard4.0, this is the problem!

@mpfries
Copy link

mpfries commented Nov 13, 2015

Same problem with Iphone syncing.
I've added screenshots of what is entered in the web interface (1st picture) and how it looks like @ iPhone 6 S (2nd picture):

web1

iphone1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants