Modify

Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#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)

svnauthzadminplugin-show-all-repos.patch (3.5 KB) - added by Tim Niemueller 17 years ago.
Patch to show all repositories
svnauthzadminplugin-0.11-show-all-repos.patch (3.5 KB) - added by s.federici@… 16 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 17 years ago by Tim Niemueller

Patch to show all repositories

comment:1 Changed 17 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 17 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 17 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
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 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 16 years ago by rupert thurner

Resolution: fixed
Status: newclosed

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

Changed 16 years ago by s.federici@…

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

comment:6 Changed 15 years ago by rupert thurner

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Kis Gergely.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.