]> granicus.if.org Git - apache/commit
mod_dav: Fix PR 55306.
authorBen Reser <breser@apache.org>
Thu, 3 Oct 2013 05:29:35 +0000 (05:29 +0000)
committerBen Reser <breser@apache.org>
Thu, 3 Oct 2013 05:29:35 +0000 (05:29 +0000)
commit3c6d4757a1e04cfc3c5acf5f3be2a27ee35e529e
treeb1978e54d8b05391cf915329bd66a3617cd681b6
parentef357793f440c040cc1ebd12857cf03d0b150934
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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1528718 13f79535-47bb-0310-9956-ffa450edef68
modules/dav/main/mod_dav.c
modules/dav/main/mod_dav.h
modules/dav/main/util.c