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

Re: svn diff produces invalid XML if path contains bell character

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 19 May 2015 17:54:26 +0200

On Tue, Apr 28, 2015 at 03:12:51PM +0200, Brian Preuß wrote:
> Hi there,
>
> it seems that svn diff produces invalid XML if a path contains a bell
> characters. Since this character is not allowed in XML it should be
> escaped. It seems that svn diff does not to this. Is there an existing
> bug for this problem?
>
> Regards,
>
> Brian Preuß

Hi Brian,

Control characters in pathnames are not actually supported.

For a long time the server didn't enforce this, though, only the SVN client did.
Since server-side enforcement was lacking it was possible to add such paths with
alternative client implenentations such as SVNKit (used in the Eclipse IDE).

Current 1.8.x servers will not accept new paths containing newline characters.
See http://subversion.tigris.org/issues/show_bug.cgi?id=4340 for why.

1.9 and later servers will take this a step further and start refusing
commits which add paths containing any control character, just like
svn clients have been refusing for a long time (since 1.0 I believe):

$ touch `printf 'bb\aell'`
$ svn add bb^Gell
svn: E160005: Invalid control character '0x07' in path '/tmp/svn-sandbox/trunk/bb\007el
Received on 2015-05-19 17:55:29 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.