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

[TSVN] Ampersand in directory names stopping updates

From: Michael Hope <michael.hope_at_hamjet.co.nz>
Date: 2004-07-09 00:20:07 CEST

Morning. This is with TortoiseSVN 1.0.6 build 1200 running against
Subversion 1.0.5 on Apache 2.0.49.

When updating from a directory with an ampersand in the name or a child of
that directory, a update will fail with a 'REPORT request failed on
'/svn/!svn/vcc/default': 400 Bad Request error. A TCP dump shows a handful
of requests being processed with the final REPORT failing due to a
non-escaped '&' in the XML from the client.

The XML is:
<S:update-report send-all="true"
xmlns:S="svn:"><S:src-path>http://control9/svn/Generic%20Control%20Docs/trun
k</S:src-path><S:update-target>01 Cables &
Connectors</S:update-target><S:recursive>no</S:recursive><S:entry
rev="668"></S:entry></S:update-report>

The server replies with:
Date: Thu, 08 Jul 2004 21:31:09 GMT
Server: Apache/2.0.49 (Win32) mod_auth_sspi/1.0.1 DAV/2 SVN/1.0.5
Content-Length: 337
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr />
<address>Apache/2.0.49 (Win32) mod_auth_sspi/1.0.1 DAV/2 SVN/1.0.5 Server at
control9 Port 80</address>
</body></html>

Updating from the directory above works fine. The work-around is to rename
the directory to 'Cables and Connectors'. This rename and update works
fine.

While playing about with this, I noticed the repository browser tree in
TortoiseSVN doesn't handle & correctly. The control seems to be treating
the & as an accelerator character instead of a raw char, so the directory
appears as 'Cables _Connectors' (the _ is an underlined space as in the
underlined F in the File menu).

There are a few related issues in the subversion issue tracker, but none
that are this exactly.

The full TCP capture is attached.

Michael Hope
CWF Hamilton & Co
PO Box 709 Middleton
Christchurch
New Zealand
+64 3 962 0530 x709

######################################################################
This e-mail message has been scanned and cleared by MailMarshal
http://www.marshalsoftware.com
######################################################################

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org

Received on Fri Jul 9 10:26:41 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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