Redmine Repository Controls

Added by transit dk about 9 years ago

Hello all,

I had a need to setup fine grained repository access controls like using a SVNAuthz file, but wanted something that was integrated into Redmine. So I created the Redmine Repository Controls plugin.

http://code.google.com/p/redminerepositorycontrol/

Please check the project's page for more information on how it works, and how to set it up. I'd love to hear feedback! I'm already planning on a better interface for adding controls, but I decided to go ahead and give this out to see how people liked it. I've only tested it using Apache 2.2.11 with Perl 5.10.0 (Ubuntu), and controlling access to a subversion repository with redmine using a MySQL database, but I don't think there is any reason that it wouldn't work for anything that can use WebDav.

Configuring the plugin is basically the same as setting up the Redmine.pm script, with a slight modification (the script I'm using, RedmineRepoControl.pm, is my own heavily modified version).

It's a work in progress, but I hope someone else out there has a use for it, again please visit the project page and any feedback would be great. There is still a few things that need to be done (like documentation), but it should be at least usable.

Thanks!

-Brian

Replies (8)

RE: Redmine Repository Controls - Added by Jens Goldhammer about 9 years ago

Cool, this is really great because it provides more flexibility as editing a svn file.
Please update the redmine plugins wiki site with your information.

RE: Redmine Repository Controls - Added by Martin Lillepuu about 9 years ago

I think that passing through the user credentialsto svn would be useful, so that I wouldn't have to add the service account to every project as manager.

RE: Redmine Repository Controls - Added by jian zhang almost 9 years ago

Hello , I am using the plugin ,have some problem.
I can checkout well with the Redmine.pm ,but cannot with the RedmineRepoControl.pm
the log of the apache
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/Apache/RedmineRepoControl.pm line 244.\n
debug
($path) = $r->uri =~ m{$location/*[^/]+(/.*)};
the $path is null
$r->uri is the svn url "/svn/test"
the $location is "/svn"
and
I use the different url to checkout
eg:
svn co http://222.111.56.199/svn/test test
svn co http://222.111.56.199/svn/test/ test ##add the / at the end
all failed .
svn: PROPFIND request failed on '/svn/test'
svn: PROPFIND of '/svn/test': 500 Internal Server Error (http://222.111.56.199)
please help me ,how to do it.thx

RE: Redmine Repository Controls - Added by Iván López almost 9 years ago

Hello,

I'm trying this plugin and I think it's great, but I've a problem with it. After installing it I get the following error in my apache error file.

DBD::Pg::st execute failed: ERROR: the column members.role_id does not exists
LINE 3: AND roles.id=members.role_id AND users.s...
^ at /usr/lib/perl5/Apache/RedmineRepoControl.pm line 282.
DBD::Pg::st fetchrow_array failed: no statement executing at /usr/lib/perl5/Apache/RedmineRepoControl.pm line 283.

I've checked the members table and the column role_id doesn't exists. Also, I've checked the file redmine_repository_control/db/migrate/0001_create_repository_controls.rb and this column is not added.

I'm using a fresh redmine 0.9.3 installation in linux (ubuntu)

What can I do to fix this problem?.

Thanks and regards, Iván.

RE: Redmine Repository Controls - Added by Vincenzo Farruggia over 8 years ago

Hi,
I fixed query to reflect changes in database structure
Patch is attached

Kind regards
Vincenzo

RE: Redmine Repository Controls - Added by jian zhang over 8 years ago

I have test the patch , It's not ok .
My readmine version is 0.9.4.devel.3735 .
Use the patch, get the error code 500 .

RE: Redmine Repository Controls - Added by Vincenzo Farruggia over 8 years ago

I forgot to put my setup.
I checked redmine 1.0-stable (rev. 3864)
and patch on it works flawlessy

(1-8/8)