]> granicus.if.org Git - apache/commit
Merge r1528718 from trunk:
authorJim Jagielski <jim@apache.org>
Fri, 18 Oct 2013 13:36:21 +0000 (13:36 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 18 Oct 2013 13:36:21 +0000 (13:36 +0000)
commitd34ff2fed80fffe7ad359a3744ee1a9d52dd7624
tree2bd059549f95c6fbb5676219555ce6a2a609371f
parentf195ab3bec696fc4add8621e569b107677b38593
Merge r1528718 from trunk:

mod_dav: Fix PR 55306.

Makes mod_dav no longer require that the lock token be provided when the
source of a COPY is locked.  The prior behavior was in violating of
RFC 4918 which says that the lock token is only required on resources
that may be modified by the method.

* modules/dav/main/mod_dav.h
  (DAV_VALIDATE_NO_MODIFY): New flag to be passed to dav_validate_* functions.

* modules/dav/main/mod_dav.c
  (dav_method_copymove): Use the new flag when calling dav_validate_request()
    on the COPY source.

* modules/dav/main/util.c
  (dav_validate_resource_state): Use the flag to decide to ignore if the lock
    token is not provided.

Submitted by: breser
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1533447 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
STATUS
modules/dav/main/mod_dav.c
modules/dav/main/mod_dav.h
modules/dav/main/util.c