Bug 46045

Summary: Failed to parse logs with binary (invalid xmlChar)
Product: Telepathy Reporter: Laurent Bigonville <bigon>
Component: loggerAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED DUPLICATE QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: high CC: nicolas
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Laurent Bigonville 2012-02-14 06:59:15 UTC
Hi,

Yesterday I've been able to inject binary into the log of one of my conversation and this morning I saw that I cannot get the backlog.


The logs show me that:

/home/bigon/.local/share/TpLogger/logs/gabble_jabber_bigon_40foo_2ebe0/my@contact/20120213.log:202: parser error : xmlParseCharRef: invalid xmlChar value 1
 message-token='0395044b-cf55-4bb0-906e-5c0d128ae778'>retourne 10.0.100.18 &#x1;
                                                                               ^
/home/bigon/.local/share/TpLogger/logs/gabble_jabber_bigon_40foo_2ebe0/my@contact/20120213.log:202: parser error : xmlParseCharRef: invalid xmlChar value 2
age-token='0395044b-cf55-4bb0-906e-5c0d128ae778'>retourne 10.0.100.18 &#x1;&#x2;
                                                                               ^
/home/bigon/.local/share/TpLogger/logs/gabble_jabber_bigon_40foo_2ebe0/my@contact/20120213.log:202: parser error : xmlParseCharRef: invalid xmlChar value 2
4b-cf55-4bb0-906e-5c0d128ae778'>retourne 10.0.100.18 &#x1;&#x2;__MSBROWSE__&#x2;
                                                                               ^

(gnome-shell:2170): tp-logger-WARNING **: Failed to parse file:'/home/bigon/.local/share/TpLogger/logs/gabble_jabber_bigon_40foo_2ebe0/my@contact/20120213.log'
Comment 1 Cosimo Alfarano 2012-04-27 10:12:15 UTC
being a binary file, g_markup_escape is escaping verbatim the file, but some escaped chars are not valid XML.

THis is the same problem as bug#40675, moving the discussion there.

*** This bug has been marked as a duplicate of bug 40675 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.