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

a little bug when checkout invalid url

From: Shmuel Hanoch <shmuel_at_infinitylabs.co.il>
Date: Wed, 27 Sep 2017 18:22:09 +0300

Hi,

When I (accidently) tried to checkout some repository from a wrong url
(with ":" instead of a "@"), the subversion process crushed on assertion.
It's easy to reproduce on my machine, for example:

svn co svn+ssh://a:l
svn:
/build/subversion-8E3yhQ/subversion-1.9.3/subversion/libsvn_subr/dirent_uri.c:1339:
svn_uri_basename: Assertion `svn_uri_is_canonical(uri, NULL)' failed.
zsh: abort (core dumped) svn co svn+ssh://a:l

Although this is an "illegal" url, there probably should be some error
handling instead of an assertion...

Thanks,

Shmuel Hanoch
Received on 2017-09-27 17:24:56 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.