summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_dav_module.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-05-30All known output headers can be linked lists now.Maxim Dounin1-0/+1
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.
2021-05-24Location header escaping in redirects (ticket #882).Ruslan Ermilov1-1/+24
The header is escaped in redirects based on request URI or location name (auto redirect).
2019-12-23Dav: added checks for chunked to body presence conditions.Maxim Dounin1-3/+5
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).
2019-12-16Saved some memory allocations.Ruslan Ermilov1-26/+5
In configurations when "root" has variables, some modules unnecessarily allocated memory for the "Location" header value.
2019-12-16Dav: fixed Location in successful MKCOL response.Ruslan Ermilov1-1/+2
Instead of reducing URI length to not include the terminating '\0' character in 6ddaac3e0bf7, restore the terminating '/' character.
2018-08-02Dav: removed dead store after 8e7a5de61664.Sergey Kandaurov1-2/+0
Found by Clang Static Analyzer.
2018-08-01Dav: changed COPY of a file to preserve access mask.Maxim Dounin1-1/+1
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.
2018-02-07Dav: added error logging.Roman Arutyunyan1-1/+10
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.
2017-04-20Cleaned up r->headers_out.headers allocation error handling.Sergey Kandaurov1-0/+1
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.
2016-12-22Fixed missing "Location" field with some relative redirects.Ruslan Ermilov1-6/+3
Relative redirects did not work with directory redirects and auto redirects issued by nginx.
2016-05-16Dav: return 501 on PUT with ranges (ticket #948).Maxim Dounin1-0/+6
2016-03-30Style.Ruslan Ermilov1-5/+5
2015-06-11Moved ngx_http_parse_time() to core, renamed accordingly.Maxim Dounin1-1/+1
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.
2014-07-30Dav: ngx_http_map_uri_to_path() errors were not checked.FengGu1-4/+16
Once error occured, it could lead to use uninitialized variables to log, even more segmentation fault.
2013-12-23Dav: emit a warning about unsafe URI.Ruslan Ermilov1-1/+1
2013-10-02Unused macro and variable removed.Sergey Kandaurov1-2/+0
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.
2012-11-21Dav: fixed segfault on PUT if body was already read (ticket #238).Maxim Dounin1-0/+5
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.
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-09-19Replaced "can not" with "cannot" and "could not" in a bunch of places.Ruslan Ermilov1-1/+1
Fixed nearby grammar errors.
2010-06-10allow Destination URL without hostIgor Sysoev1-0/+7
2010-05-24remove r->zero_in_uriIgor Sysoev1-4/+0
2010-04-22use lstat() for WebDAV DELETE, COPY, and MOVE to handle symlinksIgor Sysoev1-7/+7
2009-10-06omit '\0' from "Location" header on MKCOL requestIgor Sysoev1-0/+1
2009-09-25check unsafe DestinationIgor Sysoev1-5/+11
2009-08-20fix copy destination name length, introduced in r3025Igor Sysoev1-0/+2
2009-08-12allow cross device temporary files atomic copying:Igor Sysoev1-99/+16
*) ngx_copy_file() *) delete ngx_ext_rename_file_t.log_rename_error and .rename_error fields
2009-06-02return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev1-1/+1
2009-04-29uniform ngx_file_info() interface with ngx_fd_info()Igor Sysoev1-4/+4
2009-04-18remove TODO commentsIgor Sysoev1-1/+0
2008-12-10use ngx_ext_rename_file() for single file MOVEIgor Sysoev1-1/+27
2008-06-17*) back out r2040Igor Sysoev1-1/+1
*) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
2008-05-15*) host in request line has priorityIgor Sysoev1-10/+8
*) allow several Host headers *) validate host
2008-03-03C++ compatibilityIgor Sysoev1-1/+1
2008-01-22fix building by msvc introduced in r1817Igor Sysoev1-1/+1
2008-01-08style fix: remove trailing spaceIgor Sysoev1-1/+1
2008-01-05fix commentIgor Sysoev1-1/+1
2008-01-03use ngx_ext_rename_file() in PUTIgor Sysoev1-81/+12
2008-01-03do not delete target until all tests will be done,Igor Sysoev1-49/+78
fix single file COPY/MOVE
2008-01-03add logIgor Sysoev1-0/+5
2008-01-03add commentIgor Sysoev1-0/+5
2008-01-03test URI/Destination collection/non-collection and DepthIgor Sysoev1-4/+26
2008-01-03axe useless codeIgor Sysoev1-6/+0
2008-01-03change orderIgor Sysoev1-48/+48
2008-01-03change status code, add log message, and test collection URIIgor Sysoev1-8/+11
2008-01-03style fixIgor Sysoev1-3/+0
2007-12-30min_delete_depthIgor Sysoev1-10/+43
2007-12-30log DELETE errorsIgor Sysoev1-5/+16
2007-12-30axe useless codeIgor Sysoev1-6/+0
2007-12-30change status code and add log messageIgor Sysoev1-1/+3
2007-12-29several changes in server_name:Igor Sysoev1-9/+15
*) 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