#2341 closed enhancement (fixed)
Plugin does not support paths when using SVNPath directive
Reported by: | anonymous | Owned by: | Kis Gergely |
---|---|---|---|
Priority: | normal | Component: | SvnAuthzAdminPlugin |
Severity: | normal | Keywords: | |
Cc: | Tim Niemueller | Trac Release: | 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 admin = rw [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
Attachments (2)
Change History (8)
Changed 17 years ago by
Attachment: | svnauthzadminplugin-show-all-repos.patch added |
---|
comment:1 follow-up: 2 Changed 17 years ago by
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 Changed 17 years ago by
Replying to TimN:
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 17 years ago by
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 A svnauthzadminplugin/0.10 [...] Ausgecheckt, Revision 3052. # cd svnauthzadminplugin/ # patch -p0 < ../svnauthzadminplugin-show-all-repos.patch patching file 0.10/svnauthz/admin_ui.py
Then build the plugin, install it an restart your Apache (if you use Apache) to reload the plugin.
comment:4 Changed 16 years ago by
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 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [5403]) SvnAuthzAdminPlugin, allow to edit all repositories by setting a config-option. fix #2341 with attached patch.
Changed 16 years ago by
Attachment: | svnauthzadminplugin-0.11-show-all-repos.patch added |
---|
Patch for version 0.11, it's the same patch applied to 0.11
Patch to show all repositories