not under DAV control. Return 405 (Method not allowed) instead.
PR: 44734
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@644050
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) mod_dav: Return "method not allowed" if the destination URI of a WebDAV
+ copy / move operation is no DAV resource. PR 44734 [Ruediger Pluem]
+
*) Introduced ap_expr API for expression evaluation.
This is adapted from mod_include, which is the first module
to use the new API.
"Destination URI had an error.");
}
+ if (dav_get_provider(lookup.rnew) == NULL) {
+ return dav_error_response(r, HTTP_METHOD_NOT_ALLOWED,
+ "DAV not enabled for Destination URI.");
+ }
+
/* Resolve destination resource */
err = dav_get_resource(lookup.rnew, 0 /* label_allowed */,
0 /* use_checked_in */, &resnew);