Project

General

Profile

SVN Integration

Added by Mati Kochen over 13 years ago

Hey,
I've set an integration between redmine and SVN repositories.
the repository is automatically created and shown inside the repository tab in redmine.

I've also tested checkout and commit and it works great - with my own user.

I've set a user to be a developer (and another to be manager) to a project in redmine.
when they access the SVN through HTTP (apache) they are requested to insert their user/pass and they can sucessfully log in. We've also tried this from CLI.
When they try to commit:

Error: Server sent unexpected return value (405 Not Allowed) in response to PROPFIND

My .conf file looks like this:
    #http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
        PerlLoadModule Apache::Redmine
        <Location ~ "/">
                DAV svn
                SVNParentPath /var/www/svn/
                Order deny,allow
                Deny from all
                Satisfy any

                PerlAccessHandler Apache::Authn::Redmine::access_handler
                PerlAuthenHandler Apache::Authn::Redmine::authen_handler
                AuthType Basic
                AuthName "Redmine SVN Repository" 

                #read-only access
                <Limit GET PROPFIND OPTIONS REPORT>
                        Require valid-user
                        Allow from 127.0.0.1
                        # Allow from another-ip
                        Satisfy any
                </Limit>
                # write access
                <LimitExcept GET PROPFIND OPTIONS REPORT>
                        Require valid-user
                </LimitExcept>

                ## for mysql
                RedmineDSN "DBI:mysql:database=redmine;host=127.0.0.1" 

                RedmineDbUser "redmine" 
                RedmineDbPass "PASSWORD" 
        </Location>

can any1 help me solve this...?


Replies (2)

RE: SVN Integration - Added by Andy Bolstridge over 13 years ago

this is a SVN issue, not redmine - but what do you have in your auth file. I think you've got everything set up read-only, and nowhere have you told svn that your users can write to the repo.

You'll want something like this:
AuthUserFile /etc/apache2/dav_svn.passwd
in there along with a list of users and their access rights.
See http://svnbook.red-bean.com/en/1.5/svn.serverconfig.httpd.html

for details.

RE: SVN Integration - Added by Mati Kochen over 13 years ago

I want the users/passwords taken from redmine, hence the redmine integration and:
exactly as instructed in the wiki page: http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

at the moment, I solved this by bypassing the request to apache (and not nginx as before).
no change was needed in the config file, and authentication works as needed (taken from redmine)...

    (1-2/2)