Wednesday, 26 December 2012

!svn/vcc/default 405 method not allowed problem

Hello peeps,

If you are having a proxy server between you and your svn repository and the proxy server has an ip restriction, this problem can happen to you.

Lets say you have a project in url http://example.com/svn/reponame/trunk/project. And you wanna share it with a third party. But can't since,  they are reporting of error

Server sent unexpected return value (405 method not allowed) in response to PROPFIND /svn/reponame/!svn/vcc/default

Well the problem is mainly because, your proxy server does not allow the users to go throght /svn/reponame And rather than proxying the request to your svn server, it immediately answers with a not allowed response.

Naturally, you dont want http://example.com/svn/reponame to be seen/listed by any other outsider since there may be other projects which you dont wanna share the source code.

So, you dont put the location /svn/reponame to your locations in the proxy configuration.
But you should. yeah.
SVN access file and ip restriction in your proxy will prevent others to see confidential data.


just put

<location /svn/reponame>
...
.
.
</location>

to your proxy config.

Cheers.

No comments:

Post a Comment