[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:03:40 +0200

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

You see: the svn file:/// urls always point to (locally) non-existing
paths since they're inside the repository (which has no corresponding
path locally).
Windows can deal with spaces in such an url, so it checks the existence
of such local paths to find out which path was meant with the url
(escaped or not). But that fails terribly if the path doesn't exist.

So escaped file:/// urls just don't work if the path there doesn't
really exist.

TSVN escapes all urls properly, even file:/// ones.

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