[Bug 310137] New: Nasty Unicode corruption bug when saving a contact to a remote CardDAV server

Antonis Kanouras antonis+kdebugs at metadosis.gr
Thu Nov 15 09:52:17 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=310137

            Bug ID: 310137
          Severity: critical
           Version: 1.8.1
          Priority: NOR
          Assignee: kdepim-bugs at kde.org
           Summary: Nasty Unicode corruption bug when saving a contact to
                    a remote CardDAV server
    Classification: Unclassified
                OS: Linux
          Reporter: antonis+kdebugs at metadosis.gr
          Hardware: Ubuntu Packages
            Status: UNCONFIRMED
         Component: DAV Resource
           Product: Akonadi

I'm not sure if the DAV resource is responsible for this, here goes anyway.
I can reliably reproduce this bug in KDE 4.9.2-3 with the Radicale
CalDAV/CardDAV server.

Under some circumstances, if the Notes field of a contact contains non-ascii
characters (I assume, I'm writing Greek in it), any non-ascii character in the
*whole* contact (not only in the Notes field) will be corrupted.

Reproducible: Always

Steps to Reproduce:
1. Create a new contact under a DAV resource's contacts folder
2. Fill its notes field with the following string:
"αβγδεζηθικλμνξοπρστυφχψωαβγδεζηθικλμνξοπρστυφχψωαβγδεζηθικλμνξοπρστυφχψωα"
(unquoted of course)
3. Save the contact, and wait for it to be transmitted to the CardDAV server
Actual Results:  
The contact is transmitted corrupted to the server and Akonadi is none the
wiser.

Expected Results:  
The contact is transmitted intact to the server.

I've noticed that these contacts when exported from Kaddressbook (or by looking
at .local/share/contacts/) tend to break wide characters between lines. They
are imported correctly however.

I don't think this is server specific, however a "pip install radicale" should
be enough for you to reproduce the bug; the server can be run right after being
downloaded without configuration, and using a URL such as
"http://localhost:5232/myuser/mycontacts.vcf/".

Feel free to ask me for more details.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list