SVN server setup using WEB DAV

Good way to use SVN is through https and apache using mod_dav and mod_dav_svn.

While debugging and trying different settings I was able to see all of these error messages before correct combination for configuration was found. Best ways to debug are Eclipse SVN “Edit Repository Location” view that displays useful error message when clicking  finish. Apache access log and error log are also very useful.

Get repository folder children operation failed.
svn: Malformed XML

org.tigris.subversion.javahl.ClientException: Malformed XML

Error while performing action: Repository moved permanently to ''; please relocate

PROPFIND requests with a Depth of "infinity" are not allowed for /testproject/.

org.tigris.subversion.javahl.ClientException: svn: PROPFIND of '/testproject': 405 Method Not Allowed ( could have the following meaning(s):
- the folder specified in the repository URL does not exist on the host
- your proxy does not allow the svn command you have invoked - - [13/Sep/2011:12:38:03 +0200] "PROPFIND /testproject HTTP/1.1" 405 659 "-" "SVN/1.6.15 SVNKit/1.3.5 ( r7406

To avoid most of these errors use Location conf exactly like this:

<Location /testproject>
 DAV svn
 SVNPath /svn/testproject
 AuthType Basic
 AuthName "Test svn project"
 AuthUserFile /etc/subversion/passwd
 Require valid-user

Most important is to never ever use trailing slash in Location directive.

1 thought on “SVN server setup using WEB DAV

  1. Pingback:Create new SVN repository into your server « Margus Pala is playing with IT!

Leave a Reply

Your email address will not be published.