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

Re: blame is failing over ra_dav (spaces in the file name)

From: John Szakmeister <john_at_szakmeister.net>
Date: 2003-12-19 01:33:10 CET

On Thursday 18 December 2003 19:25, John Szakmeister wrote:
> Well, I tracked down this problem. Turns out we're fetching the relative
> portion of the URL in svn_ra_dav__get_repos_root(), but the relative
> portion is not URI-encoded, while ras->url is URI-encoded. What ends up
> happening is that less was shaved off of ras->url than should've been, and
> then repos_root ends up being wrong.
>
> The attached patch fixes the problem and passes both 'make check' and 'make
> davcheck'.
>

Gotta learn not to hit the send button so quickly. Here's the patch.

-John

Log:

Fixes a problem in fetching the repository root if URL contains characters
that need to be URI-encoded.

* subversion/libsvn_ra_dav/session.c
  (svn_ra_dav__get_repos_root): Grab the number of bytes to truncate from a
  URI-encoded version of bc_relative.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Dec 19 01:27:24 2003

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.