httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/main mod_dav.c
Date Fri, 02 Nov 2001 19:25:50 GMT
gstein      01/11/02 11:25:50

  Modified:    modules/dav/main mod_dav.c
  Log:
  Don't change the type of the new resource. The provider will update it
  when the copy/move takes place.
  
  Specifically, the new location might imply a different type from the
  original, so updating the type is bad mojo. In the observed case, a
  resource was copied into a working collection; the type of the new
  resource is supposed to be WORKING. Copying the type would be wrong if
  the source was REGULAR.
  
  Revision  Changes    Path
  1.63      +0 -8      httpd-2.0/modules/dav/main/mod_dav.c
  
  Index: mod_dav.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/mod_dav.c,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- mod_dav.c	2001/10/09 00:48:51	1.62
  +++ mod_dav.c	2001/11/02 19:25:50	1.63
  @@ -2663,14 +2663,6 @@
        */
       resnew_state = dav_get_resource_state(lookup.rnew, resnew);
   
  -    /* If destination does not exist, initialize resource object
  -     * to be same type as the source.
  -     */
  -    if (!resnew->exists) {
  -        resnew->type = resource->type;
  -        resnew->collection = resource->collection;
  -    }
  -
       /* In a MOVE operation, the destination is replaced by the source.
        * In a COPY operation, if the destination exists, is under version
        * control, and is the same resource type as the source,
  
  
  

Mime
View raw message