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

Bug in tortoiseplink.exe if svnserve on the serverside uses a --root?

From: Benjamin Podszun <ben_at_galactic-tales.de>
Date: 2007-07-23 18:26:00 CEST

Hi there.

After spending a lot of time trying to lock down a specific ssh key to a
filesystem root I guess that there's a problem with tortoiseplink.exe.

What I expected:
I wanted to use Tortoise to access a repository on a server of mine,
limited to a root directory both for security reasons and because I'm lazy
and didn't want to type /a/full/path/to/a/repo.

Where I started:
I had a working putty session that defined
- the address
- the username
- the keyfile
for a given name. "Trac", in my case. Looking at
svn+ssh://Trac/home/admin/darklajid/svn/tis/mailroom worked and showed me
the up-to-now empty folders trunk, tags, branches (the repository is shiny
and new).

What failed:
When I chanced the authorized_keys2 from

no-agent-forwarding,no-X11-forwarding,command="/usr/bin/svnserve -t
--tunnel-user=bpodszun" ssh-rsa AAAAB...

to

no-agent-forwarding,no-X11-forwarding,command="/usr/bin/svnserve -r
/home/admin/darklajid/svn/tis -t --tunnel-user=bpodszun" ssh-rsa AAAAB...

I couldn't browse svn+ssh://Trac/mailroom with the Repo-Browser:
Error * No repository found in 'svn+ssh://Trac/mailroom'

What I tried:

After asking for help in irc://irc.freenode.org/#svn I started cygwin and
tried lots of combinations with the commandline client.

Working SVN_SSH wrapper scripts:

ssh -i keyfile -l username $* <-- Cygwin SSH
path/to/plink -i keyfile -l username $* <-- Plink
path/to/plink -load $* <-- PLink w/ session definition

I couldn't get it to work with tortoise, though. I tried SVN_SSH wrapper
as:

path/to/tortoiseplink -i keyfile -l username $*
path/to/tortoiseplink -load $*

My conclusion:

Since the repository is accessible from the commandline and from your GUI
as long as the key is not restricted to a svnserve --root I doubt that
it's a configuration problem. I can access the repository just fine even
with that option set (using the wrapper above), so there's no problem with
my setup of the server, the putty session, the permissions etc.
I therefor blame the tortoisesvn version of plink and guess I discovered a
bug?

The software versions used:

SVN on the Client:

TortoiseSVN 1.4.4 Build 9706 - 32 Bit, according to the "Check for
updates" the latest version right now.

$ svn --version
svn, version 1.4.3 (r23084)
    compiled Apr 7 2007, 00:02:24

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
   - handles 'http' scheme
   - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network
protocol.
   - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
   - handles 'file' scheme

SVN on the Server:

$ svn --version
svn, version 1.4.4 (r25188)
    compiled Jul 18 2007, 16:23:54

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
   - handles 'http' scheme
   - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network
protocol.
   - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
   - handles 'file' scheme

Please tell me if there's a problem with your version of plink or if I'm
missing something obvious. I'm currently not subscribed to this list, so
it would be nice if you could CC me on any answer.

Thanks for this nice software and in advance for your time and answer,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Jul 23 18:32:42 2007

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

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