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

Re: [PATCH] Fix the commit failure over the write-through-proxy if apache is configured as '<Location /svn/>'

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: Thu, 25 Feb 2010 19:10:38 +0530

On 02/15/2010 07:44 PM, Julian Foad wrote:
> Kamesh Jayachandran wrote:
>
>> With the below apache configuration(See the trailing slash at the end of
>> '/svn/').
>>
>> <Location /svn/>
>> DAV svn
>> SVNParentPath /repositories
>> SVNMasterURI http://master/svn/
>> SVNAdvertiseV2Protocol Off
>> </Location>
>>
> [...]
>
>> Attached patch fixes it.
>>
>> This change came via fix for issue 3275. I believe this assertion is
>> just to clean the uri for double slash and not anything functional to
>> that issue, I may be wrong.
>>
>> Thoughts?
>>
> The logic in your patch looks correct IF we accept that
> dav_svn__get_root_dir() can return a non-canonical path. But if that's
> the case, then we should document it as such:
>
> [[[
> Index: subversion/mod_dav_svn/dav_svn.h
> ===================================================================
> --- subversion/mod_dav_svn/dav_svn.h (revision 910187)
> +++ subversion/mod_dav_svn/dav_svn.h (working copy)
> @@ -352,7 +352,7 @@
> /* Return the activities db */
> const char * dav_svn__get_activities_db(request_rec *r);
>
> -/* Return the root directory */
> +/* Return the root directory (not necessarily as a canonical path) */
> const char * dav_svn__get_root_dir(request_rec *r);
>
>
> ]]]
>
> or if it's meant to be canonical, then we should fix that function
> instead.
>
> - Julian
>

Changed 'dav_svn__get_root_dir' to return canonical path.

Committed this in r916286.

With regards
Kamesh Jayachandran
Received on 2010-02-25 14:42:38 CET

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.