[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Fwd: [bug] "svn log" can output invalid XML]

From: Antoine Pitrou <solipsis_at_pitrou.net>
Date: 2007-08-08 13:05:03 CEST

Can someone confirm this is a bug so I can enter it in the issue
tracker ?

-------- Message transféré --------
De: Antoine Pitrou <solipsis@pitrou.net>
À: dev@subversion.tigris.org
Sujet: [bug] "svn log" can output invalid XML
Date: Mon, 06 Aug 2007 14:55:48 +0200


I've found that SVN can output some invalid XML with the log command. It
happens when e.g. a commit message contains control characters. Those
control characters are valid UTF-8 but are not allowed by the XML spec
(XML only allows control characters 0x9, 0xA and 0xD : see
http://www.w3.org/TR/REC-xml/#charsets ).

This is a concrete example from an existing repository:

svn log --xml -r 1722 svn://exaile.org/usr/local/svn/exaile/trunk | xmllint -

The only solution I can think of is to completely strip those control
characters when an XML output is desired.



To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 8 13:03:22 2007

This is an archived mail posted to the Subversion Dev mailing list.