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

Re: Check out problem because of alleged problematic URL

From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Sun, 6 Jun 2010 12:57:15 -0500

On Jun 6, 2010, at 11:39, Daniel Shahaf wrote:

> Hirschberg, Benyamin wrote on Sun, 6 Jun 2010 at 16:49 -0000:
>>
>
>> [benyamin@ada-srp ~]$ svn checkout http://ada-srp/kr/svn/trunk/ kr_repos
>> svn: URL 'http://ada-srp/kr/svn/trunk' is malformed or the scheme or host or path is missing
>
> That error message comes from neon's ne_uri_parse(). With a client using
> serf, or another version of neon, the error might disappear.
>
> [[[
> /* from libsvn_ra_neon/session.c */
> if (ne_uri_parse(url, uri)
> || uri->host == NULL || uri->path == NULL || uri->scheme == NULL)
> {
> ne_uri_free(uri);
> return svn_error_createf(SVN_ERR_RA_ILLEGAL_URL, NULL,
> _("URL '%s' is malformed or the "
> "scheme or host or path is missing"), url);
> }
> ]]]

Reading that snippet of code, I don't understand why the error would be triggered. It says it should only occur if the host, path or scheme are null. In the URL supplied by the user, it seems clear that the host is meant to be "ada-srp", the path is "/kr/svn/trunk/ kr_repos" and the scheme is "http:" so I don't see the problem.

What version of neon are you using, Benjamin?
Received on 2010-06-06 19:58:00 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.