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

Re: Found a bug with relative file:// urls

From: Branko Čibej <brane_at_wandisco.com>
Date: Sun, 29 Sep 2013 14:59:25 +0200

On 29.09.2013 14:24, Sjon Hortensius wrote:
> Hi,
>
> pretty sure this is unwanted behaviour:
>
> # svn ls file://./
> svn: E235000: In file 'subversion/libsvn_subr/dirent_uri.c' line 2304:
> assertion failed (svn_uri_is_canonical(url, pool))
> Aborted (core dumped)
>
> The path contains a repository and the absolute path works fine. Any
> relative path seems to trigger this.

You're misinterpreting this slightly: the "." is not a path, it's the
host name. The path begins with the third slash, and there is no such
thing as relative paths in file:// URLs.

But yes, this is a known bug, see this thread, for example:

http://svn.haxx.se/dev/archive-2013-08/0355.shtml

There's a partial fix on trunk (http://svn.apache.org/r1516806), and
nominated for backport to 1.8.

-- Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-09-29 15:00:01 CEST

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