IProvider: Oleg Grodzevich Scientific and Software Development Playground

1 posts
December 2006

#

SVN, MKACTIVITY, and HTTP Error 403

December 2, 2006 | 1:46 PM | Comments (0) | Post comment

After major overhaul of development servers Subversion broke. Checkouts work fine, while checkins fail with the following 403 error in the Apache log:

Access denied: 'username' MKACTIVITY <reponame>:...

Tons of things (all of which seem quite legitimate to me) have changed while servers were rebuilt, and, therefore, I was completely clueless as for what could go wrong. Searching the net revealed many similar cases, but no working resolutions (except for improper case of the repository name, which is not the problem in my situation.) However, looking more carefully at the error message I noticed that the repository name in the Apache log is actually (repo1|repo2). The reason is that I am using LocationMatch directive in Apache configuration file to merge similar settings for different repositories. (I have several groups of repositories that share settings, but not all of them are the same, so I can’t just set settings for the root folder.) When I changed the configuration back to a single repository case, commits started working again. I assume it is AuthzSVNAccessFile that sees wrong repository name and can not apply correct permissions. The simplest resolution would be to place AuthzSVNAccessFile directive into a separate Location section for each repository.