[jira] [Created] (SVN-4919) Running svn with --xml may emit XML with invalid characters
Branko Čibej (Jira) <[email protected]> Tue, 20 May 2025 18:06:00 +0000 (UTC)
| Newsgroups | gmane.comp.version-control.subversion.issues |
|---|---|
| Message-ID | <[email protected]> |
Branko =C4=8Cibej created SVN-4919:
---------------------------------
Summary: Running svn with --xml may emit XML with invalid char=
acters
Key: SVN-4919
URL: https://issues.apache.org/jira/browse/SVN-4919
Project: Subversion
Issue Type: Bug
Components: cmdline client
Affects Versions: all
Reporter: Branko =C4=8Cibej
This is demonstrated by {{prop_tests.py/xml_unsafe_author2()}}, where we ha=
ve an author name that contains a {{\b}} backspace control character. {{svn=
list --xml}} emits that author name, making the output invalid.
We should consider extending the client's XML schema so that it can encode =
such strings in an XML-safe manner, by adding an "encoding" attribute to th=
e containing element. The encoding could be base-64, which is suitable for =
parsing, or quoted-printable, which is also suitable for human readers.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)