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

wrong error code on checkout of not existing URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • Beta
    • libsvn_ra_neon

    Description

      When I checkout a not existing path my own SVN server I get a 405
      instead of a 404:
      
        % svn co http://k75/svn/notexists .
        subversion/libsvn_ra_dav/util.c:81: (apr_err=175002, src_err=0)
        svn: RA layer request failed
        svn: PROPFIND of /: 405 Method Not Allowed
      
      When I try the same with collab.net's server, I get the correct answer:
      
        % svn co http://svn.collab.net/repos/svn/notexists .
        subversion/libsvn_ra_dav/util.c:81: (apr_err=175002, src_err=0)
        svn: RA layer request failed
        svn: PROPFIND of /repos/svn/!svn/bc/3459/notexists: 404 Not Found
      
      Looks like a bug to me. I have 3459 running both as server and client.
      
      The configuration on my server is:
      
      <Location /svn>
          DAV svn
          SVNParentPath /usr/local/svn
      </Location>
      
      I've tried with SVNPath too, but get the same result. Checking out
      existing paths seems to work fine.
      

      Original issue reported by andk

      Attachments

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: