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

Re: vsn-rsc-url adaptations

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-06-01 01:33:26 CEST

On Fri, May 31, 2002 at 06:04:12PM -0500, Ben Collins-Sussman wrote:
> Greg Stein <gstein@lyra.org> writes:
>...
> > Not sure why it is asking for the parent's DAV:checked-in property. I'd need
> > to know what your local mods were, to understand what it was attempting.
>
> But that's just it... I've not changed ra_dav at *all*. Only
> mod_dav_svn. So I'm actually wondering if that 'adaptive' ra_dav
> logic you wrote last month still works...?

Yes, it works.

Look at the URL you were requesting (something like this):

  http://some.host/path/to/repos/$svn/ver/18.1/A/B/H/chi

But the nodeid should (now) be a revision:

  http://some.host/path/to/repos/$svn/ver/23/A/B/H/chi

Those two look awfully similar, don't they? If you run atoi("18.1"), you get
back 18. So you're asking to check out r18 of A/B/H/chi. But the server says
you're out of date because it wants you to check out rev 23.

As I said in my other note: the two URIs are too similar, and the parsing of
the revision is not strict enough (it doesn't require full consumption of
the text). Thus, the old URI is still "valid" in the new system and you get
an error about it.

The redirection wants to see a 404. That means make the URI totally invalid.
Thus, the need for the change to "!svn" as discussed.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 1 14:09:56 2002

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