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

Exported contacts from nextcloud creates multiple lines of PRODID in same element, which fails during Import #4158

Open
devz3r0 opened this issue Sep 23, 2024 · 0 comments
Labels

Comments

@devz3r0
Copy link

devz3r0 commented Sep 23, 2024

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

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

No branches or pull requests

1 participant