subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Quinot <qui...@adacore.com>
Subject [PATCH] Virtual host mode with user name in URL
Date Wed, 14 Feb 2018 09:46:57 GMT
Bug reproduced on Debian GNU/Linux 9 with trunk version as of
revision 1824204, building with default options.

When operating svnserve in virtual host mode (--virtual-host),
any attempt to access a repository through a URL that includes
a user name will fail:

$ mkdir -p /tmp/repos/localhost
$ svnadmin create /tmp/repos/localhost/Dev
$ svnserve -r /tmp/repos -d --virtual-host
$ svn ls svn://localhost/Dev
<works, returning empty result>
$ svn ls svn://foo@localhost/Dev
svn: E170013: Unable to connect to a repository at URL 'svn://foo@localhost/Dev'
svn: E210005: No repository found in 'svn://foo@localhost/Dev'

The reason for this is that svnserve will in this case include
the user name in the repository path, which can be shown
as follows:

$ ln -s localhost /tmp/repos/foo@localhost
$ svn ls svn://foo@localhost/Dev
<now works>
$ svn ls svn://bar@localhost/Dev
svn: E170013: Unable to connect to a repository at URL 'svn://bar@localhost/Dev'
svn: E210005: No repository found in 'svn://bar@localhost/Dev'

A simple fix is attached.

-- 
Thomas Quinot, Ph.D. ** quinot@adacore.com ** IT Lead Engineer
               AdaCore -- Paris, France -- New York, USA

Mime
View raw message