You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/11/14 23:56:50 UTC

[Bug 54145] Poor error handling in dav_method_put()

https://issues.apache.org/bugzilla/show_bug.cgi?id=54145

--- Comment #1 from Ben Reser <be...@reser.org> ---
Created attachment 29598
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29598&action=edit
Improves error handling in dav_method_put()

The attached patch resolves the problems described on this bug.

1) The error message for the ap_get_brigade() is changed to "An error occurred
while reading the request body" and the later apr_bucket_read() calls error
message is changed to be unique by adding the phrase "from the bucket."  Since
the  apr_bucket_read() error is highly unlikely the more technical and internal
oriented error message is appropriate.

2) A new function dav_join_error() is created that allows one error stack to be
added to the end of another.  This is used in non-looping portions of
dav_method_put to preserve both the mod_dav error and the DAV providers error.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org