[Bug 40675] Create an unparsable file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 1 19:35:53 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=40675

--- Comment #6 from Cosimo Alfarano <cosimo.alfarano at collabora.co.uk> 2012-05-01 10:35:53 PDT ---
For the records, the ranges of valid chars:
http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char

Currently the entire file reading fails, so AIUI no backlogs are shown in
empathy, which is probably the most annoying part.


A solution would be copy g_markup_escape_text() from glib locally and modify it
in order to not allow invalid chars into the XML.
This would fix new events storing, but not the ones already logged -which is a
bit silly - and also it would alter the original data - which is not ideal.

This solution is quite quick to implement, but has side effects and does not
fix what has been already sent to the store.

Another solution would be leave the xml writing to g_markup and actually use it
for parsing logs too, dropping libxml2.

We should be able to identify the bad <message/> element(s) and feed, excluding
it/them, or doing something (ignoring?) with the invalid chars in that element.
This is something, along with basic log parsing, that I think g_markup parser
can do alone.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list