https://bugs.kde.org/show_bug.cgi?id=293098
Summary: KAddressbook/Akonadi stores CATEGORIES escaped the
wrong way
Product: kaddressbook
Version: unspecified
Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: NOR
Component: general
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Version: unspecified (using KDE 4.7.4)
OS: Linux
The internal storage of VCARDS in Akonadi is incorrect regarding multiple
CATEGORIES.
Categories are stored in VCARD data like this:
CATEGORIES:CatA\,CatB\,Cat C,D,E\,CatF
whereas according to the RFC, they should be rather stored like that:
CATEGORIES:CatA,CatB,Cat C\,D\,E,CatF
Reproducible: Always
Steps to Reproduce:
Create a contact with multiple categories, sync via groupdav and watch VCARD
sent or jut watch raw storage in Akonadi Console
Actual Results:
CATEGORIES will be joined together with "\," instaed of just ","
Expected Results:
CATEGORIES should be joined together just with "," and all "," WITHIN a
categories should be escaped with "\,".
This bug causes LOSS OF DATA , ie CATEGORIES and messes up the DAV server
Reference:
http://tools.ietf.org/html/rfc6350#section-4
http://tools.ietf.org/html/rfc6350#section-6.7.1
text = *TEXT-CHAR
TEXT-CHAR = "\\" / "\," / "\n" / WSP / NON-ASCII
/ %x21-2B / %x2D-5B / %x5D-7E
; Backslashes, commas, and newlines must be encoded.
text-list = text *("," text)
CATEGORIES-value = text-list
Example:
CATEGORIES:INTERNET,IETF,INDUSTRY,INFORMATION TECHNOLOGY
NOTE in the above that special chars WITHIN the category must be encoded, but
the individual categories are joined together using plain ","
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Kdepim-bugs mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kdepim-bugs