Ticket #2341 (closed enhancement: fixed)

Opened 2 years ago

Last modified 7 months ago

Plugin does not support paths when using SVNPath directive

Reported by: anonymous Assigned to: kisg
Priority: normal Component: SvnAuthzAdminPlugin
Severity: normal Keywords:
Cc: TimN 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

svnauthzadminplugin-show-all-repos.patch (3.5 kB) - added by TimN on 01/09/08 19:15:57.
Patch to show all repositories
svnauthzadminplugin-0.11-show-all-repos.patch (3.5 kB) - added by s.federici@gmail.com on 04/14/09 16:51:26.
Patch for version 0.11, it's the same patch applied to 0.11

Change History

01/09/08 19:15:57 changed by TimN

  • attachment svnauthzadminplugin-show-all-repos.patch added.

Patch to show all repositories

(follow-up: ↓ 2 ) 01/09/08 19:18:59 changed by TimN

  • cc set 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

(in reply to: ↑ 1 ) 01/14/08 11:18:25 changed by anonymous

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.

01/14/08 11:30:25 changed by TimN

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.

01/14/09 21:24:49 changed by brandons@geonautics.com

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.

03/25/09 22:51:22 changed by ThurnerRupert

  • status changed from new to closed.
  • resolution set to fixed.

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

04/14/09 16:51:26 changed by s.federici@gmail.com

  • attachment svnauthzadminplugin-0.11-show-all-repos.patch added.

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

08/07/09 13:24:49 changed by ThurnerRupert

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


Add/Change #2341 (Plugin does not support paths when using SVNPath directive)




Change Properties
Action