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

Re: Possible bug regarding spaces in unc paths in 1.6.8

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 08 Jun 2010 18:31:53 +0200

On 08.06.2010 18:20, David Carr wrote:

>>>> Can you reproduce it with the command-line client?
>>>>
>>>> Can you reproduce it with an svn:// or http:// URL? The file://
>>>> protocol on a UNC share isn't exactly a recommended configuration in
>>>> the first place.
>>>
>>> Thanks for taking the time to reply. I've tried with the command line client and get exactly the same behaviour.
>>
>> Then if there is a bug, it's with the Subversion libraries, not Tortoise.
>
> Absolutely - I presume that's reportable somewhere else. I'll do that.

The problem here is that urls must be escaped before they can be used by
the svn library. And Windows doesn't work with file:/// urls on its
paths if they're escaped.

Imagine the following url:

file:///c:/my folder/repo/trunk/my subfolder
that url is not escaped. So it won't work with the svn lib.

But if you escape that url, you get:
file:///c:/my%20folder/repo/trunk/my%20subfolder

which also doesn't work. What *would* work however is this url:
file:///c:/my folder/repo/trunk/my%20subfolder

only the part *inside* the repository should be escaped. Problem is that
all svn API's escape the urls fully, they don't check which part of an
url is 'local' and which one is inside the repo - something which would
have to be done only for file:// urls, not all other urls.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2618520
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-06-08 18:32:05 CEST

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