nextcloud / contacts

📇 Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
569 stars 173 forks source link

Strangely inconsistent behavior on import #3919

Open DiagonalArg opened 5 months ago

DiagonalArg commented 5 months ago

Steps to reproduce

Inconsistent behavior on import of a number of cards. All these cards were exported from Google. Here's one:

BEGIN:VCARD
VERSION:3.0
FN:A&A Tire Repair (Punctures; Flats)
N:;A&A Tire Repair (Punctures\; Flats);;;
TEL;TYPE=MAIN:+1.510 599 7964
item1.ADR:;;5443 Shattuck Ave;Oakland;CA;94609-1620;US;5443 Shattuck Ave\nO
 akland\, CA 94609-1620\nUS
item1.X-ABLabel:
CATEGORIES:Auto,myContacts
END:VCARD

Sometimes it's imported correctly. Sometimes, the address looks like this:

image

So far, the problems I see are in the address. Here's another one:

image

And another:

image

Expected behavior

See above.

Actual behavior

See above.

Server operating system

CentOS 7.9

Web server

Nginx

Database engine version

PostgreSQL

PHP engine version

PHP 8.1

Nextcloud version

27.1.7

Updated from an older installed version or fresh install

None

Signing status

No errors have been found.

List of activated apps

No response

Nextcloud configuration

No response

Browser

LibreWolf 124.0.3-1

Client operating system

Ubuntu 22.04

CardDAV-clients

Web interface.

Web server error log

No response

Nextcloud log

No response

Browser log

No response

Browser log

No response

artelse commented 5 months ago

Hi, am having similar issues where lines longer than about 75 characters are broken off with a newline \n. In my case exporting an addressbook ('Download' in NC parlance) inserts all these newlines which than on subsequent import breaks. I manually had to fix a large contacts .vcf file, which was quite a pain.