httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/fs repos.c
Date Sat, 13 Mar 2004 12:56:47 GMT
jorton      2004/03/13 04:56:47

  Modified:    modules/dav/fs repos.c
  Log:
  Fix litmus test copy_nodestcoll; 2518 requires that MKCOL MUST fail
  with 409 on missing intermediates:
  
  * modules/dav/fs/repos.c (dav_fs_create_collection): Give a 409 rather
  than a 403 if apr_dir_make fails with ENOENT.
  
  Revision  Changes    Path
  1.81      +5 -0      httpd-2.0/modules/dav/fs/repos.c
  
  Index: repos.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/fs/repos.c,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -w -d -u -r1.80 -r1.81
  --- repos.c	13 Mar 2004 12:52:04 -0000	1.80
  +++ repos.c	13 Mar 2004 12:56:47 -0000	1.81
  @@ -1011,6 +1011,11 @@
                                "There is not enough storage to create "
                                "this collection.");
       }
  +    else if (APR_STATUS_IS_ENOENT(status)) {
  +        return dav_new_error(ctx->pool, HTTP_CONFLICT, 0,
  +                             "Cannot create collection; intermediate "
  +                             "collection does not exist.");
  +    }
       else if (status != APR_SUCCESS) {
           /* ### refine this error message? */
           return dav_new_error(ctx->pool, HTTP_FORBIDDEN, 0,
  
  
  

Mime
View raw message