contacts
contacts copied to clipboard
Vcf import failed - values are not decoded from quoted-printable format
Steps to reproduce
- Import vcf with fields containing 'ENCODING=QUOTED-PRINTABLE'
Example (here in ADR, but can occure in every field):
BEGIN:VCARD
VERSION:2.1
N:Mustermann;Max;;;
FN:Max Mustermann
TEL;CELL:+4912345678901
TEL;HOME:+4912345678902
EMAIL;HOME:[email protected]
ADR;HOME:;;Musterweg 1;Musterstadt;;12345;
ADR;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:;;=4D=75=73=74=65=72=77=65=67=20=32;=4D=75=73=74=65=72=73=74=61=64=74;;=31=32=33=34=35;
BDAY:1900-01-01
END:VCARD
I got such files by exporting contacts from an android mobile.
Expected behaviour
Contact is shown with decoded values
Actual behaviour
The according values are still shown as quoted printables
Server configuration
Operating system: Debian 8.4
Web server: Apache 2.4.10
Database: MySQL 5.5.49
PHP version: 5.6.20
ownCloud version: 9.0.1 (stable) (installed with apt-get)
Contacts version: 1.2.0.0 (with vcf bugfix inserted - https://github.com/owncloud/contacts/pull/392)
Updated from an older ownCloud or fresh install: fresh install
Signing status (ownCloud 9.0 and above):
No errors have been found.
List of activated apps:
Enabled:
- activity: 2.2.1
- calendar: 1.1
- comments: 0.2
- contacts: 1.2.0.0
- dav: 0.1.6
- encryption: 1.2.0
- federatedfilesharing: 0.1.0
- federation: 0.0.4
- files: 1.4.4
- files_pdfviewer: 0.8
- files_sharing: 0.9.1
- files_texteditor: 2.1
- files_trashbin: 0.8.0
- files_versions: 1.2.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 14.5.0
- notifications: 0.2.3
- provisioning_api: 0.4.1
- systemtags: 0.2
- templateeditor: 0.1
- updatenotification: 0.1.0
Disabled:
- external
- files_external
- user_external
- user_ldap
The content of config/config.php:
{
"system": {
"updatechecker": false,
"instanceid": "oc1ar8ylj0b4",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "\/var\/www\/owncloud\/data",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "9.0.1.3",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"memcache.local": "\\OC\\Memcache\\APCu"
}
}
Are you using external storage, if yes which one: no
Are you using encryption: yes
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox 46
Operating system: Windows 10
CardDAV-clients: none
Logs
Web server error log
(Only the PUT request)
ownCloud log (data/owncloud.log)
(no entry)
Browser log
Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf self blockiert ("script-src https://***REMOVED SENSITIVE VALUE*** 'unsafe-eval'").
+1
I have the same issue. Is there already a fix or a workaround for this problem? As far as I know there is no release date for 1.3 given at the moment..
No fix yet available ....
The release date for 1.3 is planned for the May 30, 2016 😉 Find out more about the milestones of ownCloud Contacts at: https://github.com/owncloud/contacts/milestones
We could use mathiasbynens/quoted-printable to encode/decode quoted printables.
This is a huge deal breaker because it's not possible to properly export contacts for Android to Owncloud/Nextcloud.
I've found this website as a workaround: http://www.webatic.com/run/convert/qp.php Unfortunately you have to give your contacts to this website... over unencrypted HTTP.
Any chance this will make it into 1.5 ? (I just fill importing and exporting is quite important, which is why currently I am on 8.2 tree, but so want to come over 9.1.
I found this issue trough google.
For anyone searching for a way to import their android contacts, I used this library: https://github.com/mbideau/vcardtools
to convert my vcf from my phone to a new vCard 3.0 vcf that works!
I used:
python3 vcardtools.py -xn output_dir/ contacts.vcf
cat output_dir/* >> contacts_new.vcf
and then you get the contacts_new.vcf that is vCard 3.0 compatible.