Peter N. Lundblad wrote:
> On Thu, 23 Feb 2006, Mathias Weinert wrote:
>
> > Peter N. Lundblad wrote:
> >
> > > On Thu, 23 Feb 2006, Mathias Weinert wrote:
> > >
> > > > $ svn info http://anyhost/#
> > > > svn: URL 'http://anyhost/#' is not properly URI-encoded
> > > >
> > > > As you can see the URI-encoding of '#' doesn't work. At least
> > > > it doesn't work in my environment - Subversion 1.3.0 on cygwin.
> > > > I also checked it under Windows and there the problem is also
> > > > existing (in version 1.3.0 as well as in version 1.2.3).
> > >
> > > Since the # sign has a special meaning in a URI, we can't automatically
> > > escape it there. The auto-escaping is meant as a convenience for
> > > characters that don't have another meaning. Other characters, you will
> > > need to excape by hand.
> > >
> >
> > Hmm, I understand that the '#' has a special meaning in "standard"
> > URLs but is there any situation where it has a special meaning
> > while used as a Subversion path?
> >
> No, at least not in the path part, but since we're using "standard" URLs,
> I think it would be a bad idea to try to be too smart and do unexpected
> things. OK, you might say that not escaping might be more unexpected, but
> even if we escape #, there are still special characters in the ASCII range
> that need to be manually escaped.
I agree to you that a standard URL is a standard URL and should
be used like everyone expects a URL to be used.
On the other hand I see two things:
1. Subversion URLs are used to reflect paths in repositories
and therefor I expect them to work even if the path contains
characters which have special meaning in standard URLs.
2. Subversion uses the @ sign for peg revisions and I don't
think that is a standard URL behavior either.
So my proposal is to escape as many characters as possible to
make the use of the Subversion URLs as convenient for the
users as possible and "to replace every occurence of 'URL' in
Subversion with 'URL-like path notation' or something like
that".
What do you think about this?
Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 24 10:24:18 2006