JonB wrote:
> Thanks again
>
> On Dec 3, 7:06 pm, Stefan Kueng <tortoise..._at_gmail.com> wrote:
>> JonB wrote:
>>> Thanks for the quick reply, sorry that wasn't clear - I should know
>>> better :-( Apologies again I got the close quote in the wrong place
>>> the thread to google for is titled "Tortoisesvn 1.5.1 Checkout broken"
>>> - tryhttp://svn.haxx.se/tsvnusers/archive-2008-07/0809.shtmlfor a
>>> view of the thread, this might have made it a little clearer!
>>> As per the web instructions I linked to I set up a new tunnel config
>>> for svn by adding the following line under the [tunnels] section in
>>> the config file ( for me C:\Documents and Settings\Jonathan Booth
>>> \Application Data\Subversion\config ):
>>> ### Section for configuring tunnel agents.
>>> [tunnels]
>>> ssh_user = "C:/Program Files/TortoiseSVN/bin/TortoisePlink.exe" -
>>> noagent -i "C:/Documents and Settings/Jonathan Booth/My Documents/Keys/
>>> hm-ssh-svn.ppk"
>> ssh_user
>> as a tunnel is not allowed. That would translate to urls in the form of:
>> svn+ssh_user://
>> which is a violation of rfc1738 (http://www.ietf.org/rfc/rfc1738.txt):
>> "Scheme names consist of a sequence of characters. The lower case
>> letters "a"--"z", digits, and the characters plus ("+"), period ("."),
>> and hyphen ("-") are allowed."
>>
>> As you can see, the _ char is not allowed in a scheme name.
>>
>> But I'll check the code whether your 'url' is not recognized because of
>> the _ char (which would be correct) or because of a bug in TSVN/svn.
>>
>
> I've checked and making the tunnel be called ssh-user instead works
> fine for both the repository browser and checking out - thanks! Any
> chance of a better error message as 'can't check path' followed by an
> invalid filename error doesn't really fit the bill for an illegal
> character in the schema name!
You're right, the error message isn't really helpful here. But the error
is thrown by the svn library - nothing we can do about that in TSVN.
>>> FYI: if however I make the config file read:
>>> ### Section for configuring tunnel agents.
>>> [tunnels]
>>> ssh = "C:/Program Files/TortoiseSVN/bin/TortoisePlink.exe" -C -noagent
>>> -i "C:/Documents and Settings/Jonathan Booth/My Documents/Keys/hm-ssh-
>>> svn.ppk"
>> Then please, use that.
>> Do not introduce custom schemes for no apparent reason.
>
> Well except it didn't work with the repository browser in the first
> place because TortoisePlink kept asking for the password despite being
> given a key and so I assumed I couldn't override the default. It
> turns out that it does work for checkouts though.
>
> I do have a reason for introducing the custom scheme - if you'd
> checked the website I originally pointed you at you might have spotted
> it - and also that I was creating a "ssh_user" tunnel. The reason for
> introducing the custom scheme is that there is only one user granted
> ssh access to a Host Monster account. So I am using ssh's
> authorized_keys file to setup different keys to tunnel to svnserve for
> different user names. This way I can also give others access to my
> svn server without giving them root access to my Host Monster
> account. So doing things this way means I can have different local
> copies of the repository on the same machine and each will be able to
> use a different tunnel and so use svn with a different user name.
> This makes it easy for me to track which changes come from where. It
> also means that anyone can also use svn+ssh to access other subversion
> repositories without trying to authenticate with the key given for my
> tunnel. If there is a better way to do this please do let me know or
> point me at a resource that will explain it!
You seem to have a good reason for introducing a custom scheme. I just
meant that if you don't have a good reason you should not do it. Since
you have a good reason, you're free to indroduce such schemes (but of
course, you have to use one that doesn't violate the RFC for urls).
Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=979022
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2008-12-03 19:37:58 CET