SVN: PROPFIND request failed

Tagged:  

While installing SVN you might face such problem.

SVN works if you point to it via browser, but from commandline it gives error

bash# svn list http://192.168.100.101/repository
Authentication realm: <http://192.168.100.101:80> Some test repository
Password for 'root':
Authentication realm: <http://192.168.100.101:80> Some test repository
Username: username
Password for 'username':
svn: PROPFIND request failed on '/repository'
svn: PROPFIND of '/repository': 501 Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API  (http://192.168.100.101)

This means that you should configure Apache to access this SVN repository via SSL. So you need to add following lines to your Apache (or whatever server you are using) following configuration

<VirtualHost 192.168.100.101:443>
        ServerName 192.168.100.101
        ServerAlias test01
        SSLEngine on

        DocumentRoot /some/document/root/htsdocs
        ErrorLog /some/document/root/logs/error_ssl.log
        CustomLog /some/document/root/logs/access_ssl.log combined

        SSLCertificateKeyFile /some/document/root/conf/server.key
        SSLCertificateFile /some/document/root/logs/conf/server.crt

        <Location /repository>
          DAV svn
          SVNPath /some/document/root/repository
          AuthType Basic
          AuthName "Some test repository"
          AuthUserFile /some/document/root/conf/svn-auth-file
          Require valid-user
       </Location>

</VirtualHost>

You should change paths and names to those that corresponds your environment.
To create self-signed certificate check this howto - http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html

Now you can check the repository via https

The PROPFIND error message is gone, and you can see the same result as via browser.

Your rating: None