[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, 15 Jun 2010 19:14:59 +0200

On 15.06.2010 19:13, David Balažic wrote:
> Stefan Küng wrote:
>
>> On 15.06.2010 18:58, David Balažic wrote:
>>> Stefan Küng wrote:
>>>
>>>>
>>>>> 1.) Windows XP Pro SP3
>>>>> 2.) Yes, I can also put documents on the web that have the percent
>>>>> sign in their path. Don't see your point.
>>>>
>>>> But on the web, those paths need to be escaped.
>>>> A file:/// url on Windows doesn't need escaping to work:
>>>> file:///c:/program files/myfile
>>>> works too, so there's a problem.
>>>>
>>>> On a webserver, a space in an url is not allowed. For windows
>>>> file:///
>>>> urls it is allowed.
>>>
>>> I created a folder called C:\Program%20files
>>> I can reference both this and the original without any ambiguity.
>>>
>>> file:///C:/Program%2520files/ -> opens the new one
>>> file:///C:/Program%20files/ -> opens the old one
>>>
>>> Maybe the OS API used by (T)SVN has some bu^Wfeatures
>> regarding this.
>>>
>>> Again, I don't understand why is it a problem, that
>> unescaped URLs also work?
>>> Just use escaped ones, they work also. (I'm probably
>> missing something,
>>> as I have not looked into actual (T)SVN code)
>>
>> Now try these:
>> file:///C:/Program%2520files/nonexistent
>> file:///C:/Program%20files/nonexistent
>
> In both cases I get an error dialog saying:
> The specified path does not exist. Check the path, and then try again.
>
> Seems as expected?

Yes.
Another problem:
the svn library converts file:/// urls to local paths and relative repo
urls. But it doesn't unescape those urls for the local paths. So it ends
up specifying a path like
c:\program%20files
with the windows APIs. And that path doesn't exist.

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=2622085
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-06-15 19:15:17 CEST

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

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