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

Re: Perl Bindings: Assertion svn_uri_is_canonical failed

From: Branko Čibej <brane_at_wandisco.com>
Date: Tue, 27 Jan 2015 20:38:19 +0100

On 27.01.2015 20:30, Stefan Sperling wrote:
> On Tue, Jan 27, 2015 at 07:52:49PM +0100, Stefan Sperling wrote:
>> prints "http:///svn.example.com/foo/bar"
>> (Why 3 slashes after "http:" instead of 2? I don't know. It seems our test
>> suite doesn't cover this case. I'm not sure what's expected.)
> This turns out to be expected. Whether or not such a URL works depends
> on the scheme. An extra slash is specified for "file://" but not "http://".
> svn_uri_canonicalize() only cares about syntax, not semantics.
> http://colabti.org/irclogger/irclogger_log/svn-dev?date=2015-01-27#l408

Let's be precise here: It's not "an extra slash" but "an empty authority
section in the URL". As I said on IRC, it's not svn_uri_canonicalize's
job to make sure the URL is valid, only that it's in a canonical form.

-- Brane
Received on 2015-01-27 20:40:23 CET

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.