[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: Ben Reser <ben_at_reser.org>
Date: Tue, 27 Jan 2015 12:53:49 -0800

On 1/27/15 9:24 AM, 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)

$ctx->url_from_path is calling svn_client_url_from_path():
http://subversion.apache.org/docs/api/1.8/group__clnt__sessions.html#ga32b1f7f851452ec8ecc8c2d899de2b0e

svn_client is dropped since $ctx is the client library "object".

The purpose of that function is to provide a entry URL for a node in the
repository. You can abuse it to do canonicalizations (because it was poorly
designed) but that's not the purpose of the API. So you should use
SVN::Core::uri_canonicalize().
Received on 2015-01-27 21:55:19 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.