]> granicus.if.org Git - apache/commit
Give mod_dav the ability to output both standard and customized
authorGreg Stein <gstein@apache.org>
Fri, 1 Mar 2002 03:25:49 +0000 (03:25 +0000)
committerGreg Stein <gstein@apache.org>
Fri, 1 Mar 2002 03:25:49 +0000 (03:25 +0000)
commit317cd14108b0db02bd849067becf2f544feed201
tree26897c54bc97f1ea146b57f0ad05bb15d13fbb4d
parente96865b046f958583e8b7d241eb47f2b86b8e4a4
Give mod_dav the ability to output both standard and customized
<D:error> responses.  It's crucial for marshalling svn error messages
back over to the client; and someday it will be needed to return
specific <DAV:> errors as dictated by the DeltaV spec.

* mod_dav.h (dav_error): add two new fields -- an optional error
    namespace, and an error-tag-name.  Remove the 'delayed computation'
    function and cxt ptrs in this struct;  they were never used.

  (dav_new_error_tag):  new alternative constructor that takes new
    fields.

* util.c (dav_new_error_tag):  implement constructor.

* mod_dav.c (dav_error_response_tag):  new function to output
    'standard' xml error response based on error struct.

  (dav_handle_err): if no multistatus response is passed in, and if an
    error-tag is defined, then call our new xml-output routine.

Submitted by: Ben Collins-Sussman <sussman@collab.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93651 13f79535-47bb-0310-9956-ffa450edef68
modules/dav/main/mod_dav.c
modules/dav/main/mod_dav.h
modules/dav/main/util.c