* Prevent a segfault if the destination URI of a copy / move operation is
not under DAV control. Return 405 (Method not allowed) instead.
PR: 44734
Submitted by: rpluem
Reviewed by: rpluem, niq, trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660571
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.2.9
+ *) mod_dav: Return "method not allowed" if the destination URI of a WebDAV
+ copy / move operation is no DAV resource. PR 44734 [Ruediger Pluem]
+
*) http_filters: Don't return 100-continue on redirects. PR 43711
[Ruediger Pluem]
http://people.apache.org/~fielding/p/ab-sync.txt
+1: fielding, jim, wrowe
- * mod_dav: Return "method not allowed" if the destination URI of a WebDAV
- copy / move operation is no DAV resource. PR 44734
- Trunk version of patch:
- http://svn.apache.org/viewvc?rev=644050&view=rev
- Backport version for 2.2.x of patch:
- Trunk version of patch works
- +1: rpluem, niq, trawick
-
* mod_rewrite: Initialize hash needed by ap_register_rewrite_mapfunc early
enough. PR 44641
Trunk version of patch:
"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);