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

RE: Special Character Inconsistencies

From: Daniel Becroft <Daniel.Becroft_at_supercorp.com.au>
Date: Wed, 1 Oct 2008 15:42:42 +1000

 

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2008c_at_ryandesign.com]
> Sent: Wednesday, October 01, 2008 3:37 PM
> To: Daniel Becroft
> Cc: SubVersion Users
> Subject: Re: Special Character Inconsistencies
>
> On Sep 30, 2008, at 10:02 PM, Daniel Becroft wrote:
>
> > I have come across what appear to be inconsistencies with
> the handling
> > of special characters (ie '?') in filenames for URL-based renames &
> > deletes.
> >
> > Examples:
> >
> >> svn list svn://localhost/rename_test
> > alpha.txt
> >
> >> svn rename svn://localhost/rename_test/alpha.txt
> > svn://localhost/rename_test/alpha?.txt
> > svn: URL 'svn://localhost/rename_test/alpha?.txt' is
> not properly
> > URI-encoded
> >
> > This is an expected error. So, use the percentage notation:
> >
> >> svn rename svn://localhost/rename_test/alpha.txt
> > svn://localhost/rename_test/alpha?.txt
>
> Presumably you meant:
>
> svn rename svn://localhost/rename_test/alpha.txt
> svn://localhost/ rename_test/alpha%3F.txt

Apologies, yes, that is what I meant. Copied the wrong line from the
console.

> > Committed revision X.
> >
> >> svn list svn://localhost/rename_test
> > alpha?.txt
> >
> > It appears the rename has worked. But, we cannot rename the
> file back:
> >
> >> svn rename svn://localhost/rename_Test/alpha%3F.txt
> > svn://localhost/rename_Test/alpha.txt --message ""
> > svn: Can't open file
> 'D://svnrepos/rename_Test/alpha?.txt/format':
> > The filename,
> > directory name, or volume label syntax is incorrect.
>
> I'm unable to reproduce the problem using file:-protocol URLs...
> Didn't try the other protocols.

I'll give it a go on the file:// protocol, but I'm guessing I'll have
the same issue.

> > I get the same errors if I attempt to move the file to a different
> > location.
> >
> >> svn delete svn://localhost/rename_Test/alpha%3F.txt --message ""
> >
> > Committed revision 6.
> >
> > Now, I'm not sure where the problem lies. Should these names even be
> > allowed? If so, then the rename obviously needs to be fixed.
>
>
> I'm using Subversion 1.5.2 on an Intel Mac running Mac OS X 10.4.11.
> What about you?

Subversion 1.5.2 on WinXP SP3. Haven't got a non-windows box to test on.
WinXP doesn't like having '?' in the filenames, but it seems strange
that SVN is including the filename part of the URL when trying to access
the internal repository structure.

Cheers,
Daniel B.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-01 07:42:26 CEST

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.