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

Quoting bug in ra-dav?

From: William Uther <willu.mailingLists_at_cse.unsw.edu.au>
Date: 2003-11-05 00:52:12 CET

Hi,

   I've just come across a quoting bug in ra-dav (subversion 0.32.1).
We had a directory with in which was contained a file with a control
character in its name. When URL encoded it looks like this: %18.tex.
I've managed to work around the problem using ra-local, but thought you
might like to know.

   The directory was imported as:

svn import myDir https://myServer/repos/

This worked ok, but any attempt to list (or checkout) the files in that
directory using subversion over ra-dav fails: ($PAP is the URL of the
server)

% svn ls $PAP -r 2105
subversion/libsvn_ra_dav/util.c:628: (apr_err=175002)
svn: RA layer request failed
svn: PROPFIND request failed on '/svn/robocup/!svn/bc/2105/trunk/papers'
subversion/libsvn_ra_dav/util.c:614: (apr_err=175002)
svn: The PROPFIND request returned invalid XML in the response: XML
parse error at line 814: detected an error in element content
.. (/svn/robocup/!svn/bc/2105/trunk/papers)

removing the file also failed over ra-dav:

% svn rm $PAP/%18.tex
subversion/libsvn_ra_dav/util.c:628: (apr_err=175002)
svn: RA layer request failed
svn: PROPFIND request failed on '/svn/robocup/trunk/papers/%18.tex'
subversion/libsvn_ra_dav/util.c:614: (apr_err=175002)
svn: The PROPFIND request returned invalid XML in the response: XML
parse error at line 9: detected an error in element content
.. (/svn/robocup/trunk/papers/%18.tex)
subversion/clients/cmdline/util.c:364: (apr_err=175002)
svn: Your commit message was left in a temporary file:
subversion/clients/cmdline/util.c:364: (apr_err=175002)
svn: 'svn-commit.tmp'

However, ra-local access was able to remove the file just fine:

% svn rm file:///usr/local/share/repos/robocup/trunk/papers/%18.tex -m
"remove file with bad name"

Committed revision 2108.

and now you can check out the directory again.

Will :-}

--
Dr William Uther                            National ICT Australia
Phone: +61 2 9385 6926             School of Computer Science and 
Engineering
Email: willu@cse.unsw.edu.au             University of New South Wales
Jabber: willu@jabber.cse.unsw.edu.au          Sydney, Australia
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 5 00:53:23 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.