Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2235 closed defect (worksforme)

Source browser doesn't work correctly with SVN authz files.

Reported by: kad@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9b2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Version 0.9b2 of Trac doesn't understand well path entries in authz files if they are written in format "[repo:/path]".

Example: project.authz file:

[project:/]
user = rw

Access via source browser:

http://host.homeip.net/project/browser/trunk

Permission Denied

Insufficient permissions to access /trunk/

access trough mod_dav_svn works fine:

[user@host ~]$ svn ls http://host.homeip.net/svn/project/trunk/
README

Attachments (0)

Change History (2)

comment:1 by Matthew Good, 19 years ago

Resolution: worksforme
Status: newclosed

When you use the authz settings in the form [module:/path] make sure that you've set authz_module_name in your trac.ini file. See FineGrainedPermissions for more information on configuring the authz settings.

comment:2 by kad@…, 19 years ago

Thanks. I didn't mention this.

BTW, maybe it would be more logical if this option not set, try to guess it by

module_name = env.config.get('trac','authz_module_name','')
if not module_name:
  module_name = os.path.basename(env.config.get('trac','repository_dir'))

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.