[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: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 27 Jan 2015 19:52:49 +0100

On Tue, Jan 27, 2015 at 12:24:47PM -0500, Lathan Bidwell wrote:
> In the Perl SWIG bindings:
>
> $ctx->url_from_path
>
> I believe calls the svn_uri_canonicalize in 1.8.8, but I believe that its a
> secondary effect (in 1.6, it doesn't cleanse the url)
>
> Is there a perl SWIG binding for svn_uri_canonicalize?

I'm only familiar with the C API, not much with the bindings.

There is this: SVN::_Core::svn_uri_canonicalize

The script:

use SVN::Core;
my $uri = SVN::_Core::svn_uri_canonicalize("http:////svn.example.com//foo/bar///");
print $uri."\n"

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.)

I suppose _Core (with leading underscore) is a private namespace.
I don't know why this isn't part of the public SVN::Core:: namespace.
It probably should be.

Unfortunately the bindings are badly maintained and documentation is
almost non-existent :(
See http://svn.haxx.se/dev/archive-2011-02/0544.shtml
and also "Improve bindings to other programming languages"
on this page: http://subversion.apache.org/ideas.html#ideas
Received on 2015-01-27 19:54:29 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.