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

Issue with merging files containing spaces

From: Matthew Inger <mattinger_at_gmail.com>
Date: Tue, 2 Sep 2008 13:46:33 -0400

I'm running into an issue when doing branch merges. It seems that file
names with spaces in them
cannot properly be merged, resulting in the merging error:

svn: URL 'http://host/svn/repos/trunk/dir with spaces/file.txt' is malformed
or the scheme or host or path is missing.

I've isolated down the cause of the problem to the following function:

       int ne_uri_parse(const char *uri, ne_uri *parsed);

It seems that when trying to parse the path component, it is doing the
following:

       while (uri_lookup(*p) & URI_SEGCHAR)
            p++;

The problem here is that definition of URI_SEGCHAR includes only the
following:

FS -- /
PC -- %
PS -- +
SD -- ! $ & ' ( ) * + , ; =
CL -- :
AL -- Alpabet
DG -- Digit
DS -- dash
DT -- .
US -- _
TD -- ~

Notice that spaces are not included in this definition.

So the solution is either to change how neon parses the URI, or to properly
escape the spaces with a "+" symbol
in the "session.c" file which is calling into the neon library.

Any thoughts?
Received on 2008-09-02 19:54:37 CEST

This is an archived mail posted to the Subversion Dev mailing list.

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