On Thu, Nov 17, 2011 at 11:01:39AM +0000, Philip Martin wrote:
> [Adding dev]
> Philip Martin <philip.martin_at_wandisco.com> writes:
> > Sergey Skvortsov <skv_at_protey.ru> writes:
> >> Also, in 1.7 reading repos is working fine:
> >> "OPTIONS /svn/foo/bar HTTP/1.1" 200
> >> "REPORT /svn/foo/bar/!svn/me HTTP/1.1" 200
> >> but only POST fails:
> >> "POST /svn/foo/bar/!svn/me HTTP/1.1" 500
> >> So the problem is not in Apache or configuration but in mod_dav_svn itself.
> > Yes, POST requests are handled differently. You should be able to work
> > around the problem by disabling the v2 protocol using:
> > SVNAdvertiseV2Protocol off
> The config is nested Locations with SVNParentPath:
> <Location /svn>
> SVNParentPath /home/svn
> <Location /svn/foo>
> SVNParentPath /home/svn/foo
> This works apart from v2 commits to the nested Location. The reason it
> fails is that the POST gets directed to the containing Location, and
> that happens because of the root_dir setting in mod_dav_svn's dir_conf_t
> setup in mod_dav_svn.c:merge_dir_config:
> /* Prefer our parent's value over our new one - hence the swap. */
> newconf->root_dir = INHERIT_VALUE(parent, child, root_dir);
> All the other fields use INHERIT_VALUE(child, parent, ...).
> This code was added in the first commit to the dav-mirror branch and has
> not been changed since.
> If I change it to prefer the child value for root_dir then POSTs go to
> the right Location and commits work. Changing it doesn't break my
> simple mirror setup.
> I don't understand why the code prefers the parent root_dir. I can't
> think of any reason why mirroring would make a difference. Can anyone
Do we really support nested Locations?
I was under the impression that this was never supported.
The book advises against using nesting Locations. The example given in
the book has two nested Locations, one of which is served by HTTPD itself
and one served by mod_dav_svn.
Is this really supposed to work if mod_dav_svn is serving both Locations?
How do we avoid ambiguity when handling requests to nested Locations?
How can a client access a folder /bar inside a repository at Location /svn
if another repository exists at a nested Location /svn/bar?
Received on 2011-11-17 12:20:59 CET