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

--- Comment #1 from vijayaguru <[email protected]> 2011-05-31 09:06:29 UTC ---
Created attachment 27095
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27095
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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to