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

Re: state of union

From: Joe Orton <joe_at_manyfish.co.uk>
Date: 2001-09-08 02:05:17 CEST

On Fri, Sep 07, 2001 at 04:15:31PM -0700, Greg Stein wrote:
> On Thu, Sep 06, 2001 at 07:12:04PM +0100, Joe Orton wrote:
> >...
> > ra_dav is doing a PROPFIND on /repos/svn/$svn/vcc/default asking for the
> > baseline-collection and version-name properties.
>
> It also uses a Label: header to get those properties. In other words, don't
> get them from the VCC, but from the baseline resource identified by the
> label.
>
> [ VCC stands for Version-Controlled Configuration; it can loosely be thought
> of as a "pointer" to a baseline; using the Label: header, we can
> effectively alter the pointer for that request. (in the DeltaV design, it
> isn't really a "pointer", but that is an analogue to what is going on) ]
>
> > But in the response, mod_dav_svn is giving the properties for the URL
> > /repos/svn/$svn/bln/1, rather than /repos/svn/$svn/vcc/default.
>
> As it should. :-)

Okay... this is my understanding of why it gives the error it gives;
doing a "co -r1"

svn_ra_dav__get_props_resource(blah,
                url = "/repos/svn/$svn/vcc/default",
                label = "1"...)

-> calls svn_ra_dav__get_props for that URL
-> but because the href of the response was /repos/svn/$svn/bln/1, it's
not finding the properties when it looks for them in the hash?

> The question is whether it returns the correct properties for the baseline
> specified by the label. I would capture the traffic and look at the outgoing
> request, and the incoming result. If the Label header says 17 (trying to
> checkout revision 17), then the props should be reported for .../bln/17 and
> the baseline-collection would be .../bc/17.

Here's the interesting bit of the trace...

PROPFIND /repos/svn/$svn/vcc/default HTTP/1.1
User-Agent: SVN/M3 neon/0.15.3
Connection: TE
TE: trailers
Depth: 0
Label: 1
Content-Length: 158
Content-Type: text/xml
Host: svn.collab.net:81

Sending headers: attempt 0
Request sent
Sending body...
Body block: <?xml version="1.0" encoding="utf-8"?>
<propfind xmlns="DAV:"><prop>
<baseline-collection xmlns="DAV:"/>
<version-name xmlns="DAV:"/>
</prop></propfind>
Body sent.

[Status Line] < HTTP/1.1 207 Multi-Status
Read block:
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="svn:">
<D:href>/repos/svn/$svn/bln/1</D:href>
<D:propstat>
<D:prop>
<lp1:baseline-collection><D:href>/repos/svn/$svn/bc/1/</D:href></lp1:baseline-collection>
<lp1:version-name>1</lp1:version-name>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

apr_error: #20014, src_err 0 : <Error string not specified yet>
  failed to find label "1" for url "/repos/svn/$svn/vcc/default"
ne_session_destroy called.
ne_session_destroy called.

---------------------------------------------------------------------
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:40 2006

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