Modify

Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#2341 closed enhancement (fixed)

Plugin does not support paths when using SVNPath directive

Reported by: anonymous Owned by: 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 (2)

svnauthzadminplugin-show-all-repos.patch (3.5 KB) - added by TimN 7 years ago.
Patch to show all repositories
svnauthzadminplugin-0.11-show-all-repos.patch (3.5 KB) - added by s.federici@… 5 years ago.
Patch for version 0.11, it's the same patch applied to 0.11

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by TimN

Patch to show all repositories

comment:1 follow-up: Changed 7 years ago by TimN

  • Cc TimN added

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 7 years ago 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.

comment:3 Changed 7 years ago 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.

comment:4 Changed 6 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 5 years ago by ThurnerRupert

  • Resolution set to fixed
  • Status changed from new to closed

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

Changed 5 years ago by s.federici@…

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

comment:6 Changed 5 years ago by ThurnerRupert

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.