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

svn ls -R on paths with non ascii chars

From: Petter Åhbeck <petter.ahbeck_at_dehex.se>
Date: 2004-06-29 02:02:39 CEST

Hi,

I'm experiencing some strange problems with paths with swedish chars.

If I try a 'svn ls' on a path with (properly URI encoded/escaped)
swedish chars I get a listing of the folder content but I also get one
entry for the folder itself.

This means that if I try to do a recursive listing of the folder (or any
folder above the one with swedish chars) the listing fails, because svn
cannot find the 'duplicated nonexisting' folder within the folder with
swedish chars.

This only happens using the http: protocol, svn: and file: works OK.
Using locale sv_SE.ISO-8859-1 or sv_SE.CP850.
Server: SVN 1.0.4 prebuilt, Apache 2.0.49 prebuilt, on Win2k
Client: SVN 1.0.4 / TortoiseSVN 1.0.6, on Win2k/xp

Recipe:

cd /d d:\crap
md svnlstest
svnadmin create svnlstest
svn ls file:///d:/crap/svnlstest

*** Setup the folder structure ***
md temp\lstest
md temp\lstest\räksmörgås
md temp\lstest\räksmörgås\subdir
echo file with swedish chars> temp\lstest\räksmörgås\swecharåäö.txt
echo file with normal chars> temp\lstest\räksmörgås\plainchar.txt
echo file with normal chars> temp\lstest\räksmörgås\subdir\subfile.txt

md temp\lstest\plaindir
echo file with normal chars> temp\lstest\plaindir\normal.txt

svn import temp\lstest file:///d:/crap/svnlstest -m "Importing mixed tree"

*** Make accessible from Apache ***

Then testing gives this result:

*** Via file: ***

svn ls file:///d:/crap/svnlstest
lstest/

svn ls file:///d:/crap/svnlstest -R
lstest/
lstest/plaindir/
lstest/plaindir/normal.txt
lstest/räksmörgås/
lstest/räksmörgås/plainchar.txt
lstest/räksmörgås/subdir/
lstest/räksmörgås/subdir/subfile.txt
lstest/räksmörgås/swecharåäö.txt

svn ls file:///d:/crap/svnlstest/lstest/r%c3%a4ksm%c3%b6rg%c3%a5s
plainchar.txt
subdir/
swecharåäö.txt

*** Via http: ***

svn ls http://localhost/svn/svnlstest/lstest
plaindir/
räksmörgås/

svn ls http://localhost/svn/svnlstest/lstest/r%c3%a4ksm%c3%b6rg%c3%a5s
plainchar.txt
räksmörgås/
subdir/
swecharåäö.txt

*** Note extra entry 'räksmörgås/'

svn ls http://localhost/svn/svnlstest/lstest -R
svn: PROPFIND request failed on
'/svn/svnlstest/!svn/bc/1/lstest/r%C3%A4ksm%C3%B6rg%C3%A5s/r%25C3%25A4ksm%25C3%25B6rg%25C3%25A5s'
svn:
'/svn/svnlstest/!svn/bc/1/lstest/r%C3%A4ksm%C3%B6rg%C3%A5s/r%25C3%25A4ksm%25C3%25B6rg%25C3%25A5s'
path not found

*** Once more 'räksmörgås' is doubled (and with % escaped to %25)

What is going on here? Misconfiguration or bug?

Please advise.

//Petter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 29 02:11:47 2004

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.