summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2024-07-29 10:40:42 +0200
committerJoe Orton <jorton@apache.org>2024-07-29 10:40:42 +0200
commita288cd39ce2f0e05f1cb3e41aa83a9f173ded1e3 (patch)
tree31c5039507d623ac1e892bcf0e1ab133a6d87ca9 /modules
parentAdd some compatibility notes for some mod_rewrite flags added in lte last rel... (diff)
downloadapache2-a288cd39ce2f0e05f1cb3e41aa83a9f173ded1e3.tar.xz
apache2-a288cd39ce2f0e05f1cb3e41aa83a9f173ded1e3.zip
* modules/dav/fs/repos.c (dav_fs_get_resource): Return a 404 rather
than a 400 where r->path_info is not empty for a file; a valid but unsatisfiable request to a path which cannot exist, e.g. /dav/foo.txt/blah where /dav/foo.txt is not a directory. Github: closes #465 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919580 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/dav/fs/repos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c
index 701b4425e0..23d798177c 100644
--- a/modules/dav/fs/repos.c
+++ b/modules/dav/fs/repos.c
@@ -777,10 +777,10 @@ static dav_error * dav_fs_get_resource(
{
/*
** The base of the path refers to a file -- nothing should
- ** be in path_info. The resource is simply an error: it
+ ** be in path_info. The resource cannot exist: it
** can't be a null or a locknull resource.
*/
- return dav_new_error(r->pool, HTTP_BAD_REQUEST, 0, 0,
+ return dav_new_error(r->pool, HTTP_NOT_FOUND, 0, 0,
"The URL contains extraneous path "
"components. The resource could not "
"be identified.");