summaryrefslogtreecommitdiffstats
path: root/modules/dav/main
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2009-11-09 22:32:10 +0100
committerStefan Fritsch <sf@apache.org>2009-11-09 22:32:10 +0100
commit953abd34535f9e95f47cc4a22f32275de00a3a03 (patch)
tree75c5b49b5aae6170f5d15d6ffd2a42023f698254 /modules/dav/main
parentReturn 409 instead of 500 for a LOCK request if the parent resource does not (diff)
downloadapache2-953abd34535f9e95f47cc4a22f32275de00a3a03.tar.xz
apache2-953abd34535f9e95f47cc4a22f32275de00a3a03.zip
mod_dav_fs: Include uri when logging a PUT error due to connection abort.
PR: 38149 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834245 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav/main')
-rw-r--r--modules/dav/main/mod_dav.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c
index bdc14448c0..1e6f303c56 100644
--- a/modules/dav/main/mod_dav.c
+++ b/modules/dav/main/mod_dav.c
@@ -982,7 +982,10 @@ static int dav_method_put(request_rec *r)
if (rc != APR_SUCCESS) {
err = dav_new_error(r->pool, HTTP_INTERNAL_SERVER_ERROR, 0,
- "Could not get next bucket brigade");
+ apr_psprintf(r->pool,
+ "Could not get next bucket "
+ "brigade (URI: %s)",
+ ap_escape_html(r->pool, r->uri)));
break;
}
@@ -1005,8 +1008,10 @@ static int dav_method_put(request_rec *r)
rc = apr_bucket_read(b, &data, &len, APR_BLOCK_READ);
if (rc != APR_SUCCESS) {
err = dav_new_error(r->pool, HTTP_BAD_REQUEST, 0,
- "An error occurred while reading "
- "the request body.");
+ apr_psprintf(r->pool,
+ "An error occurred while reading"
+ " the request body (URI: %s)",
+ ap_escape_html(r->pool, r->uri)));
break;
}