Project

General

Profile

Got error in SVN certificate after upgrade

Added by Viet Vo over 12 years ago

Hello,

I was upgraded redmine from version 1.1.2 to 1.2.1; Everything is Ok but Repository function tab.

In the old version, I'm already set SVN_BIN to "svn --config-dir /tmp/redmine-svn" with no error.

But in new upgraded version (1.2.1), redmine notify to me this error: "Scm command is not available. Please check settings on the administration panel." in repository setting tab. When set SVN_BIN back to "svn" (or /usr/bin/svn), SCM appear ok and redmine come back with certificate error "Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted"; "The entry or revision was not found in the repository."

So, what is the true config in SVN_BIN to let redmine know certificate directory?

subversion_adapter.rb

        # SVN executable name
        #SVN_BIN = Redmine::Configuration['scm_subversion_command'] || "svn --config-dir /var/www/svn-config/" 
        SVN_BIN = "svn --trust-server-cert --non-interactive --config-dir /var/www/svn-config/"