You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Adolf Schwarz <ad...@gmx.at> on 2006/03/19 14:21:00 UTC

apache2 subversion repository browsing

Hi,

I run an apache2 server that hosts several SVN repositories. SVN works, 
authorization works, Repository Browsing works.

Now I am looking for a way to show a list of all repositories hosted.

I provide the repositories via the "SVNParentPath" directive. 
SVNParentPath points to a directory where all repositories are stored. 
AuthzSVN manages the authorization.

So when I browse to the URL "www.myserver.at/repos/somerepository/" I 
can browse in the repository "somerepository". But when I browse to 
"www.myserver.at/repos/" I get a "403 Forbidden" error (after 
authentication).

Is it possible to list all hosted repositories automatically? Or even 
better only the repositories where the user has access to?

Thanks,
-adi


Here is the complete part of my setup

 > <Location /repos>
 >   DAV svn
 >   SVNParentPath C:\repos
 >     AuthzSVNAccessFile C:\Apache2\conf\svn-access-file
 >
 >   Require valid-user
 >   AuthType Basic
 >   AuthName "Repository Area"
 >   AuthUserFile C:\Apache2\conf\svn-auth-file
 > </Location>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: apache2 subversion repository browsing

Posted by Nico Kadel-Garcia <nk...@comcast.net>.
Adolf Schwarz wrote:
> Hi,
>
> I run an apache2 server that hosts several SVN repositories. SVN
> works, authorization works, Repository Browsing works.
>
> Now I am looking for a way to show a list of all repositories hosted.
>
> I provide the repositories via the "SVNParentPath" directive.
> SVNParentPath points to a directory where all repositories are stored.
> AuthzSVN manages the authorization.
>
> So when I browse to the URL "www.myserver.at/repos/somerepository/" I
> can browse in the repository "somerepository". But when I browse to
> "www.myserver.at/repos/" I get a "403 Forbidden" error (after
> authentication).
>
> Is it possible to list all hosted repositories automatically? Or even
> better only the repositories where the user has access to?

Getting into access models can get..... interesting. But I find the ViewVC 
tool to be very helpful. Formerly called ViewCVS, it's been expanded to 
handle SVN as well. It's at http://viewvc.tigris.org.

The SVN access tool doesn't seem to really have a model of what to do if 
you're looking directly at the ParentPath location of all the Subversion 
locations. You could build something cute to do it, if you like. 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: apache2 subversion repository browsing

Posted by Adolf Schwarz <ad...@gmx.at>.
Hi Frederic,

Frederic Duarte wrote:

> 
> That's a known bug, I've seen it somewhere but I dont really remember where.
> A partial workaround would be :
> Replace
> <Location /repos>
> by
> <Location /repos/>
> and access via
> http://www.myserver.at/repos/
> instead of
> http://www.myserver.at/repos
> That works.

Thanks, now it somehow works, but I still have permission problems.

I have to add
[/]
@<everyone>=r

to the access policies part of the configuration. But then everyone 
would have read access to all repositories, unless I explicitly exclude 
him from every repository he should not have access to. Is it possible 
to make the SVNListParentPath accessible to everyone without giving 
everyone access to all repositories?

Thanks,
-adi

PS: My configuration files:

--- svn-access-file ---

[general]

[groups]
teamone = <members>
teamtwo = <members>

#[/]  #(I would need this to make SVNListParentPath work)
#@teamone = r
#@teamtwo = r

[repos1:/]
@teamone = rw

[repos2:/]
@teamtwo = rw

--- ssl.conf (snipplet) ---

<Location /repos/>
   DAV svn
   SVNParentPath C:\repos
   SVNListParentPath On
   SVNIndexXSLT "/static/svnindex.xsl"

   AuthzSVNAccessFile C:\Apache2\conf\svn-access-file

   Require valid-user

   AuthType Basic
   AuthName "Repository Area"
   AuthUserFile C:\Apache2\conf\svn-auth-file
</Location>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: apache2 subversion repository browsing

