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

Re: URI escaping in repository URLs

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-03-31 03:05:08 CEST

"Stephen Warren" <swarren@paramanet.com> writes:

> I attempted to do the following:
>
> svn import . "http://localhost/repos/document/System Hardware" -m xxxx
>
> which complained about the URI not being URI-encoded. The following fixed it:
>
> svn import . "http://localhost/repos/document/System%20Hardware" -m xxxx
>
> My question is: Why doesn't the svn client do this for me?

Because we don't want to be in the business of deciding whether or not
"url://host/repos/My%25Path" means "url://host/repos/My%25Path" or
"url://host/repos/My%2525Path". In other words, you cannot look at a
URI-ish thing and say with certainty that it has been URI-encoded
(though you can definitely say it hasn't). So the right way to deal
with the situation is to say, "Alrighty then, the user must provide to
use a properly encoded URL so there are no misunderstandings."

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 31 03:06:39 2004

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