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

Re: [Patch] Re: URI-encoding of '#'

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2006-02-24 13:36:15 CET

On Fri, 24 Feb 2006, Mathias Weinert wrote:

> Peter N. Lundblad wrote:
>
> > On Thu, 23 Feb 2006, Mathias Weinert wrote:
> >
> > > Peter N. Lundblad wrote:
> > >
> > > > On Thu, 23 Feb 2006, Mathias Weinert wrote:
> > > >
> > 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.
>
The @peg notation is handle before the path is treated like an URL. If you
need an @ sign in the URL, you can get it by ending the target with an @
sign.

The problem with escaping characters that have a special meaning in URLs
automatically is that if someone, for some reason, needs to have an # in
the URL, they can't get it, because it would be auto-escaped and thereby
loose its special significance.

> 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".
>

No. I think you have to live with the fact that in URLs, some ASCII range
characters have to be escaped manually. The same applies for the percent
character, for example.

Thanks,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 24 13:37:16 2006

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.