summaryrefslogtreecommitdiffstats
path: root/modules/dav/main/mod_dav.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mod_dav: Add dav_get_provider_name() function to obtain the nameGraham Leggett2016-06-121-0/+6
| | | | | | | of the provider from mod_dav. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747946 13f79535-47bb-0310-9956-ffa450edef68
* Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygenWilliam A. Rowe Jr2016-06-091-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747469 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: Add support for childtags to dav_error.Graham Leggett2016-05-311-8/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1746207 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-191-0/+1
| | | | | | | | | had none. Those were not detected by the coccinelle script. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725485 13f79535-47bb-0310-9956-ffa450edef68
* More ap_casecmpstr[n]() usages (follow up to r1715876).Yann Ylavic2015-11-231-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715880 13f79535-47bb-0310-9956-ffa450edef68
* Save a few bytes in conf poolChristophe Jaillet2015-06-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1683884 13f79535-47bb-0310-9956-ffa450edef68
* core, modules: like r1657897 but for core and other modules than mod_proxy.Yann Ylavic2015-03-101-3/+6
| | | | | | | | | | | | | | More uses of ap_map_http_request_error() and AP_FILTER_ERROR so that we never return an HTTP error status from a handler if some filter generated a response already. That is, from a handler, either ap_get_brigade() (an input filter) returned AP_FILTER_ERROR and we must forward it to ap_die(), or ap_pass_brigade() (an output filter) failed with any status and we must return AP_FILTER_ERROR in any case for ap_die() to determine whether a response is needed or not. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1665625 13f79535-47bb-0310-9956-ffa450edef68
* tab vs spaceChristophe Jaillet2014-10-221-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1633529 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR 56480: PROPFIND walker doesn't encode hrefs properlyBen Reser2014-06-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts r1529559 partially (specifically the dav_xml_escape_uri) bit. Reverts r1531505 entirely. * modules/dav/main/mod_dav.c (dav_xml_escape_uri): Revert the piece of r1529559 that removes the URI escaping from this function. * modules/dav/main/props.c (dav_do_prop_subreq): Escape the URI before doing a sub request with it. This resolves some properties like getcontenttype from failing to be returned for files that contain characters that require encoding in their path. * modules/dav/main/mod_dav.h (dav_resource): Note the inconsistency in the documentation. * modules/dav/fs/repos.c (dav_fs_get_resource): Don't use the unparsed_uri to set the uri field of the resource. This is the correct fix for the double encoding in mod_dav_fs that led to the dav_xml_escape_uri() change and r1531505. (dav_fs_walker, dav_fs_append_uri): Revert r1531505 changes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1602338 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: Fix invalid Location header when a resource is created by passing anBen Reser2014-05-061-1/+1
| | | | | | | | | | | | | | | | absolute URI on the request line. Using r->unparsed_uri is wrong since it might contain a scheme, hostname and port. See section 5.1.2 of RFC 2616, an absolute URI is allowed. The unparsed_uri field is absolutely unparsed. The current code causes the Location header to end up having the scheme, host and port included twice. * modules/dav/main/mod_dav.c (dav_created): Call ap_escape_uri() on r->uri when caller doesn't provide a location. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1592655 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR 55397: dav_resource->uri treated as an unparsed uri.Ben Reser2013-10-061-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | The change made for PR 54611 caused this field to be treated as unescaped. mod_dav_svn however, provided escaped URIs. Essentially breaking support for paths with non-URI safe characters in SVN. Adjust the code so that dav_resource->uri is assumed to be escaped and adjust mod_dav_fs so that it uses escaped URIs in this field. * modules/dav/fs/repos.c (dav_fs_get_resource): Use the unparsed_uri to contruct the resource uri. * modules/dav/main/mod_dav.c (dav_xml_escape_uri): Do not uri escape, just handle xml escaping. (dav_created): Assume that locn if provided is escaped. (dav_method_copymove, dav_method_bind): Use the unparsed_uri on the request when calling dav_created() to adjust to locn assuming it is escaped. * modules/dav/main/mod_dav.h (dav_resource): Document that uri is escaped. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1529559 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: Fix PR 55306.Ben Reser2013-10-031-1/+2
| | | | | | | | | | | | | | | | | | | | | Makes mod_dav no longer require that the lock token be provided when the source of a COPY is locked. The prior behavior was in violating of RFC 4918 which says that the lock token is only required on resources that may be modified by the method. * modules/dav/main/mod_dav.h (DAV_VALIDATE_NO_MODIFY): New flag to be passed to dav_validate_* functions. * modules/dav/main/mod_dav.c (dav_method_copymove): Use the new flag when calling dav_validate_request() on the COPY source. * modules/dav/main/util.c (dav_validate_resource_state): Use the flag to decide to ignore if the lock token is not provided. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1528718 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: set r->status_line in dav_error_response.Jan Kaluža2013-09-301-0/+1
| | | | | | | It's used as argument in next ap_rvputs call. PR 55426. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1527509 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug #55304 with the provided patch, slightly reformatted.Greg Stein2013-07-241-2/+3
| | | | | | | | | | | In short: do not validate conditions of a COPY source's parent since it is not modified during the operation. * modules/dav/main/mod_dav.c: (dav_method_copymove): adjust params to dav_validate_request() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1506714 13f79535-47bb-0310-9956-ffa450edef68
* CVE-2013-1896Graham Leggett2013-05-231-5/+6
| | | | | | | | | | | mod_dav: Sending a MERGE request against a URI handled by mod_dav_svn with the source href (sent as part of the request body as XML) pointing to a URI that is not configured for DAV will trigger a segfault. Submitted by: Ben Reser <ben reser.org> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1485668 13f79535-47bb-0310-9956-ffa450edef68
* core: Stop the HTTP_IN filter from attempting to write error bucketsGraham Leggett2013-05-141-3/+5
| | | | | | | | | to the output filters, which is bogus in the proxy case. Create a clean mapping from APR codes to HTTP status codes, and use it where needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1482522 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: mod_dav overrides dav_fs response on PUT failure. PR 35981.Graham Leggett2013-04-301-6/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1477687 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: Ensure URI is correctly uriencoded on return. PR 54611Graham Leggett2013-04-271-1/+3
| | | | | | | | Patch submitted by Timothy Wood <tjw omnigroup com> Tested by William Lewis <wiml omnigroup com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1476621 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: Sending an If or If-Match header with an invalid ETag doesn'tGraham Leggett2013-04-271-11/+11
| | | | | | | | | | result in a 412 Precondition Failed for a COPY operation. PR: 54610 Submitted by: Timothy Wood <tjw omnigroup.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1476604 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: Improve error handling in dav_method_put(), add newJeff Trawick2013-04-041-16/+15
| | | | | | | | | | | | dav_join_error() function. PR: 54145 Submitted by: Ben Reser <ben reser.org> Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1464241 13f79535-47bb-0310-9956-ffa450edef68
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-031-45/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* Remove some ap_add_version_component() calls that don't provide any informationStefan Fritsch2011-11-091-2/+0
| | | | | | | because the modules don't have separate version numbers anymore git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199532 13f79535-47bb-0310-9956-ffa450edef68
* Don't send a 500 if there is a timeoutStefan Fritsch2011-11-081-5/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199444 13f79535-47bb-0310-9956-ffa450edef68
* More cleanup: Expand tabs and some more indentation fixesStefan Fritsch2011-09-231-16/+16
| | | | | | | No functional change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174929 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-11/+11
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
* Various code cleanupStefan Fritsch2011-06-221-2/+2
| | | | | | | | PR: 51398 Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1138627 13f79535-47bb-0310-9956-ffa450edef68
* Avoid some memory allocations by using apr_table_setn where the string argumentsStefan Fritsch2011-06-131-3/+3
| | | | | | | | | | are allocated from the request pool and not modified later on. Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr> PR: 51358 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135084 13f79535-47bb-0310-9956-ffa450edef68
* Improvements found by cppcheck:Stefan Fritsch2011-05-151-1/+1
| | | | | | | | remove some unused variables and dead assignments, reduce the scope of some variables, add some parens to improve readability git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1103459 13f79535-47bb-0310-9956-ffa450edef68
* revert r1026746:Stefan Fritsch2011-02-121-32/+0
| | | | | | | | | | | | | If an unknown Content-* header is received for a PUT request, we must not ignore it but reply with 501 per RFC 2616 9.6. PR: 42978 Vetoed by Roy T. Fielding: http://mail-archives.apache.org/mod_mbox/httpd-dev/201102.mbox/%3C9A5A8B62-ED16-4BD3-97DA-8475026BB81D@gbiv.com%3E git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1070061 13f79535-47bb-0310-9956-ffa450edef68
* If an unknown Content-* header is received for a PUT request, we must notStefan Fritsch2010-10-241-0/+32
| | | | | | | | | ignore it but reply with 501 per RFC 2616 9.6. PR: 42978 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1026746 13f79535-47bb-0310-9956-ffa450edef68
* If a malformed Content-Range header is received for a PUT request, weStefan Fritsch2010-10-241-15/+27
| | | | | | | | | | must not use the supplied content per RFC 2616 14.16. Send 400 response instead of ignoring the Content-Range. PR: 49825 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1026743 13f79535-47bb-0310-9956-ffa450edef68
* - Remove a load of unused variables (or variables that are set but never read).Stefan Fritsch2010-08-031-5/+3
| | | | | | | | | - Move some declarations into the correct #ifdef scope. I couldn't compile/test netware, but the changes look obvious enough. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@982016 13f79535-47bb-0310-9956-ffa450edef68
* Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to takeStefan Fritsch2010-06-061-0/+2
| | | | | | | advantage of per-module loglevels git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
* Remove errno from dav_error interface. Calls to dav_new_error()Jeff Trawick2009-11-191-29/+22
| | | | | | | | | and dav_new_error_tag() must be adjusted to add an apr_status_t parameter. Reviewed by: jorton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@882274 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav_fs: Include uri when logging a PUT error due to connection abort.Stefan Fritsch2009-11-091-3/+8
| | | | | | | PR: 38149 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834245 13f79535-47bb-0310-9956-ffa450edef68
* Return 409 instead of 500 for a LOCK request if the parent resource does notStefan Fritsch2009-11-091-0/+15
| | | | | | | | | exist or is not a collection. PR: 43465 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834230 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: Allow other modules to add things to the DAV or Allow headersGraham Leggett2009-09-141-0/+39
| | | | | | | | of an OPTIONS request. Submitted by: Brian France <brian brianfrance.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@814832 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused conf variable.Paul Querna2009-09-011-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@809938 13f79535-47bb-0310-9956-ffa450edef68
* * Prevent a segfault if the destination URI of a copy / move operation isRuediger Pluem2008-04-021-0/+5
| | | | | | | | | not under DAV control. Return 405 (Method not allowed) instead. PR: 44734 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@644050 13f79535-47bb-0310-9956-ffa450edef68
* * Set character set for HTML outputs generated by mod_ldap,Ruediger Pluem2007-12-241-1/+1
| | | | | | | | | | mod_proxy_balancer, mod_proxy_ftp, mod_info, mod_dav without a character set to ISO-8859-1. Submitted by: jorton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@606693 13f79535-47bb-0310-9956-ffa450edef68
* update license header textRoy T. Fielding2006-07-111-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
* Update the copyright year in all .c, .h and .xml filesColm MacCarthaigh2006-04-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
* Clean up some code in mod_dav.Garrett Rooney2006-02-131-6/+0
| | | | | | | | | | | Submitted by: Dan Rall <dlr collab.net> * modules/dav/main/mod_dav.c (dav_error_response, dav_error_response_tag): Remove redundant assignment of r->status_line which is handled by basic_http_header_check(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@377292 13f79535-47bb-0310-9956-ffa450edef68
* No functional Change: Removing trailing whitespace. This alsoJim Jagielski2005-11-101-10/+10
| | | | | | | | means that "blank" lines consisting of just spaces or tabs are now really blank lines git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332306 13f79535-47bb-0310-9956-ffa450edef68
* * Fix a null pointer dereference in dav_method_mkcol during the handling ofRuediger Pluem2005-11-051-1/+1
| | | | | | | | | errors from dav_auto_checkin. Submitted by: Ghassan Misherghi <ghassanm ucdavis.edu> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@331041 13f79535-47bb-0310-9956-ffa450edef68
* * modules/dav/main/mod_dav.h: Wrap all public functions inJustin Erenkrantz2005-02-251-6/+6
| | | | | | | | | | | | | | DAV_DECLARE or DAV_DECLARE_NONSTD. * modules/dav/main/liveprop.c, modules/dav/main/props.c, modules/dav/main/util_lock.c, modules/dav/main/mod_dav.c, modules/dav/main/std_liveprop.c, modules/dav/main/util.c: Update function definitions. Submitted by: Branko Čibej <brane xbc.nu> Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@155345 13f79535-47bb-0310-9956-ffa450edef68
* Improve interaction with caches in mod_dav.Sander Striker2005-02-141-0/+7
| | | | | | | | | * modules/dav/main/mod_dav.c (dav_method_get): Check for conditionals. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@153754 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
* use new apr_strtoff function to parse PUT ranges correctly.André Malo2004-05-251-6/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103762 13f79535-47bb-0310-9956-ffa450edef68
* * modules/dav/main/mod_dav.c (dav_method_put): Fix segfaultJoe Orton2004-05-211-1/+1
| | | | | | | | | in auto-versioning error handling path. PR: 29148 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103723 13f79535-47bb-0310-9956-ffa450edef68