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

From nextcloud exported vcard files can't be imported correctly #239

Closed
knut-hildebrandt opened this issue Jun 23, 2017 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@knut-hildebrandt
Copy link

I had already reported this behaviour in this bug report #235 (comment) but it later turned out to be a different issue.

I exported the address book from my nextcloud, deleted it on the server and re-imported it. Less than 15% of the contacts were imported. Tried it several times and it always was the same. Then I had a short look at the exported VCard-file and saw that:

  1. it was somehow mixed and held version 3.0 AND version 4.0 vcards
  2. the majority of the vcards had several - up to five - VERSION entries, all looking the exactly the same for one vcard
  3. many of the vcards had several PRODID entries, some of them up to three or four. All of these entries were generated by different clients

Somehow I had the idea that vcards with more than one VERSION and PRODID entry were not imported. Thus I deleted all of these entries and all of a sudden I was able to import the contacts.

Now I wonder why the vcards are exported in a mixed format file and why leftover entries are not stripped from them. Thus, I suppose, problems like the one I experienced probably could be avoided by exporting a correctly formatted vcard file. Or should better the import process be changed?

Knut

@jancborchardt jancborchardt added the bug Something isn't working label Jul 4, 2017
@skjnldsv
Copy link
Member

The nextcloud contact app/backend does not automatically edit/fix your vCard yet (we started implementing this recently, but we're not done yet).
So if you imported apps before we put our vCard syntax restrictions, your cards may be invalid but still used by nextcloud (though editing them with the latest versions will probably mark them as invalid and reject your changes). You can edit them manually but you should treat each error as individual bug (multiple prodid...) the mixed version can't be fix as we don't provide an upgrade script.

@skjnldsv skjnldsv added invalid This doesn't seem right and removed bug Something isn't working labels Jul 24, 2017
@skjnldsv
Copy link
Member

See #137 & #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants