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

Re: Filenames with trailing newlines wreak havoc

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Tue, 26 Mar 2013 16:00:01 +0000

On Tue, Mar 26, 2013 at 02:36:15PM +0100, Stefan Sperling wrote:
> When a file with a trailing newline (ASCII 0x0a) has made its way into
> the repository, there are various areas of the system that exhibit failure
> modes. Failure modes I observed in one particular case are discussed below.

The one thing you didn't explicitly spell out in your mail: the API (svn_fs.h)
considers such filenames valid. That is, the bug is that the various parts of
the system failed to DTRT with those filenames, rather than that they failed to
reject them. (Though, as you say, rejecting them may be the practical answer.)
Received on 2013-03-26 17:00:10 CET

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

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