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

Re: ra_dav and svn_ra_check_path not using the requested revision

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-04-01 02:02:34 CEST

On Mar 31, 2005, at 5:10 PM, Philip Martin wrote:

> Philip Martin <philip@codematters.co.uk> writes:
>
>> $ svn cp -r3 http://localhost/repo/foo/z.c http://localhost/repo/x1
>> ../svn/subversion/libsvn_ra_dav/util.c:780: (apr_err=160016)
>> svn: PROPFIND request failed on '/obj/repo/foo/z.c'
>> ../svn/subversion/libsvn_ra_dav/util.c:368: (apr_err=160016)
>> svn: Failure opening '/foo/z.c'
>>
>> The command works if I use the other RA layers, e.g.:
>>
>> $ svn cp -r3 svn://localhost/repo/foo/z.c svn://localhost/repo/x1 -m
>> ""
>>
>> Committed revision 6.
>>
>> The DAV stuff is really complicated for an outsider to follow, as far
>> as I can tell svn_ra_dav__search_for_starting_props is looking for
>> /foo/z.c in the head revision rather than in r3 as requested.
>>
>> Is this a known ra_dav bug?
>
> With this patch the copy succeeds:
>
> Index: subversion/libsvn_ra_dav/props.c
> ===================================================================
> --- subversion/libsvn_ra_dav/props.c (revision 13806)
> +++ subversion/libsvn_ra_dav/props.c (working copy)
> @@ -666,7 +666,8 @@
> if (! err)
> break; /* found an existing parent! */
>
> - if (err->apr_err != SVN_ERR_RA_DAV_PATH_NOT_FOUND)
> + if (err->apr_err != SVN_ERR_RA_DAV_PATH_NOT_FOUND
> + && err->apr_err != SVN_ERR_FS_NOT_DIRECTORY)
> goto error; /* found a _real_ error */
>
> /* else... lop off the basename and try again. */
>
>
> Now I've got no idea if that is really the correct thing to do. Is
> libsvn_ra_dav supposed to handle the FS error? Is mod_dav_svn
> supposed to convert the FS error into the RA error?
>

Philip: thanks for finding this. I promise I'll investigate this
tomorrow morning.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 1 02:04:48 2005

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.