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

BUG? incorrect handling of whitespaces in URLs by SVN command-line client for Win32 (at least)

From: Dmitry S. Radzevich <dsr_at_Orga.RU>
Date: 2004-03-25 14:01:25 CET


The command-line client seems to be incorrectly handling whitespaces and
possibly other symbols that must be escaped according to HTTP standards.

The problem first occurred when I tried to 'resurrect' a file (with spaces
in its name) from an older revision by means of copying with URLs:

svn copy "http://host/path_to_repos/S@TTester/doc/JavaCard Framework
Emulation - SDE.doc" -r 176 "./JavaCard Framework Emulation - SDE.doc"

The response was:
svn: URL 'http://host/path_to_repos/S@TTester/doc/JavaCard Framework
Emulation - SDE.doc' is not properly URI-encoded

But when I tried to escape the URL, replacing spaces with %20, it still
didn't work: the command-line client didn't complain, but it said that the
path handn't been found. And in server logs I saw that the URL had
eventually got escaped once more, replacing '%' with '%25' (%20 -> %2025):

host - user [19/Mar/2004:12:43:40 +0300] "PROPFIND
2520-%2520SDE.doc HTTP/1.1" 404 423 "-" "SVN/1.0.0 neon/0.24.4"

The possible solution is to allow unescaped URLs in the command-line client
(the client should escape them as needed).

Versions of software:
** Client OS: MS Windows XP Professional SP1 + all updates
** SVN: svn --version
svn, version 1.0.0
   compiled Feb 25 2004, 18:32:49

Copyright (C) 2000-2004 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
** Server OS: FreeBSD 4.7
Apache/2.0.48 (Unix) DAV/2 SVN/1.0.0 PHP/4.3.4 mod_ssl/2.0.48 OpenSSL/0.9.7c
Server at <host> Port 443

Dmitry Radzevich 
avast! Antivirus <http://www.avast.com> : Outbound message clean. 
Virus Database (VPS): 0403-17, 03/22/2004
Tested on: 25.03.2004 16:01:25
avast! is copyright (c) 2000-2003 ALWIL Software.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 25 18:02:15 2004

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