William Hubbs <[email protected]> writes: > On Mon, Sep 02, 2013 at 09:41:28PM +0200, Michał Górny wrote:
>> That is a bug in pybugz and not an argument, you know. > > I said "things like pybugz". > > Bugzilla allowing control characters in the xml is the issue. The python > xmlrpc library raises an exception for malformed xml because of it, so > there isn't much pybugz, or anything that uses that library, can do > about it. Right. The bug is in bugzilla itself, not pybugz. I did some research. Escape and all of the other non-whitespace ASCII control characters are illegal in XML. It is also not valid to escape them with entities, like . However, Bugzilla's XML-RPC interface sends them anyway. This is only a problem for build logs included inline in bug comments. Attached logs are fine, with or without the color codes. Maybe the codes could be stripped by pybugz before processing the XML? -- Chris
