summaryrefslogtreecommitdiff
path: root/modules/dav/fs
Commit message (Collapse)AuthorAgeFilesLines
* dav_fs_cmds is declared twice in the file... VS 2022 complains about it.Jean-Frederic Clere2023-05-051-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909628 13f79535-47bb-0310-9956-ffa450edef68
* * Fix 'warning: suggest parentheses around assignment used as truth value'Ruediger Pluem2023-03-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908152 13f79535-47bb-0310-9956-ffa450edef68
* Use ap_parse_strict_length() to parse client-supplied Content-Lengthmanu2023-03-071-6/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908144 13f79535-47bb-0310-9956-ffa450edef68
* Remove usuless double check of APR_FINFO_NAME neing setmanu2023-03-071-6/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908143 13f79535-47bb-0310-9956-ffa450edef68
* Add RFC4331 quotas for mod_dav_fsmanu2023-03-021-9/+6
| | | | | | | Fix warnings git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907989 13f79535-47bb-0310-9956-ffa450edef68
* Add RFC4331 quotas for mod_dav_fsmanu2023-03-021-0/+359
| | | | | | | Address forgotten svn add in previous commit git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907984 13f79535-47bb-0310-9956-ffa450edef68
* Add RFC4331 quotas for mod_dav_fsmanu2023-03-025-8/+229
| | | | | | | | | | | This is enabled by a new directive: DavQuota (Off|None|#bytes) Off (default): feature disabled None: no quota enforced, but used and available bytes are reported #bytes: an numerical value in bytes as the quota to enforce git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907974 13f79535-47bb-0310-9956-ffa450edef68
* dav_get_liveprop_info() returns a long not an int.Christophe Jaillet2022-05-041-3/+3
| | | | | | | | Update the type of global_ns accordingly and update the format specifier when this variable is used in printf like functions. This also aligns code with dav_core_insert_prop() in modules/dav/main/std_liveprop.c git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900559 13f79535-47bb-0310-9956-ffa450edef68
* Add log tags.Graham Leggett2021-06-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1891023 13f79535-47bb-0310-9956-ffa450edef68
* dbm: Split the loading of a dbm driver from the opening of a dbm file. WhenGraham Leggett2021-06-241-1/+26
| | | | | | | | an attempt to load a dbm driver fails, log clearly which driver triggered the error (not "default"), and what the error was. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1891019 13f79535-47bb-0310-9956-ffa450edef68
* * modules/dav/fs/repos.c (dav_fs_open_stream): Add specific logs forJoe Orton2020-09-151-1/+15
| | | | | | | | | | | | different modes in dav_fs_open_stream(), indicate failure because of different file open modes. Also add the filepath in the log messages. Github: closes #138 PR: 64413 Submitted by: Bingyu Shen <ahshenbingyu gmail.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1881736 13f79535-47bb-0310-9956-ffa450edef68
* Be defensive when the request is missing.Graham Leggett2020-06-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879322 13f79535-47bb-0310-9956-ffa450edef68
* "[mod_dav_fs etag handling] should really honor the FileETag setting".Graham Leggett2020-06-271-14/+13
| | | | | | | | | | | | | | | | - It now does. - Add "Digest" to FileETag directive, allowing a strong ETag to be generated using a file digest. - Add ap_make_etag_ex() and ap_set_etag_fd() to allow full control over ETag generation. - Add concept of "binary notes" to request_rec, allowing packed bit flags to be added to a request. - First binary note - AP_REQUEST_STRONG_ETAG - allows modules to force the ETag to a strong ETag to comply with RFC requirements, such as those mandated by various WebDAV extensions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879285 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling errors found by codespell. [skip ci]Mike Rumph2020-02-132-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
* * Replace apr_psprintf with apr_pstrcat where the format strings onlyRuediger Pluem2019-06-282-12/+18
| | | | | | | | | contain %s to improve efficiency. Leave out error messages as they are not on a crtical code path and error message become less readable when taking out the format specifiers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862270 13f79535-47bb-0310-9956-ffa450edef68
* Fix use of StateDir directive after r1852982:Joe Orton2019-04-181-5/+21
| | | | | | | | | | | | | | | | * server/core.c (reset_config): Rename from reset_config_defines; tie core_state_dir to pconf lifetime in this cleanup. (core_pre_config): Adjust accordingly. * modules/md/mod_md_config.c (md_config_post_config): Pick up base_dir from statedir in post-config phase so StateDir can influence it. * modules/dav/fs/mod_dav_fs.c (dav_fs_create_server_config): Don't init lockdb_path here. (dav_fs_post_config): New function; set lockdb_path based on configured statedir. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1857731 13f79535-47bb-0310-9956-ffa450edef68
* * modules/dav/fs/mod_dav_fs.c (dav_fs_create_server_config): UseJoe Orton2018-10-051-6/+6
| | | | | | | statedir-relative default lock database path. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842931 13f79535-47bb-0310-9956-ffa450edef68
* Third try, follows up 1694901 and 1694902Gregg Lewis Smith2015-08-091-1/+1
| | | | | | | | MinGW32 and MSVC both define WIN32 MSVC and Netware do not use autoconf git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1694912 13f79535-47bb-0310-9956-ffa450edef68
* followup to r1694901, it was too greedyGregg Lewis Smith2015-08-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1694902 13f79535-47bb-0310-9956-ffa450edef68
* ap_config_auto.h is not used/created in non-Autoconf compilers like MSVCGregg Lewis Smith2015-08-091-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1694901 13f79535-47bb-0310-9956-ffa450edef68
* * mod_dav_fs: set default value of DavLockDB using installation layoutJan Kaluža2015-04-171-1/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1674222 13f79535-47bb-0310-9956-ffa450edef68
* core, modules: like r1657897 but for core and other modules than mod_proxy.Yann Ylavic2015-03-101-1/+1
| | | | | | | | | | | | | | 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
* Fix indent.Christophe Jaillet2014-11-111-6/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1638159 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR 56480: PROPFIND walker doesn't encode hrefs properlyBen Reser2014-06-131-21/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* As in 'dav_generic_do_refresh', add missing break in 'dav_fs_do_refresh' to ↵Christophe Jaillet2014-01-091-0/+1
| | | | | | avoid useless computation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1556911 13f79535-47bb-0310-9956-ffa450edef68
* more apr_file_write_full() simplification (like r1542413)Jeff Trawick2013-11-151-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1542416 13f79535-47bb-0310-9956-ffa450edef68
* Followup to r1529559: mod_dav_fs: Fix encoding of hrefs in PROPFIND response.Ben Reser2013-10-121-4/+17
| | | | | | | | | | | | | | Previous commit missed encoding the names of the children of the PROPFIND request when the depth wasn't 0. * modules/dav/fs/repos.c (dav_fs_append_uri): New function (dav_fs_walker): Use dav_fs_append_uri() and adjust length calculations to use the encoded length. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1531505 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR 55397: dav_resource->uri treated as an unparsed uri.Ben Reser2013-10-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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: Do not fail PROPPATCH when prop namespace is not known. PR 52559Graham Leggett2013-04-271-1/+9
| | | | | | | | Submitted by: Diego Santa Cruz <diego.santaCruz spinetix.com> Tested by William Lewis <wiml omnigroup com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1476644 13f79535-47bb-0310-9956-ffa450edef68
* mod_dav: When a PROPPATCH attempts to remove a non-existent deadGraham Leggett2013-04-271-0/+4
| | | | | | | | | | property on a resource for which there is no dead property in the same namespace httpd segfaults. PR 52559 Submitted by Diego Santa Cruz <diego.santaCruz spinetix.com> Tested by William Lewis <wiml omnigroup com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1476642 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build tweaks.Guenter Knauf2012-08-091-3/+3
| | | | | | | | | Make more use of internal makefile macros; axed now obsolete include paths. Submitted by: normw gknw net. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1371177 13f79535-47bb-0310-9956-ffa450edef68
* Replace use of apr_file_write() with apr_file_write_full() to preventStefan Fritsch2012-04-261-1/+1
| | | | | | | | | | | | incomplete writes. Add comments in some places where error handling/logging is missing. PR: 53131. Submitted by: Nicolas Viennot <apache viennot biz>, Stefan Fritsch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331110 13f79535-47bb-0310-9956-ffa450edef68
* Make APACHE_MODULE() accept an optional prerequisite module for configure.Stefan Fritsch2012-01-201-1/+1
| | | | | | | | | | Introduce the following configure time dependencies: mod_proxy_* (except proxy_html) require mod_proxy mod_dav_* require mod_dav mod_session_* require mod_session git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1234180 13f79535-47bb-0310-9956-ffa450edef68
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-021-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* Change default FileETag to be "size mtime", i.e. remove the inode. Adjust theStefan Fritsch2011-11-081-2/+2
| | | | | | | | | etag generation in mod_dav_fs to the new default. PR 49623. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199086 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-5/+5
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
* refactor to pull setting of Accept-Ranges header into http_protocol.c whichEric Covener2011-09-081-1/+1
| | | | | | | | had been copied to other handlers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1166663 13f79535-47bb-0310-9956-ffa450edef68
* Various code cleanupStefan Fritsch2011-06-221-2/+1
| | | | | | | | 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
* Log the proper module name on errorsStefan Fritsch2011-06-071-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1133163 13f79535-47bb-0310-9956-ffa450edef68
* Log a more obvious message if apr cannot load its dbm shared library.Stefan Fritsch2011-06-071-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1133158 13f79535-47bb-0310-9956-ffa450edef68
* Don't return an undefined value if opening of a read-only database fails.Stefan Fritsch2011-06-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1133152 13f79535-47bb-0310-9956-ffa450edef68
* Fix various "variable 'x' set but not used" warnings.Stefan Fritsch2011-05-221-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1125877 13f79535-47bb-0310-9956-ffa450edef68
* More NetWare build fixes.Guenter Knauf2011-03-201-4/+3
| | | | | | | Sorted some makefile dependencies; fixed DAV makefiles. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1083478 13f79535-47bb-0310-9956-ffa450edef68
* Use a var INSTALLBASE to simplify NetWare installation rules.Guenter Knauf2011-03-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082821 13f79535-47bb-0310-9956-ffa450edef68
* Use var for prelude so its possible to change it at one place.Guenter Knauf2011-03-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082811 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.Guenter Knauf2011-03-091-1/+2
| | | | | | | Some more fixes ... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079614 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.Guenter Knauf2011-03-081-1/+1
| | | | | | | Removed absolute paths to imp files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079487 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.Guenter Knauf2011-03-081-7/+7
| | | | | | | Take 1. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079407 13f79535-47bb-0310-9956-ffa450edef68
* Add to modules' help text (displayed by ./configure -h) moreDaniel Earl Poirier2010-11-011-1/+1
| | | | | | | | information that will be useful in deciding whether to enable them or not. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1029814 13f79535-47bb-0310-9956-ffa450edef68
* Fix broken "creationdate" property in mod_dav_fs andRainer Jung2010-08-202-12/+11
| | | | | | | | | | | remove remaining uses of sprintf() in the dav modules. This is a regression in 2.3.7 introduced by r931434. It calls sizeof() for a function parameter, which only returns the pointer size, not the size of the char array. Thus the "creationdate" property got truncated to three characters. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@987484 13f79535-47bb-0310-9956-ffa450edef68