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

Bug? perl SVN bindings in win32

From: Colin Higgs <colin.higgs_at_ed.ac.uk>
Date: 2005-04-19 15:16:39 CEST

This is essentially a re-post, but I got no replies to my last email and
re-reading it I guess I didn't clearly ask a question.

I think I have found a bug in the perl bindings in the win32 port of
subversion. The following code works under Linux, but not Windows XP:

######## begin code ########

use warnings;

use Data::Dumper;
use SVN::Client;
$Data::Dumper::Indent = 1;

my $svn = SVN::Client->
    new(
       auth=>
       [SVN::Client::get_ssl_server_trust_prompt_provider(\&callback)]
       );
my $res = $svn->ls("https://somehost/somepath","HEAD",0);

print Dumper($res);

sub callback {
     my ($cred,$realm,$ifailed,$server_cert_info,$may_save) = @_;

     print "Failed with: $ifailed\n";
     $cred->accepted_failures($ifailed);
     print "Leaving callback\n";
}

######## end code ########

The error under Win32 is:

"Type error in argument 2 of
svn_auth_cred_ssl_server_trust_t_accepted_failures_set. Expected
_p_apr_uint32_t"

I've also tried things like $SVN::Client::Auth::SSL::UNKNOWNCA inside
the $cred->accepted_failures call, which results in the sme error.

The subversion version under linux is 1.1.4 (from fedora updates for
core 3). Under windows I've tried 1.1.3, 1.1.4 and 1.2.0-rc1 (all with
the same error).

Could this be an incorrect cast in the c glue code? I'm guessing here
since I've not gone in to the source yet to see how things really work.

In case I do need to hunt around in the source, I'd appreciate any clues
as to where to look...

Colin.

-- 
Unix is designed to help you avoid doing boring, repetitive things
     - if you can remember how.
Windows makes boring, repetitive things pretty and easy to remember
     - but you still end up doing boring repetitive things.
Colin Higgs,
School of Engineering and Electronics
University of Edinburgh                 Email:  colin.higgs@ed.ac.uk
King's Buildings, Mayfield Road,        Tel:    +44 (0)131 6508557
Edinburgh, Scotland, EH9 3JL            Fax:    +44 (0)131 6506551
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 19 15:19:10 2005

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.