Project

General

Profile

Administrator does not get access to the svn repository if he is not added to the project as member

Added by Tiemo Vorschuetz over 14 years ago

Hi all,

An Administrator does not get access to the svn repository through tortoise if he is not added to the project as member. From inside redmine the porject is listed and the repository is visible.

Expected behavior is that an administrator has access to each project even if the admin is not added as member.

Regards,
Tiemo


Replies (4)

RE: Administrator does not get access to the svn repository if he is not added to the project as member - Added by Felix Schäfer over 14 years ago

Redmine doesn't serve svn by itself, so you will have to be more clear about what your setup is and/or what component you use. Furthermore, the Admin has access to most redmine functions (but can't for example break worklflows) is intended for maintenance purposes in Redmine, that doesn't include VCS access.

If you still feel this is a defect, please open a ticket in the issue tracker, thanks.

RE: Administrator does not get access to the svn repository if he is not added to the project as member - Added by Tiemo Vorschuetz over 14 years ago

Felix,

I setup apache to manage the access to the svn url's through the redmine authentication provider as described inside the documenation:

PerlLoadModule Apache::Authn::Redmine
<Location /svn>
DAV svn
SVNParentPath "/var/svn"
AuthType Basic
AuthName redmine
Require valid-user
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
  1. for mysql
    RedmineDSN "DBI:mysql:database=databasename;host=my.db.server"
  2. for postgres
  1. RedmineDSN "DBI:Pg:dbname=databasename;host=my.db.server"
RedmineDbUser "redmine"
RedmineDbPass "password"
  1. Optional where clause (fulltext search would be slow and
  2. database dependant).
  1. RedmineDbWhereClause "and members.role_id IN (1,2)"
    1. Optional credentials cache size
  2. RedmineCacheCredsMax 50
    </Location>

This Redime authentificaton provider does not recognize an administrator as a valid project member. From my-point-of-view it should grant access also to administrators even if they are not added as a project member.

Before I open a ticket for that I would like to know if this is a defect or can be workarounded in a different way.

Thanks
Tiemo

RE: Administrator does not get access to the svn repository if he is not added to the project as member - Added by Felix Schäfer over 14 years ago

Tiemo Vorschuetz wrote:

This Redime authentificaton provider does not recognize an administrator as a valid project member. From my-point-of-view it should grant access also to administrators even if they are not added as a project member.

Before I open a ticket for that I would like to know if this is a defect or can be workarounded in a different way.

I can't think of any workaround that would be either not backed by redmine data and static in nature or that wouldn't require patching Redmine.pm. Again, Admin access should be for maintenance only and you should add people that should be in a project to that project, but feel free to open an issue and we will review it.

RE: Administrator does not get access to the svn repository if he is not added to the project as member - Added by Tiemo Vorschuetz over 14 years ago

I found a workaround patching redmine.pm:

..
WHERE
((projects.id=members.project_id
AND member_roles.member_id=members.id
AND users.id=members.user_id
AND roles.id=member_roles.role_id)
OR (users.admin=1))
AND users.status=1
AND login=?
AND identifier=? ";
..

In my situation a group of project admins should use redmine to manage their svn repositories on their own. At the same time all redmine admins should have free access to their svn repositories. That is our use case.

Thanks
Tiemo

    (1-4/4)