Wednesday, December 8, 2010

403 Forbidden!

"403 Forbidden" error is the one of the most ambiguous errors of SVN and the most frequently occurring too!

My earlier understanding was that it would typically occur only when the user did not have appropriate access rights to the svn path that he was trying to access.

But that's not the only reason. It could also occur due to a incorrect path.
It's kind of strange that we can checkout and browse the repository using this path but cannot commit to it!

You have to ensure that the letter casing is exactly the same as the repository name on SVN server.

For example, your working copy may work with the URL "https://server:8443/svn/Project/Trunk" whereas the server side URL would be "https://server:8443/svn/Project/trunk".
In this case, you need to use the relocate option of TortoiseSVN and relocate your working copy to the correct URL. You can also checkout the folder again if you have no uncommitted local modifications on your working copy.

So the next time you come across a 403, remember to check the letter cases of the SVN repository name!

No comments: