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

[TSVN] Re: Curious behaviour of repo-browser

From: Stefan Kanarski <tortoisesvn_at_kanarski.de>
Date: 2005-02-12 13:24:08 CET

Dear TortoiseSVN team,

OK, now I'am answering the second time to myself :-) but I think I realized
the real cause for the authentication problem:

When starting to open the Repo-Browser with right clicking a file, TortoiseSVN
cuts away the last part of the path. So when trying to open the root of a
repository (for example https://SUBVERSIONPC/svn/repositoryX) TortoiseSVN
tries to access the server one level higher (https://SUBVERSIONPC/svn) which
isn't allowed by Apache since svn is only a kind of virtual directory outside
the repository. Hence the access denied message.

You can even try this with a local repository:

  1. Create a repository (for example in C:\Repos\Repo1) or use an
     existing one

  2. Right click on any file (not folder) on the computer and select
     Repo-Browser from the TortoiseSVN submenu

  3. Enter the root URL of the local repository (file:///C:/Repos/Repo1)
     in the URL dialog

  4. Try to open the collapsed folder (Repos) in the repository browser
     and you get the message "Error * Unable to open an ra_local session
     to URL Unable to open repository 'file:///C:/Repos'" because you
     are one level too high

It's easiest to reproduce it starting with an unversioned file but also
happens with a versioned file when entering a new repository root URL
in the repository browser window afterwards (seems to be a flag in the
repository browser).

Maybe inside TortoiseSVN the decision if the last part of the path should be
cut shouldn't be based on the right clicked element but on the entered URL.
I just found out it's OK when you append a trailing slash to the URL.

It's not really serious. One only have to know to start with a folder or
append a slash.

Best regards
Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Feb 12 13:31:37 2005

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.