httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35981] - mod_dav overrides dav_fs response on PUT failure
Date Wed, 07 Mar 2007 17:59:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35981>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35981





------- Additional Comments From basant.kukreja@sun.com  2007-03-07 09:59 -------
Suggested fix :

Index: modules/dav/main/mod_dav.c
===================================================================
--- modules/dav/main/mod_dav.c	(revision 512953)
+++ modules/dav/main/mod_dav.c	(working copy)
@@ -959,7 +959,8 @@
     if ((err = (*resource->hooks->open_stream)(resource, mode,
                                                &stream)) != NULL) {
         /* ### assuming FORBIDDEN is probably not quite right... */
-        err = dav_push_error(r->pool, HTTP_FORBIDDEN, 0,
+        int status = err->status ? err->status : HTTP_FORBIDDEN;
+        err = dav_push_error(r->pool, status, 0,
                              apr_psprintf(r->pool,
                                           "Unable to PUT new contents for %s.",
                                           ap_escape_html(r->pool, r->uri)),

I am not confident of this fix because it may cause unexpected error 
codes from PUT method.

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

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


Mime
View raw message