[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

get_parent_resource() on unknown url

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-11-01 22:22:36 CET

Okay, so I no longer get the 502 error since I strictly defined
apache's hostname in httpd.conf. Instead, it's back to the same old
error whenever I send a COPY request:

[Thu Nov 01 14:41:13 2001] [error] [client 192.168.0.6] get_parent_resource was called for /testing/sussman/$svn/wrk/a0ae1e99-d11d-b211-97da-845f131397f6/fundir/foo2 (type 1) [500, #0]

It seems the mod_dav is calling the dav_svn_get_parent_resource() hook
on a non-existent URL. The URL doesn't exist because we're trying to
create it: it's the "Destination" header in the COPY request. By the
time the resource is passed to the hook, mod_dav (or someone else) has
already tagged resource as type 1 ("unknown"). So the hook chokes as
it's currently written.

I simply don't understand DAV well enough to find a solution. Should
the hook assume that any type-1 resources are due to copies or moves,
and explicitly handle them? Should it attempt to construct a parent
resource anyway (via dav_svn_create_private_resource)?

Or is this a bigger problem in mod_dav itself? Should mod_dav not be
labeling the resource as type-1?

Awaiting enlightenment from gstein.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:47 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.