aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_dav_module.c
Commit message (Collapse)AuthorAge
* All known output headers can be linked lists now.Maxim Dounin2022-05-30
| | | | | | | | The h->next pointer properly provided as NULL in all cases where known output headers are added. Note that there are 3rd party modules which might not do this, and it might be risky to rely on this for arbitrary headers.
* Location header escaping in redirects (ticket #882).Ruslan Ermilov2021-05-24
| | | | | The header is escaped in redirects based on request URI or location name (auto redirect).
* Dav: added checks for chunked to body presence conditions.Maxim Dounin2019-12-23
| | | | | | These checks were missed when chunked support was introduced. And also added an explicit error message to ngx_http_dav_copy_move_handler() (it was missed for some reason, in contrast to DELETE and MKCOL handlers).
* Saved some memory allocations.Ruslan Ermilov2019-12-16
| | | | | In configurations when "root" has variables, some modules unnecessarily allocated memory for the "Location" header value.
* Dav: fixed Location in successful MKCOL response.Ruslan Ermilov2019-12-16
| | | | | Instead of reducing URI length to not include the terminating '\0' character in 6ddaac3e0bf7, restore the terminating '/' character.
* Dav: removed dead store after 8e7a5de61664.Sergey Kandaurov2018-08-02
| | | | Found by Clang Static Analyzer.
* Dav: changed COPY of a file to preserve access mask.Maxim Dounin2018-08-01
| | | | | | | | The behaviour is now in line with COPY of a directory with contents, which preserves access masks on individual files, as well as the "cp" command. Requested by Roman Arutyunyan.
* Dav: added error logging.Roman Arutyunyan2018-02-07
| | | | | | | | Previously, when request body was not available or was previously read in memory rather than a file, client received HTTP 500 error, but no explanation was logged in error log. This could happen, for example, if request body was read or discarded prior to error_page redirect, or if mirroring was enabled along with dav.
* Cleaned up r->headers_out.headers allocation error handling.Sergey Kandaurov2017-04-20
| | | | | | | | | | If initialization of a header failed for some reason after ngx_list_push(), leaving the header as is can result in uninitialized memory access by the header filter or the log module. The fix is to clear partially initialized headers in case of errors. For the Cache-Control header, the fix is to postpone pushing r->headers_out.cache_control until its value is completed.
* Fixed missing "Location" field with some relative redirects.Ruslan Ermilov2016-12-22
| | | | | Relative redirects did not work with directory redirects and auto redirects issued by nginx.
* Dav: return 501 on PUT with ranges (ticket #948).Maxim Dounin2016-05-16
|
* Style.Ruslan Ermilov2016-03-30
|
* Moved ngx_http_parse_time() to core, renamed accordingly.Maxim Dounin2015-06-11
| | | | | | | | | The function is now called ngx_parse_http_time(), and can be used by any code to parse HTTP-style date and time. In particular, it will be used for OCSP stapling. For compatibility, a macro to map ngx_http_parse_time() to the new name provided for a while.
* Dav: ngx_http_map_uri_to_path() errors were not checked.FengGu2014-07-30
| | | | | Once error occured, it could lead to use uninitialized variables to log, even more segmentation fault.
* Dav: emit a warning about unsafe URI.Ruslan Ermilov2013-12-23
|
* Unused macro and variable removed.Sergey Kandaurov2013-10-02
| | | | | The macro NGX_HTTP_DAV_COPY_BLOCK is not used since 8101d9101ed8 (0.8.9). The variable ngx_accept_mutex_lock_file was never used.
* Dav: fixed segfault on PUT if body was already read (ticket #238).Maxim Dounin2012-11-21
| | | | | | | | If request body reading happens with different options it's possible that there will be no r->request_body->temp_file available (or even no r->request_body available if body was discarded). Return internal server error in this case instead of committing suicide by dereferencing a null pointer.
* Copyright updated.Maxim Konovalov2012-01-18
|
* Replaced "can not" with "cannot" and "could not" in a bunch of places.Ruslan Ermilov2011-09-19
| | | | Fixed nearby grammar errors.
* allow Destination URL without hostIgor Sysoev2010-06-10
|
* remove r->zero_in_uriIgor Sysoev2010-05-24
|
* use lstat() for WebDAV DELETE, COPY, and MOVE to handle symlinksIgor Sysoev2010-04-22
|
* omit '\0' from "Location" header on MKCOL requestIgor Sysoev2009-10-06
|
* check unsafe DestinationIgor Sysoev2009-09-25
|
* fix copy destination name length, introduced in r3025Igor Sysoev2009-08-20
|
* allow cross device temporary files atomic copying:Igor Sysoev2009-08-12
| | | | | *) ngx_copy_file() *) delete ngx_ext_rename_file_t.log_rename_error and .rename_error fields
* return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev2009-06-02
|
* uniform ngx_file_info() interface with ngx_fd_info()Igor Sysoev2009-04-29
|
* remove TODO commentsIgor Sysoev2009-04-18
|
* use ngx_ext_rename_file() for single file MOVEIgor Sysoev2008-12-10
|
* *) back out r2040Igor Sysoev2008-06-17
| | | | | | *) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
* *) host in request line has priorityIgor Sysoev2008-05-15
| | | | | *) allow several Host headers *) validate host
* C++ compatibilityIgor Sysoev2008-03-03
|
* fix building by msvc introduced in r1817Igor Sysoev2008-01-22
|
* style fix: remove trailing spaceIgor Sysoev2008-01-08
|
* fix commentIgor Sysoev2008-01-05
|
* use ngx_ext_rename_file() in PUTIgor Sysoev2008-01-03
|
* do not delete target until all tests will be done,Igor Sysoev2008-01-03
| | | | fix single file COPY/MOVE
* add logIgor Sysoev2008-01-03
|
* add commentIgor Sysoev2008-01-03
|
* test URI/Destination collection/non-collection and DepthIgor Sysoev2008-01-03
|
* axe useless codeIgor Sysoev2008-01-03
|
* change orderIgor Sysoev2008-01-03
|
* change status code, add log message, and test collection URIIgor Sysoev2008-01-03
|
* style fixIgor Sysoev2008-01-03
|
* min_delete_depthIgor Sysoev2007-12-30
|
* log DELETE errorsIgor Sysoev2007-12-30
|
* axe useless codeIgor Sysoev2007-12-30
|
* change status code and add log messageIgor Sysoev2007-12-30
|
* several changes in server_name:Igor Sysoev2007-12-29
| | | | | | | | *) server_name_in_redirect directive and removal of the '*' stub *) use server address in redirect if host can not be detected *) ngx_http_server_addr() *) allow wildcard and regex names to be a main server_name *) DAV Destination header is tested against Host header