Opened 15 years ago

Closed 13 years ago

# Plugin does not support paths when using SVNPath directive

Reported by: Owned by: anonymous Kis Gergely normal SvnAuthzAdminPlugin normal Tim Niemueller 0.10

### Description

My access file controls several svn projects. To set this functionality, one uses the :/ syntax. For example:

[project1:/]
@devel = rw
@others = r

[project2:/]
@devel = r
@others = r

[project2:/branches]
@devel=rw


I then have two separate trac sites to correspond to the separate trac projects.

When I use this method, I cannot see any of the paths with the SvnAuthzAdminPlugin. I tried setting authz_module_name hoping that it would let me control this, but it doesn't work - it seems more fundamental to the parser.

The method used to control multiple repositories and paths with a single svn access file used above is described here:

## ​http://svnbook.red-bean.com/en/1.4/svn.serverconfig.pathbasedauthz.html

### Changed 14 years ago by Tim Niemueller

Patch to show all repositories

### comment:1 follow-up:  2 Changed 14 years ago by Tim Niemueller

Cc: Tim Niemueller added; anonymous removed

The just added patch allows for showing and editing all repository paths in the authz file.

It defaults to the current mode and thus is fully backward compatible. To see all repositories you have to add the following to your trac config (conf/trac.ini):

[svnauthzadmin]
show_all_repos = true


### comment:2 in reply to:  1 Changed 14 years ago by anonymous

The just added patch allows for showing and editing all repository paths in the authz file.

It defaults to the current mode and thus is fully backward compatible. To see all repositories you have to add the following to your trac config (conf/trac.ini):

[svnauthzadmin]
show_all_repos = true


I had difficulties to use the patch. Can you check your patch against the actual version available on the SVN. Thanks for your contribution.

### comment:3 Changed 14 years ago by Tim Niemueller

The patch has been created from current trunk using svn diff. I can apply it cleanly likes this:

# svn co http://trac-hacks.org/svn/svnauthzadminplugin
[...]
Ausgecheckt, Revision 3052.
# patch -p0 < ../svnauthzadminplugin-show-all-repos.patch


Then build the plugin, install it an restart your Apache (if you use Apache) to reload the plugin.

### comment:4 Changed 13 years ago by brandons@…

The patch works well. What would be good when it does get implemented is only show the current repo. EG. if i was the admin for project2 i couldn't edit (see) permissions for project1.

### comment:5 Changed 13 years ago by rupert thurner

Resolution: → fixed new → closed

(In [5403]) SvnAuthzAdminPlugin, allow to edit all repositories by setting a config-option. fix #2341 with attached patch.

### Changed 13 years ago by s.federici@…

Patch for version 0.11, it's the same patch applied to 0.11

### comment:6 Changed 13 years ago by rupert thurner

(In [6342]) allow multiple repository editing also for 0.11 see #2341, fix #4856

### Modify Ticket

Change Properties