the contacts backup file of nextcloud andriod app can not import in contacts app, show Validation error in vCard: ENCODING=QUOTED-PRINTABLE is not valid for this document type.
.Contacts-Backup folderAndroid version:
10
Device model:
Huawei Mate30pro
Stock or customized system:
EMUI 10.1.0
Nextcloud app version:
3.13.1
Nextcloud server version:
20.0.0
Reverse proxy:
nginx+docker
Sabre\DAV\Exception\UnsupportedMediaType: Validation error in vCard: ENCODING=QUOTED-PRINTABLE is not valid for this document type.
/var/www/html/3rdparty/sabre/dav/lib/CardDAV/Plugin.php - line 303:
Sabre\CardDAV\Plugin->validateVCard("BEGIN:VCARD ... D", false)
/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
Sabre\CardDAV\Plugin->beforeCreateFile("addressbook ... f", "BEGIN:VCARD ... D", OCA\DAV\CardDAV\AddressBook {}, false)
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 1100:
Sabre\DAV\Server->emit("beforeCreateFile", [ "addressbo ... e])
/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 527:
Sabre\DAV\Server->createFile("addressbook ... f", "BEGIN:VCARD ... D", null)
/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 474:
Sabre\DAV\Server->emit("method:PUT", [ Sabre\HTTP ... }])
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 251:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 319:
Sabre\DAV\Server->start()
/var/www/html/apps/dav/lib/Server.php - line 325:
Sabre\DAV\Server->exec()
/var/www/html/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/var/www/html/remote.php - line 167:
require_once("/var/www/ht ... p")
{"reqId":"CE4ZRHx7j5JSpcdDGATB","level":4,"time":"2020-10-21T03:09:40+00:00","remoteAddr":"x.x.x.x","user":"test","app":"webdav","method":"PUT","url":"/remote.php/dav/addressbooks/users/test/contacts/A2933D34-8D1B-4B0D-9B97-58EEB3F06F97.vcf","message":{"Exception":"Sabre\\DAV\\Exception\\UnsupportedMediaType","Message":"Validation error in vCard: ENCODING=QUOTED-PRINTABLE is not valid for this document type.","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/Plugin.php","line":303,"function":"validateVCard","class":"Sabre\\CardDAV\\Plugin","type":"->","args":["BEGIN:VCARD\r\nVERSION:3.0\r\nPRODID;VALUE=TEXT:ez-vcard 0.10.6\r\nN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nFN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nUID:7e16c4cc-2b0c-455c-aac8-40507981d4f5\r\nREV;VALUE=DATE-TIME:20201021T030932Z\r\nEND:VCARD",false]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"Sabre\\CardDAV\\Plugin","type":"->","args":["addressbooks/users/test/contacts/A2933D34-8D1B-4B0D-9B97-58EEB3F06F97.vcf","BEGIN:VCARD\r\nVERSION:3.0\r\nPRODID;VALUE=TEXT:ez-vcard 0.10.6\r\nN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nFN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nUID:7e16c4cc-2b0c-455c-aac8-40507981d4f5\r\nREV;VALUE=DATE-TIME:20201021T030932Z\r\nEND:VCARD",{"__class__":"OCA\\DAV\\CardDAV\\AddressBook"},false]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1100,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeCreateFile",["addressbooks/users/test/contacts/A2933D34-8D1B-4B0D-9B97-58EEB3F06F97.vcf","BEGIN:VCARD\r\nVERSION:3.0\r\nPRODID;VALUE=TEXT:ez-vcard 0.10.6\r\nN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nFN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nUID:7e16c4cc-2b0c-455c-aac8-40507981d4f5\r\nREV;VALUE=DATE-TIME:20201021T030932Z\r\nEND:VCARD",{"__class__":"OCA\\DAV\\CardDAV\\AddressBook"},false]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":527,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["addressbooks/users/test/contacts/A2933D34-8D1B-4B0D-9B97-58EEB3F06F97.vcf","BEGIN:VCARD\r\nVERSION:3.0\r\nPRODID;VALUE=TEXT:ez-vcard 0.10.6\r\nN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nFN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E7=8E=8B=E9=97=A8=E7=AA=97\r\nUID:7e16c4cc-2b0c-455c-aac8-40507981d4f5\r\nREV;VALUE=DATE-TIME:20201021T030932Z\r\nEND:VCARD",null]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":474,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":325,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/Plugin.php","Line":376,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36","version":"20.0.0.9"}
It may be caused by the incompatibility of Chinese. I tried to add an English name contact and it was successful after importing
Duplicate of #7026
@tobiasKaminsky see comment above. Unfortunately I haven't found the time yet to report this to the lib project at https://github.com/mangstadt/ez-vcard/issues
Issue raised for the library project at https://github.com/mangstadt/ez-vcard/issues/112
Thanks @j-ed 鉂わ笍
@AndyScherzinger The problem has been fixed by the lib maintainer and should be available with the next lib release 馃殌
Patch for library has been released and is included in tonight's dev build and thus will also ship with 3.14.0 RC1+
Most helpful comment
@AndyScherzinger The problem has been fixed by the lib maintainer and should be available with the next lib release 馃殌