Summary: | VCard import: CRLF in encoded lines breaks parsing of contact information | ||
---|---|---|---|
Product: | [Applications] kdepimlibs | Reporter: | Frank Steinmetzger <dev+kde> |
Component: | kabc | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | kollix |
Priority: | NOR | ||
Version: | 4.12.2 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepimlibs/ebc15a8af0882a05dd383deb142c3528f04d9c80 | Version Fixed In: | 4.13 |
Sentry Crash Report: | |||
Attachments: |
Example VCF with problematic contact information
Contact with garbled content in the field after a wrapped and encoded VCF field |
Description
Frank Steinmetzger
2014-03-19 23:14:58 UTC
can you attach such an example vcard which fails, please. Created attachment 85661 [details]
Example VCF with problematic contact information
Here is an anonymised version of the file, boiled down to some of the problematic entries. There are five entries in the file, but only three show up by default in my address book. The two last ones in the file, which originally were the doctors with the long string of opening hours in the Notes field, don't appear unless the Notes field is either removed or edited to circumvent the bug in question.
I added some information into the contacts' Notes field on where to look and what to do.
On a side-note (and not really related): I noticed that the Skype-entry was missing from a contact. I looked at my internal address book and there it was present. So I exported that contact to find out the difference. As it turns out, KDE uses the field name "X-SKYPE", whereas Android uses "X-SKYPE-USERNAME" (or maybe the other way around, I don't remember). I know it's an X- entry and so basically it's non-standard anyway, but who is "more wrong" here?
Created attachment 85662 [details]
Contact with garbled content in the field after a wrapped and encoded VCF field
Here's also a small screenshot showing one of the problems, just in case you cannot reproduce that particular issue.
Thanks for the attached vcard. The problem is in the vcard parser and "soft line breaks" in Quoted-Printable encoded lines. http://tools.ietf.org/html/rfc1521#page-18 Will have a look Git commit ebc15a8af0882a05dd383deb142c3528f04d9c80 by Martin Koller. Committed on 09/04/2014 at 10:18. Pushed by mkoller into branch 'KDE/4.13'. Fix handling of \r\n in quoted-printable soft-broken lines When a vcard has quoted-printable encoded lines with a soft line-break, the fetch for the next line did not handle the \r\n line handling as is done in the outer loop FIXED-IN: 4.13 REVIEW: 117097 M +2 -0 kabc/vcardparser/testroundtrip.qrc A +56 -0 kabc/vcardparser/tests/vcard10.vcf A +52 -0 kabc/vcardparser/tests/vcard10.vcf.ref M +4 -0 kabc/vcardparser/vcardparser.cpp http://commits.kde.org/kdepimlibs/ebc15a8af0882a05dd383deb142c3528f04d9c80 |