[SyncEvolution] Broken UTF-8 item passed to backend (was Explicit type 'text/x-vcalendar' specified in command or item meta)
deloptes
deloptes at gmail.com
Tue Sep 13 23:41:49 UTC 2016
Hi,
I added a line to dump the incoming item/payload in the backend. I couldn't
see what was sent when using SYNCEVOLUTION_DEBUG=4.
TrackingSyncSource::InsertItemResult TDEPIMCalendarSource::insertItem(const
std::string &luid, const std::string &item, bool raw)
{
SE_LOG_DEBUG(getDisplayName(), "Item payload: ( %s )", item.data() );
It looks like the item is already broken, when passed to the backend[1].
I fixed similar issue related to vcal v1 in TDE/libkcal in the vcc.y/cpp
file[2] today, while trying to reproduce and looking into the v1 parser.
This here looks very very similar to what I fixed, so how is the converter
in the engine handling the v1 quoted printable with charset: utf-8. It
looks like the versit parser does not honor white space in the beginning of
the line for the quoted-printable encoding [3].
The test text says: "This is a test for a very long summary in Cyrillic 2"
and it should look like this: "Това е тест за много дълго заглавие на
кирилица 2"
Help is highly appreciated.
Should I file a bug somewhere, let me know and thanks in advance again.
Thank you in advance
regards
[1]
[2016-09-14 00:50:08.326] Executing Script 'beforewritescript'
[2016-09-14 00:50:08.326] calendar: updating "Това е тест за �=
�ного дълго за=
главие на кир�=
�лица 2"
[2016-09-14 00:50:08.326] calendar: Item payload: ( BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Synthesis AG//NONSGML SyncML Engine V3.4.0.47//EN
BEGIN:VEVENT
LAST-MODIFIED:20160913T225045Z
DTSTAMP:20160914T005008Z
CREATED:20160913T212613Z
UID:libkcal-442883373.612
SEQUENCE:7
CLASS:PUBLIC
TRANSP:OPAQUE
PRIORITY:0
SUMMARY:Това е тест за �=\n�ного дълго за=\nглавие на кир�=\n�лица 2
DTSTART:20160914T103000Z
DTEND:20160914T104500Z
END:VEVENT
END:VCALENDAR
)
[2016-09-14 00:50:08.326] calendar: Item deleted for merge: (
libkcal-442883373.612 )
[2016-09-14 00:50:08.606] calendar: Item saved: ( libkcal-442883373.612 )
[2016-09-14 00:50:08.606] calendar: Item ( libkcal-442883373.612 :
20160913T225045Z ) done.
[2016-09-14 00:50:08.606] calendar: aID=(libkcal-442883373.612,) res=0
[2] https://bugs.trinitydesktop.org/show_bug.cgi?id=2688
[3] https://www.scribd.com/document/31243097/vCalendar-V1-0-Specifications
_______________________________________________
SyncEvolution mailing list
SyncEvolution at syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution
More information about the SyncEvolution
mailing list