Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-1758

Better error message when ssl-authority-files can't be read

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: unscheduled
    • Component/s: libsvn_ra_neon
    • Labels:
      None

      Description

      I copied my entire $HOME/.subversion directory and a wc over to
      a new system (no shared NFS directories here) and attempted an
      'svn update'.
      
      I got this error message:
      
      % svn update
      subversion/libsvn_ra_dav/session.c:717: (apr_err=175006)
      svn: Invalid config: unable to load certificate file
      
      It turned out that the server certificate file listed in
      $HOME/.subversion/servers wasn't on the new system:
      
      [groups]
      xyz = svn.xyz.net, svn
      
      [xyz]
      ssl-authority-files = /usr/share/ssl/xyz-ca/certs/ca.crt
      
      It would be great if the error message could have said
      been clearer
      
      subversion/libsvn_ra_dav/session.c:717: (apr_err=175006)
      svn: Invalid config: unable to open certificate file
      '/usr/share/ssl/xyz-ca/certs/ca.crt' for reading: file
      does not exist.
      
      Where the "file does not exist" would come from strerror().
      Having the filename that's trying would help a lot.
      
      Blair
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              blair Blair Zajac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: