View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002205 | SOGo | Backend Address Book | public | 2013-01-29 18:14 | 2016-12-09 20:02 |
Reporter | tfl | Assigned To | ludovic | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Product Version | 2.0.4 | ||||
Summary | 0002205: special chars in vcards are html encoded with html entities &#xxx; | ||||
Description | If I read using curl or wget a vcard and the card contains special chars somewhere (for instance german umlauts) the data will be encoded using html entities &#xxx; This is bad behavior because the semicolon is defined as part of the vcard specification. This makes it really hard to parse. Why not just return plain UTF-8 like the answer from the (even your own) server indicates: | ||||
Tags | No tags attached. | ||||
I can't reproduce this bug. How have you created/modified your card? From the Web interface or a fat client? |
|
I did nothing with the card(s) whatsoever. I'm writing a program to search and display contacts for the mutt mail client. To this I use libcurl. Using curl one can get the data from a carddav service like this: <?xml version="1.0" encoding="utf-8" ?> Now lets curl for the cards containing your QUERY-TERM in FN and/or EMAIL: If a records contains a german umlaut (ä for instance) it will become &#<NUMBER>; - i.e. FN:Max;Musterm&#<NUMBER>;nn Both my ARCH-linux system and libcurl are up-to-date. I use de_DE.UTF-8 as locale. |
|
Ahh I see - I can't enter html entities... I will make a screen shot
|
|
2013-01-30 22:01
|
|
another question came to my mind: why is the server answering twice? first) a vcard within <C:address-data> see screenshot. |
|
From the web interface, show us the raw source of the problematic vcard (select "Show raw source" from the contextual menu). |
|
the source is valid: BEGIN:VCARD |
|
RFC6352 says: Note: The address data embedded within the CARDDAV:address-data XML SOGo returns the data following the XML data encoding rules. If we decide or not to encode entities, it doesn't matter - it just takes a bit more bytes at the end. On the other end, a CardDAV client MUST decode (following the XML data de/encoding rules) the received address-data BEFORE parsing it as a vCard object. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-01-29 18:14 | tfl | New Issue | |
2013-01-30 14:09 | francis | Note Added: 0005277 | |
2013-01-30 14:46 | tfl | Note Added: 0005281 | |
2013-01-30 14:48 | tfl | Note Added: 0005282 | |
2013-01-30 14:48 | tfl | Note Edited: 0005281 | |
2013-01-30 14:49 | tfl | Note Edited: 0005281 | |
2013-01-30 14:50 | tfl | Note Edited: 0005281 | |
2013-01-30 14:50 | tfl | Note Edited: 0005282 | |
2013-01-30 14:52 | tfl | Note Edited: 0005281 | |
2013-01-30 22:01 | tfl | File Added: vcard.png | |
2013-01-30 22:05 | tfl | Note Added: 0005289 | |
2013-01-30 22:06 | tfl | Note Edited: 0005289 | |
2013-01-30 22:06 | tfl | Note Edited: 0005282 | |
2013-01-31 16:59 | francis | Note Added: 0005296 | |
2013-01-31 17:05 | tfl | Note Added: 0005297 | |
2016-12-09 16:20 | ludovic | Assigned To | => ludovic |
2016-12-09 16:20 | ludovic | Status | new => assigned |
2016-12-09 20:02 | ludovic | Note Added: 0010979 | |
2016-12-09 20:02 | ludovic | Status | assigned => closed |
2016-12-09 20:02 | ludovic | Resolution | open => won't fix |