subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Schöning <>
Subject Re: SVNListParentPath without path based authz checks?
Date Thu, 13 Aug 2015 10:30:45 GMT
Guten Tag Daniel Shahaf,
am Mittwoch, 12. August 2015 um 00:33 schrieben Sie:

> SVNListParentPath used to list all repositories, but not too long ago
> that was changed to only list repositories that the authenticated user
> has access to.  (I can't find the commit that made the change, and
> I don't recall whether the required access is "r access to the root of
> that repository" or "r access to at least one path in that repository".)

For the docs: Regarding my tests it's "r access to the root of that
repository" and therefore doesn't work very well with my intended
setup to allow all "the world" to see the list of repos, because for
that to work, "*" would need to be granted read access at the root
level, which would get inherited and need to be revoked for subdirs
until one adds a new subdir and forgets to revoke...

> I'm not sure how to achieve what you want with mod_dav_svn 1.9.0.
> Perhaps there's an httpd.conf trick you could use?  You'll want to have
> the authz check return TRUE when the original request is for the
> SVNListParentPath dir, and FALSE when the original request is attempting
> to access the repository root or anything within the repository.

I tried that using a PerlAuthzHandler, but 1. it needs authentication
first, whereas I thought of letting everyone see the list, and 2. and
more problematic I can't get it to forward the authz handling to
mod_dav_svn for every request which is not only listing the repos. I
can distinct both simply using the requested URL and can allow access
for the listing itself, but returning DECLINED to forward to other
handlers doesn't seem to have any effect. I guess because mod_dav_svn
simply is not part of mod_perl handlers[2].

Looks like I need to present the list of repos some other way if
really needed.


Mit freundlichen Grüßen,

Thorsten Schöning

Thorsten Schöning       E-Mail:
AM-SoFT IT-Systeme

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

View raw message