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

Re: SVNParentPath and Unicode repository name

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-10-08 21:01:49 CEST

On Oct 8, 2007, at 04:18, Николай Домуховский wrote:

>>> Hello. I'm trying to configure my Apache with dav_svn to support
>>> a lot
>>> of repositories via SVNParentPath.
>>> But I cannot avoid one problem: when some repository has name with
>>> national characters (Russian in my case) I got error, when trying to
>>> access it...
>>> The origin of error is simple: repository name in HTTP GET
>>> request is
>>> encoded (i.e. %do%ca%d0%0a and so on), and this _encoded_ name is
>>> used
>>> by low-level svn subsystem. As I can see through source code - there
>>> is no some decoding procedures defined.
>>> So, can anyone help me to make this configuration works? Is this
>>> a bug
>>> in dav_svn or I just missed some important parameter?
>>
>> Off the top of my head, it sounds like a bug. Are you using the
>> latest version of Subversion, 1.4.5, and Apache, 2.2.6, on the
>> server? What OS is the server running on?
>
> OS Debian Etch 4.0
> SVN 1.4.2dfsg1-2 (from Debian stable repository)
> Apache 2.2.3 (from Debian stable repository)
>
> Can you test this on latest versions of soft?
> I don't want to put my system in unstable state, if this won't help...

I'm using Mac OS X 10.4.10 Intel, subversion 1.4.5, apache 2.2.6, apr
1.2.11 and apr-util 1.2.10. I'm not sure how to use non-ASCII
characters in my Terminal (I've never needed to before) so I used
"svnadmin create" to make new repositories "1" and "2" in my parent
path, and then renamed them to "Николай" and
"Домуховский" using the Mac OS Finder. When I view the list
of repositories in Firefox, it looks just fine:

Collection of Repositories

     * bar/
     * foo/
     * Домуховский/
     * Николай/

Powered by Subversion version 1.4.5 (r25188).

When I click "Домуховский" it goes to this URL:

http://localhost/%d0%94%d0%be%d0%bc%d1%83%d1%85%d0%be%d0%b2%d1%81%d0%
ba%d0%b8%d0%b8%cc%86/

and it shows me that the repository is at revision 0 which is
correct. Repository "Николай" does the same under a similar URL.

Checking out did not work so well:

$ svn co http://localhost/%d0%94%d0%be%d0%bc%d1%83%d1%85%d0%be%d0%b2%
d1%81%d0%ba%d0%b8%d0%b8%cc%86/ test
svn: REPORT request failed on '/%D0%94%D0%BE%D0%BC%D1%83%D1%85%D0%BE%
D0%B2%D1%81%D0%BA%D0%B8%D0%B8%CC%86/!svn/vcc/default'
svn: Unusable URI: it does not refer to this repository
$

Maybe the Subversion client wants uppercased hex for some reason?

$ svn co http://localhost/%D0%94%D0%BE%D0%BC%D1%83%D1%85%D0%BE%D0%B2%
D1%81%D0%BA%D0%B8%D0%B8%CC%86/ test2
Checked out revision 0.
$

Yes! Ok... Can I commit things?

$ cd test2
$ date > foo
$ svn add foo
A foo
$ svn ci -m ""
Adding foo
Transmitting file data .
Committed revision 1.
$ date > foo
$ svn ci -m ""
Sending foo
Transmitting file data .
Committed revision 2.
$

Looks good. So the only bug seems to be that checking out (on the
command line at least) needs uppercase hex characters in the URL but
the SVNListParentPath feature lists repository URLs in the web
browser with lowercase hex characters.

Don't forget to Reply To All so that your reply goes to the mailing
list too, and not just to me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 8 21:05:02 2007

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.