From 6363d97cb6905df57f623a039300455ed65cdc53 Mon Sep 17 00:00:00 2001 From: Alexandre Jousset Date: Thu, 4 Nov 2021 00:55:39 +0100 Subject: [PATCH] Fix PROPFIND fail with 500 on symlinks to non existing file/dir. See arut/nginx-dav-ext-module#55 and https://github.com/arut/nginx-dav-ext-module/pull/56 --- ngx_http_dav_ext_module.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ngx_http_dav_ext_module.c b/ngx_http_dav_ext_module.c index 0d6d067..cdb213d 100644 --- a/ngx_http_dav_ext_module.c +++ b/ngx_http_dav_ext_module.c @@ -896,10 +896,9 @@ ngx_http_dav_ext_propfind(ngx_http_request_t *r, ngx_uint_t props) ngx_cpystrn(last, name.data, name.len + 1); if (ngx_de_info(filename, &dir) == NGX_FILE_ERROR) { - ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, + ngx_log_error(NGX_LOG_ERR, r->connection->log, ngx_errno, ngx_de_info_n " \"%s\" failed", filename); - rc = NGX_HTTP_INTERNAL_SERVER_ERROR; - break; + continue; } }