Subject: | SVN::Web fails to authenticate to https:// urls using saved certificate |
I can use svn on the commandline and save the certificate (p)ermanently
and login.
SVN::Web will fail to match the certificate when run as the same user.
The attached patch to Web.pm causes SVN::Client to load the stored auth
data from ~/.subversion.
Subject: | Web.pm.patch |
--- SVN-Web-0.53/lib/SVN/Web.pm Sun Apr 29 12:22:51 2007
+++ Web.pm Tue Jan 1 20:09:02 2008
@@ -141,9 +141,14 @@
$repo_uri = "file://$repo_uri" if $repo_uri =~ m{^/};
eval {
+ my $client = SVN::Client->new( pool => $repospool );
+ my $auth = $client->auth;
+
$REPOS{$repos}{uri} ||= $repo_uri;
$REPOS{$repos}{ra} ||= SVN::Ra->new(url => $repo_uri,
- pool => $repospool);
+ pool => $repospool,
+ auth => $auth,
+ );
};
if($@) {