Summary: | Improve error handling during "UNLOCK" | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | vijayaguru <vijay> |
Component: | mod_dav | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | normal | CC: | vijay |
Priority: | P2 | Keywords: | PatchAvailable |
Version: | 2.5-HEAD | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Attachments: | patch that improves error handling during "dav unlock" |
Description
vijayaguru
2011-05-31 07:23:56 UTC
Created attachment 27095 [details]
patch that improves error handling during "dav unlock"
Attaching the patch that fixes this issue.
This patch does the following things to maintain backward compatibility.
1. Copied dav/main/util_lock.c: dav_unlock() to a static function do_dav_unlock() which accepts "dav_error **err" as an outparam and preserves any error in case of failures.
2. dav_unlock() will call do_dav_unlock() and return HTTP_STATUS code in case of any failures; Otherwise return OK.(Old callers can still use this method)
3.dav_unlock2() will also call do_dav_unlock() and return dav_error type in case of any failures; Otherwise return NULL.
4.dav/main/mod_dav.c: dav_method_unlock() will call dav_unlock2() and *handles* the error in case of any failures.
Updating Keyword as "PatchAvailable". |