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

Re: [TSVN] Re: Curious behaviour of repo-browser

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-02-12 13:38:06 CET

Stefan Kanarski wrote:
> 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:

Sorry for not answering sooner. If I had, you wouldn't have to answer
yourself again ;)

> 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.

The reason for this is that svn_client_ls() doesn't tell us whether it's
called for a file or a folder! First we had it implemented as you would
think it should be. But then if you started the repobrowser for a file,
that file was shown as a folder! And worse, it wouldn't return an error
if you expanded that folder but instead just list the file inside the
parent folder (i.e. the file itself again). And that way the whole
path/URL shown in the browser was just completely wrong without any
indication that it's not correct.

So the 'solution' to that problem was to always strip the last part of
the path/URL the repobrowser was started with.

> 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.

I think there's an issue in the Subversion issue tracker about this. As
soon as this is solved, I'll change the behaviour of the repobrowser.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
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:38:48 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.