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

Hex escapes not honored in final name component of URI

From: Bob Peterson <bob_at_memento-inc.com>
Date: 2003-12-19 20:49:34 CET

Is the following a bug, or am I misunderstanding how SVN processes URLs? I
expected hex escapes (%xx) in URLs to be consistently processed before the
URL is processed internally.

The problem is illustrated with the command:
    svn -m "" import "Brown Book-orig"
file:///c:/Documents%20and%20Settings/bob/My%20Documents/Projects/repo/src/trunk/a%20b

Using
    svn list -r
file:///c:/Documents%20and%20Settings/bob/My%20Documents/Projects/repo
shows the repository folder that was created has five characters, not three
("a%20b" instead of "a b").

So, why are the %20 hex escapes in the path are correctly processed, but the
final name component, a%20b, is not unescaped. Yet if I try to submit a
quoted URI, I get an error:

C:\Documents and Settings\bob\My Documents\Projects>svn -m "" import "Brown
Book
-orig"
"file:///c:/Documents%20and%20Settings/bob/My%20Documents/Projects/repo/s
rc/trunk/a b"
svn: Bogus URL
svn: URL
'file:///c:/Documents%20and%20Settings/bob/My%20Documents/Projects/repo
/src/trunk/a b' is not properly URI-encoded

\bob peterson
Memento, Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 19 20:50:15 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.