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

Re: Subversion crashes during local checkout

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Fri, 30 Mar 2018 21:12:25 +0200

On Fri, Mar 30, 2018 at 8:49 PM, Michael Osipov <michaelo_at_apache.org> wrote:
> Am 2018-03-30 um 13:33 schrieb Johan Corveleyn:
>>
>> On Thu, Mar 29, 2018 at 10:32 PM, Michael Osipov <michaelo_at_apache.org>
>> wrote:
>>>
>>> Hi folks,
>>>
>>> Subversion crashes here while trying to check out locally via file://
>>> with
>>> an apparently invalid URL.
>>>
>>> All commands are run in PowerShell on
>>>>
>>>>
>>>> PS D:\Entwicklung\Projekte\scm-svn-test-at-sign>
>>>> [System.Environment]::OSVersion.Version
>>>>
>>>> Major Minor Build Revision
>>>> ----- ----- ----- --------
>>>> 10 0 16299 0
>>>
>>>
>>>
>>> First tried:
>>>>
>>>>
>>>> PS D:\Entwicklung\Projekte\scm-svn-test-at-sign> svn --version
>>>> svn, version 1.9.7 (r1800392)
>>>> compiled Aug 8 2017, 22:14:48 on x86-microsoft-windows
>>>
>>>
>>>
>>> from TortoiseSVN 1.9.7
>>>
>>>> PS D:\Entwicklung\Projekte\scm-svn-test-at-sign> svn co
>>>> file://D:\Entwicklung\svn-repos\scm-sv
>>>> n-test-at-sign .
>>>> svn: E235000: In file
>>>>
>>>> 'D:\Development\SVN\Releases\TortoiseSVN-1.9.7\ext\subversion\subversion\libsvn_client\checkout.c'
>>>> line 87: assertion failed (svn_uri_is_canonical(url, scratch_pool))
>>>
>>>
>>>
>>> Then tried MaxSVN:
>>>>
>>>>
>>>> PS D:\Entwicklung\Projekte\scm-svn-test-at-sign>
>>>> D:\Entwicklung\Programme\svn-1.10.0-alpha3\sv
>>>> n.exe --version
>>>> svn, version 1.10.0-alpha3 (Alpha 3)
>>>> compiled Aug 22 2017, 08:13:12 on x86_64-microsoft-windows10.0.14393
>>>
>>>
>>>
>>>
>>>> PS D:\Entwicklung\Projekte\scm-svn-test-at-sign>
>>>> D:\Entwicklung\Programme\svn-1.10.0-alpha3\sv
>>>> n.exe co file://D:\Entwicklung\svn-repos\scm-svn-test-at-sign .
>>>> svn: E235000: In file '..\..\..\subversion\libsvn_client\checkout.c'
>>>> line
>>>> 88: assertion failed (svn_uri_is_canonical(url, scratch_pool))
>>>
>>>
>>>
>>> I know that the URL should start with file:///, but I would expect
>>> something
>>> like "invalid URL". The assert failed isn't really helpful to the user.
>>>
>>> Ideas?
>>>
>>> Michael
>>
>>
>> Hello Michael,
>>
>> Agreed that Subversion shouldn't crash on that.
>>
>> I don't have much time to look into it further, but I've quickly done
>> a few tests on the command line. It seems you only get this crash if
>> you use a backslash (which is normal on Windows of course) after the
>> 'D:'. If you use a forward slash it doesn't crash.
>>
>> So it seems that in that particular case, in libsvn_subr/dirent_uri.c
>> [1], svn_uri_is_canonical() does not agree with the output of
>> svn_uri_canonicalize().
>>
>> [1]
>> http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_subr/dirent_uri.c
>
>
> Thanks Johan,
>
> shall I file an issue in JIRA?

Yes, please go ahead with that, to make sure we don't forget about
this. Not sure if anyone will get to this soonish, but having the
issue on record is a good first step in any case.

Thanks,

-- 
Johan
Received on 2018-03-30 21:13:01 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.