Posted by Frederic Duarte <fr...@oneaccess-net.com>.
Adolf Schwarz a écrit :
>
>
> Ryan Schmidt wrote:
> >> So when I browse to the URL "www.myserver.at/repos/somerepository/" I
> >> can browse in the repository "somerepository". But when I browse to
> >> "www.myserver.at/repos/" I get a "403 Forbidden" error (after
> >> authentication).
> >>
> >> Is it possible to list all hosted repositories automatically?
> >
> > Get Subversion 1.3 and add "SVNListParentPath on" to your Location 
> section.
>
> Thanks for the hint, but after upgrading to SVN1.3 (and the two 
> modules of Apache) the Forbidden Error still stays.
>
> It has to do with the access-policies, because when I do not include 
> the svn-access-file, ListParentPath works fine.
>
> In the svn-access-file I just define groups users, and give them 
> access to the repositories, like
>
>   [gusp:/]
>   @svnadmin   = rw
>   @gusp    = rw
>
> How can I give users read access to the parent path?
>
> I tried "auth-access = read" and
>
>   [/]
>   @svnadmin = r
>
> without success.
>
> btw is there some kind of documentation of the apache modules?
>
> Thanks,
> -adi
>
>
> My current configuration file:
>
>> <Location /repos>
>>   DAV svn
>>   SVNParentPath C:\repos
>>   SVNListParentPath On
>>   SVNIndexXSLT "/static/svnindex.xsl"
>>     AuthzSVNAccessFile C:\Apache2\conf\svn-access-file
>>
>>   Require valid-user      AuthType Basic
>>   AuthName "Repository Area"
>>   AuthUserFile C:\Apache2\conf\svn-auth-file
>>
>> </Location>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Hello,

That's a known bug, I've seen it somewhere but I dont really remember where.
A partial workaround would be :
Replace
<Location /repos>
by
<Location /repos/>
and access via
http://www.myserver.at/repos/
instead of
http://www.myserver.at/repos
That works.

rgds
-- 
Frédéric DUARTE
Software generation toolchain & SCM
OneAccess Networks R&D

<http://gconf/wiki>

Re: apache2 subversion repository browsing

Posted by Adolf Schwarz <ad...@gmx.at>.

Ryan Schmidt wrote:
 >> So when I browse to the URL "www.myserver.at/repos/somerepository/" I
 >> can browse in the repository "somerepository". But when I browse to
 >> "www.myserver.at/repos/" I get a "403 Forbidden" error (after
 >> authentication).
 >>
 >> Is it possible to list all hosted repositories automatically?
 >
 > Get Subversion 1.3 and add "SVNListParentPath on" to your Location 
section.

Thanks for the hint, but after upgrading to SVN1.3 (and the two modules 
of Apache) the Forbidden Error still stays.

It has to do with the access-policies, because when I do not include the 
svn-access-file, ListParentPath works fine.

In the svn-access-file I just define groups users, and give them access 
to the repositories, like

   [gusp:/]
   @svnadmin   = rw
   @gusp    = rw

How can I give users read access to the parent path?

I tried "auth-access = read" and

   [/]
   @svnadmin = r

without success.

btw is there some kind of documentation of the apache modules?

Thanks,
-adi


My current configuration file:

> <Location /repos>
>   DAV svn
>   SVNParentPath C:\repos
>   SVNListParentPath On
>   SVNIndexXSLT "/static/svnindex.xsl"
>   
>   AuthzSVNAccessFile C:\Apache2\conf\svn-access-file
> 
>   Require valid-user  
>   
>   AuthType Basic
>   AuthName "Repository Area"
>   AuthUserFile C:\Apache2\conf\svn-auth-file
> 
> </Location>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: apache2 subversion repository browsing

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 19, 2006, at 15:21, Adolf Schwarz wrote:

> Now I am looking for a way to show a list of all repositories hosted.
>
> I provide the repositories via the "SVNParentPath" directive.  
> SVNParentPath points to a directory where all repositories are  
> stored. AuthzSVN manages the authorization.
>
> So when I browse to the URL "www.myserver.at/repos/somerepository/"  
> I can browse in the repository "somerepository". But when I browse  
> to "www.myserver.at/repos/" I get a "403 Forbidden" error (after  
> authentication).
>
> Is it possible to list all hosted repositories automatically?

Get Subversion 1.3 and add "SVNListParentPath on" to your Location  
section.


> Or even better only the repositories where the user has access to?

I don't think that capability is available built-in, no. There are,  
of course, a variety of third-party repository browsing solutions  
available, one of which may have this feature.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org