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

"svn mkdir URL" gives poor error message when directory exists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: ---
    • Fix Version/s: 1.9.0
    • Component/s: mod_dav_svn
    • Labels:

      Description

      % svn mkdir https://svn.apache.org/repos/asf/myfaces/
      svn: MKCOL of '/repos/asf/!svn/wrk/d60789ed-26f6-0310-bcf6-5792b5ac7a75/myfaces': 405 
      Method Not Allowed (https://svn.apache.org)
      
      This is the error message returned when a 'mkdir' is run on a directory already exists over WebDAV.  
      This is a rather unintuitive error message.
      
      Perhaps a 409 code (Conflict) could be more intuitive than a 405 (Method Not Allowed).
      
      Also note that we could stick with 405 but fill up r->status_line with 'Directory already exists' rather 
      than leaving it to be the 'default' status line.
      
      This issue could also be combined with the 'bad error messages' issue; but I can't seem to find it.
      

        Attachments

          Activity

            People

            • Assignee:
              jerenkrantz Justin Erenkrantz
              Reporter:
              jerenkrantz Justin Erenkrantz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: