I encountered an error when trying to link Ontime to our company's Subversion source code management system. The solution took a while to track down, so I thought I'd share.
Version: 8.1.0
Settings:
Command Line Client: C:\Program Files\CollabNet Subversion\svn.exe
Server URL: svn:\\{servername}
Username: SVNUser
Password: SVNPassword
Working Copy Location: Existing folder on local drive
Enable Logging: Checked
Timeout Value: 120 (set this high at the recommendation of Sr. Axosoft Support Tech)
Symptom:
When attempting to link a file by clicking the green plus sign on the SCM Files tab, an unhandled exception occurred:
System.NullReferenceException: Object reference not set to an instance of an object.
at Axosoft.Common.SubversionProcess.List(Boolean refresh)
at Axosoft.Common.SubversionWrapper.List(Boolean refresh) (etc...)
In the Exception Viewer, it lists a mesage "SourceControlException/Error running command." Details looked like this:
Source: Axosoft.SourceControl.Subversion
Command Line Arguments -- ls "svn://{servername}/path/trunk" -R --xml --non-interactive --non-interactive
Standard Error Output -- svn: Authentication error from server: Password incorrect
Resolution
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
There is a file in the Subversion server configuration called svnserve.conf.
The default setting grants anonymous read-only access using the section &
setting below. Our setting denied anonymous read access. It appears that Ontime
attempts to read the tree structure from subversion prior to authenticating.
Granting read access to anonymous users resolved the error.
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
[general]
### These options control access to the
repository for unauthenticated
### and authenticated users. Valid values
are "write", "read",
### and "none". The sample
settings below are the defaults.
anon-access = none (change to 'read' for Ontime to work)
auth-access = write