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

BUG: import not URL decoding paths before creating them

From: David Waite <mass_at_akuma.org>
Date: 2003-12-02 22:40:47 CET

A quick walkthrough/reproduction recipe (against a svn client built
against trunk):

$ svn --version
svn, version 0.34.0 (dev build)
    compiled Dec 2 2003, 13:31:20

Copyright (C) 2000-2003 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV)
protocol.
   - handles 'http' schema
   - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
   - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network
protocol.
   - handles 'svn' schema

$ svnadmin create test
$ mkdir a\ b

$ svn import -m "1" a\ b "file:///home/mass/tmp/test/a%20b/"

Committed revision 1.

$ svn ls file:///home/mass/tmp/test
a%20b/

(Note that this should be "a b")

$ rm -r a\ b

$ svn co "file:///home/mass/tmp/test/a%20b/"
svn: Bad URL passed to RA layer
svn: URL 'file:///home/mass/tmp/test/a%20b' doesn't exist

$ svn co "file:///home/mass/tmp/test/a%2520b/"
Checked out revision 2.

$ svn mv -m "2" "file:///home/mass/tmp/test/a%2520b/"
"file:///home/mass/tmp/test/a%20b/"

Committed revision 3.

$ svn ls file:///home/mass/tmp/test
a b/

(Note that on ra_dav, this apparently behaved differently, and
corrupted my repository)

-David Waite

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 2 22:44: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.