From 44bbec7eaac5e207ddb6a35942fc62c893afc019 Mon Sep 17 00:00:00 2001 From: Luboš Uhliarik Date: Jul 12 2017 08:34:18 +0000 Subject: Merge branch 'master' into f24 --- diff --git a/.gitignore b/.gitignore index e51254b..19a3666 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ x86_64 /httpd.socket.8 /httpd.service.8 /httpd-2.4.26.tar.bz2 +/httpd-2.4.27.tar.bz2 diff --git a/httpd-2.4.26-r1800306.patch b/httpd-2.4.26-r1800306.patch new file mode 100644 index 0000000..4a8bc2d --- /dev/null +++ b/httpd-2.4.26-r1800306.patch @@ -0,0 +1,86 @@ +# ./pullrev.sh 1800306 + +http://svn.apache.org/viewvc?view=revision&revision=1800306 + +diff -uap httpd-2.4.26/modules/mappers/mod_actions.c.r1800306 httpd-2.4.26/modules/mappers/mod_actions.c +--- httpd-2.4.26/modules/mappers/mod_actions.c.r1800306 ++++ httpd-2.4.26/modules/mappers/mod_actions.c +@@ -186,8 +186,7 @@ + ap_field_noparam(r->pool, r->content_type); + + if (action && (t = apr_table_get(conf->action_types, action))) { +- int virtual = (*t++ == '0' ? 0 : 1); +- if (!virtual && r->finfo.filetype == APR_NOFILE) { ++ if (*t++ == '0' && r->finfo.filetype == APR_NOFILE) { + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(00652) + "File does not exist: %s", r->filename); + return HTTP_NOT_FOUND; +@@ -198,9 +197,6 @@ + * (will be REDIRECT_HANDLER there) + */ + apr_table_setn(r->subprocess_env, "HANDLER", action); +- if (virtual) { +- apr_table_setn(r->notes, "virtual_script", "1"); +- } + } + + if (script == NULL) +diff -uap httpd-2.4.26/modules/proxy/mod_proxy_fcgi.c.r1800306 httpd-2.4.26/modules/proxy/mod_proxy_fcgi.c +--- httpd-2.4.26/modules/proxy/mod_proxy_fcgi.c.r1800306 ++++ httpd-2.4.26/modules/proxy/mod_proxy_fcgi.c +@@ -321,7 +321,6 @@ + apr_status_t rv; + apr_size_t avail_len, len, required_len; + int next_elem, starting_elem; +- int fpm = 0; + fcgi_req_config_t *rconf = ap_get_module_config(r->request_config, &proxy_fcgi_module); + fcgi_dirconf_t *dconf = ap_get_module_config(r->per_dir_config, &proxy_fcgi_module); + +@@ -354,8 +353,6 @@ + *qs = '\0'; + } + } +- } else { +- fpm = 1; + } + + if (newfname) { +@@ -364,38 +361,9 @@ + } + } + +-#if 0 +- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(09999) +- "r->filename: %s", (r->filename ? r->filename : "nil")); +- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(09999) +- "r->uri: %s", (r->uri ? r->uri : "nil")); +- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(09999) +- "r->path_info: %s", (r->path_info ? r->path_info : "nil")); +-#endif +- + ap_add_common_vars(r); + ap_add_cgi_vars(r); + +- if (fpm || apr_table_get(r->notes, "virtual_script")) { +- /* +- * Adjust SCRIPT_NAME, PATH_INFO and PATH_TRANSLATED for PHP-FPM +- * TODO: Right now, PATH_INFO and PATH_TRANSLATED look OK... +- */ +- const char *pend; +- const char *script_name = apr_table_get(r->subprocess_env, "SCRIPT_NAME"); +- pend = script_name + strlen(script_name); +- if (r->path_info && *r->path_info) { +- pend = script_name + ap_find_path_info(script_name, r->path_info) - 1; +- } +- while (pend != script_name && *pend != '/') { +- pend--; +- } +- apr_table_setn(r->subprocess_env, "SCRIPT_NAME", pend); +- ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, +- "fpm:virtual_script: Modified SCRIPT_NAME to: %s", +- pend); +- } +- + /* XXX are there any FastCGI specific env vars we need to send? */ + + /* Give admins final option to fine-tune env vars */ diff --git a/httpd.spec b/httpd.spec index 654a7b9..02b7e5a 100644 --- a/httpd.spec +++ b/httpd.spec @@ -7,7 +7,7 @@ Summary: Apache HTTP Server Name: httpd -Version: 2.4.26 +Version: 2.4.27 Release: 1%{?dist} URL: http://httpd.apache.org/ Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 @@ -690,6 +690,12 @@ rm -rf $RPM_BUILD_ROOT %{_rpmconfigdir}/macros.d/macros.httpd %changelog +* Mon Jul 10 2017 Luboš Uhliarik - 2.4.27-1 +- new version 2.4.27 + +* Fri Jun 30 2017 Joe Orton - 2.4.26-2 +- mod_proxy_fcgi: fix further regressions (PR 61202) + * Mon Jun 19 2017 Luboš Uhliarik - 2.4.26-1 - new version 2.4.26 diff --git a/pullrev.sh b/pullrev.sh index 2b2fef9..d106968 100755 --- a/pullrev.sh +++ b/pullrev.sh @@ -7,7 +7,7 @@ fi repo="https://svn.apache.org/repos/asf/httpd/httpd/trunk" repo="https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x" -ver=2.4.25 +ver=2.4.26 prefix="httpd-${ver}" suffix="r$1${2:++}" fn="${prefix}-${suffix}.patch" diff --git a/sources b/sources index 4f174e0..dafe33c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (httpd-2.4.26.tar.bz2) = 4b32f01f17c912011f24bf3991430d474be13836af41b26c072e3c1eab2b45a3c52851eb00423e046c59fc16e1f501d64daaee3f2469b2745857ec1982966c9a +SHA512 (httpd-2.4.27.tar.bz2) = 7e7e8070715b74cb6890096a74e194f4c6a49c14bda685b1ad832e84312f1ac4316ea03a430e679502bfd8e1853aefa544ee002a20d0f7e994b9a590c74bc42c