contacts
contacts copied to clipboard
Exported contacts from nextcloud creates multiple lines of PRODID in same element, which fails during Import
Describe the bug
I am exporting my 78 Contacts from Account A and importing into account B. Most are imported however 2 failed. During investigation of the logs, the 2 failed with: Validation error in vCard: PRODID MUST NOT appear more than once in a VCARD component
Steps to reproduce
1. Go into account A and export the contacts from the nextcloud
2. go into account B on the same server and import that just exported file
3. witness the error.
Expected behavior
all contacts are imported from the just exported file.
Actual behavior
Validation error in vCard: PRODID MUST NOT appear more than once in a VCARD component
the output in thee file from a working contact entry looks like:
BEGIN:VCARD
VERSION:4.0
PRODID:+//IDN bitfire.at//DAVx5/4.3.5.1-gplay ez-vcard/0.12.0
UID:104608ad-dfd8-47f4-a887-c78eebbb0074
FN:<REDACTED>
N:<REDACTED>
TEL;TYPE=cell:+<REDACTED>
REV:20230802T142130Z
END:VCARD
one of the 2 errornous entries:
BEGIN:VCARD
VERSION:3.0
VERSION:3.0
VERSION:3.0
VERSION:3.0
VERSION:3.0
PRODID:-//ownCloud//NONSGML Contacts 0.5.0.0//EN
PRODID:-//Sabre//Sabre VObject 3.4.7//EN
PRODID:-//ownCloud//NONSGML Contacts 0.5.0.0//EN
N:<REDACTED>
FN:<REDACTED>
TEL;TYPE=VOICE,CELL:+<REDACTED>
REV:2015-12-28T10:51:09+00:00
UID:1030bc3a-e24b-41ee-a2ea-26ed2cf9e32b
END:VCARD
Contact version
6.0.0
Operating system
ubuntu 22.04
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database
MySQL
Additional info
No response