Skip to content

Import fails for Apple (iOS) vCard format #4182

Open
@phil-lipp

Description

@phil-lipp

Describe the bug

Apple uses additional fields to provide a more detailed contact info. Ideally these fields could be mapped to Nextcloud so all information is preserved. Alternatively these fields could be sanitized.

Here are the troublesome fields:
X-MS-IMADDRESS;OTHER:
ADR;<HOME/WORK/OTHER>:
EMAIL;<WORK/OTHER>:
TEL;<PREF/OTHER/VOICE>;<MOBILE/VOICE/HOME>:
URL;OTHER:

Steps to reproduce

  1. Connect iPhone to PC
  2. Use 3uTools to export contacts
  3. Try to import the contacts to Nextcloud Contacts
  4. See error for contacts with the aforementioned attributes

Expected behavior

Handle the import gracefully.

Actual behavior

Import fails for contacts with aforementioned attributes.

Contact version

6.1.0

Operating system

Debian 12

PHP engine version

PHP 8.3

Web server

Nginx

Database

MariaDB

Additional info

According to https://www.rfc-editor.org/rfc/rfc6350 only the X-name attributes are not official and should not be used. Attributes like "TEL;VALUE=uri;PREF=1;TYPE="voice,home":tel:+1-555-555-5555;ext=5555" and "TEL;VALUE=uri;TYPE=home:tel:+33-01-23-45-67" are explicitly mentioned in the RFC and should be supported by the Contacts app.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions