bitfireAT / vcard4android

Allows usage of vCard resources with the Android contacts provider
GNU General Public License v3.0
11 stars 6 forks source link

Contacts with only ORG get a wrong first/last name on sync #31

Closed rfc2822 closed 8 months ago

rfc2822 commented 8 months ago

Steps to reproduce:

  1. Set up a DAVx5 address book, sync
  2. Add a contact with only an organization ("Only A Company") and a phone number.
  3. Contact is exported as
FN:Only A Company
ORG:Only A Company

because vCard always requires a FN.

  1. Unselect address book, sync, select address book again, sync again.
  2. Contact is downloaded and imported into Android. vcard4android generates an Organization data row (content: "Only A Company") and also a structured name data row (containing only a display name: "Only A Company").
  3. Because the structured name data row is created without components, Android splits the display name into components.

Result:

If the downloaded contact is opened in a contacts app, it shows the correct organization but also First name: Only, Middle name: A, Last name: Company.

Expected result:

Contacts app should only contain the organization, without first/last name.