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

RE: Official revision syntax for Subversion URLs

From: Julian Reschke <julian.reschke_at_gmx.de>
Date: 2003-08-05 20:47:10 CEST

Just a note: RFC2396bis really has changed here [1]:

"The query component contains non-hierarchical data that, along with data in
the path component, serves to identify a resource within the scope of that
URI's scheme and naming authority (if any). The query component is indicated
by the first question-mark ("?") character and terminated by a number-sign
("#") character or by the end of the URI.

   query = *( pchar / "/" / "?" )
The characters slash ("/") and question-mark ("?") are allowed to represent
data within the query component, but such use is discouraged; incorrect
implementations of reference resolution often fail to distinguish them from
hierarchical separators, thus resulting in non-interoperable results while
parsing relative references. However, since query components are often used
to carry identifying information in the form of "key=value" pairs, and one
frequently used value is a reference to another URI, it is sometimes better
for usability to include those characters unescaped.

Note: Some client applications will fail to separate a reference's query
component from its path component before merging the base and reference
paths (section 5.2). This may result in loss of information if the query
component contains the strings "/../" or "/./"."

So it would be perfectly acceptable to use the query part to identify
different versions (not that I would like that).

Julian

[1]
<http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/rfc2396bis.h
tml?rev=HEAD&content-type=text/html#query>

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
> -----Original Message-----
> From: kfogel@newton.ch.collab.net [mailto:kfogel@newton.ch.collab.net]On
> Behalf Of kfogel@collab.net
> Sent: Tuesday, August 05, 2003 7:19 PM
> To: Russell Yanofsky
> Cc: dev@subversion.tigris.org
> Subject: Re: Official revision syntax for Subversion URLs
>
>
> "Russell Yanofsky" <rey4@columbia.edu> writes:
> > I haven't really been following this discussion, but why
> couldn't you just
> > use url query syntax for this, ie:
> >
> >    http://host/repos/folder/file?rev=323
> >
> > That way there's no ambiguity, no naming restrictions, and no
> new rules for
> > escaping.
>
> Heh, I think you missed the beginning of the thread, in which Greg
> Hudson referred to this post
>
>    http://www.contactor.se/~dast/svn/archive-2003-06/0024.shtml
>
> It explains why "path?rev=foo" is undesirable.
>
> -Karl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 5 20:49:10 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.