Content
[SOLVED] community edition subversion issues (and probable pull request)
Added by AJ SA over 9 years ago
Last February I installed two OpenProjects instances for two large “multi-projects” I am managing for two institutions.
I chose your openproject-ce on Ubuntu 14.04 OpenStack instances. I configured openproject-ce serving thru HTTPS
A week ago the teams of one of them finally started developing code and so I activate the subversion built-in support.
I discovered that subversion is served as WEBDAV https thru https://server/svn/projectid
We started testing checking, commits, etc. All well.
But we have got stuck at tagging and branching.
I read a lot about it and discovered that there must be additional directives in svn_dav.conf for managing three issues:
1) O (n) svn COPY operations due to authorization/locking tree crawling.
This is referenced in:
http://subversion.apache.org/faq.html#dav-slow-copy
With a workaround as these directives in /svn location
SetEnvIf Request_Method COPY method_is_copy
RequestHeader set Depth 0 env=method_is_copy
Or an alternative for Apache >2.4 as
<If “%{REQUEST_METHOD} == ‘COPY’”>
RequestHeader set Depth 0
2) COPY WEBDAV about locking
Here you can see: https://bz.apache.org/bugzilla/show_bug.cgi?id=55306
The problem is that the “If:” header is sent in some place in the chain
No idea how to resolv it!
3) Finally it seems that tagging / branching operations thru COPY thru HTTPS needs another directive
In the github openproject repositories the file: doc/subversion_and_git_integration.md
says that the following directive must be added
RequestHeader edit Destination ^https: http: early
But doen’t work in community edition
I have tried several combinations, no success, no tagging
My question is: Have you seen those issues before?
Any tips?
Thanks,
AJSA
Replies (3)
Resolved !!!!
In the file
/etc/openproject-ce/addons/apache2/includes/vhost/svn_dav.conf
you need to put this directive inside <Location /svn>
SVNPathAuthz off
and then reload apache
The info is referenced in
http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
All in all OpenProject is a fork of a fork of Redmine
Furthermore it is advisable to put another one:
LimitXMLRequestBody 0
for heavy load subversion commits
Can somebody explain this to addon-svn-dav maintainer Cyril Rohr
I do not know how to prepare a pull request.
I have learnt how to do a pull request
https://github.com/aj-opensource/addon-svn-dav
Finally, you also need another directive for large updates in subversion 1.8.x (a part of the community edition distribution)
SVNAllowBulkUpdates Prefer