Hello Thomas!

Some of SyncEvolution's test cases include characters that are special
in HTML, including ampersand and HTML entities. HTML entities are not
(or no longer?) handled correctly by Memotoo.

The entities are sent like this:
<Data><![CDATA[BEGIN:VCARD
VERSION:2.1
REV:20110711T140323Z
N:xml;entities;;;
FN:xml entities
X-EVOLUTION-FILE-AS:xml, entities
X-GENDER:
NICKNAME:user12
TITLE:
ORG:;;;
ROLE:
TEL:
EMAIL:
URL:
X-MOZILLA-HTML:
ADR:;;;;;;
BDAY:
NOTE:ampersand entity &amp; less-than entity &lt;
PHOTO:
END:VCARD
]]></Data>

[XML dump - the actual message was WBXML, where CDATA is not necessary]

http://runtests.syncevolution.org/2011-07-11-21-30_all/head-lucid-amd64/17-memotoo/Client_Sync_eds_contact_testItems.send.client.A/syncevolution-log_trm002_003_outgoing.xml

This contact comes back as:

<Data><![CDATA[BEGIN:VCARD
VERSION:3.0
REV:20110711T140330Z
N:xml;entities;;;
FN:xml entities
NICKNAME:user12
NOTE:ampersand entity & less-than entity <
END:VCARD
]]></Data>

http://runtests.syncevolution.org/2011-07-11-21-30_all/head-lucid-amd64/17-memotoo/Client_Sync_eds_contact_testItems.refresh.client.B/syncevolution-log_trm003_006_incoming.xml

Note that the HTML entities were replaced with the corresponding
characters, which is not the same.

I'm going to disable this test case for Memotoo. But you might want to
look into this and fix it.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.


_______________________________________________
SyncEvolution mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution

Reply via email to