]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
4 years ago* We need to check for (!scheme && (u = strchr(url, ':')) && (u - url) > 14)
Ruediger Pluem [Tue, 2 Feb 2021 19:50:14 +0000 (19:50 +0000)] 
* We need to check for (!scheme && (u = strchr(url, ':')) && (u - url) > 14)
  later as (!scheme || u[0] != '/' || u[1] != '/' || u[2] == '\0') is true
  for requests with the CONNECT method which we need to decline. But in many
  cases requests with the CONNECT method have (u - url) > 14 as in this
  case (u - url) is the length of the FQDN the forward proxy should connect
  to.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1886141 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* Do variable setting in a more portable way such that it works on MacOS as well
Ruediger Pluem [Mon, 1 Feb 2021 10:29:07 +0000 (10:29 +0000)] 
* Do variable setting in a more portable way such that it works on MacOS as well

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1886098 13f79535-47bb-0310-9956-ffa450edef68

4 years ago - fixed a clang error when dividing sizeof(T1i[]) / sizeof(T2).
Stefan Eissing [Mon, 1 Feb 2021 09:01:22 +0000 (09:01 +0000)] 
 - fixed a clang error when dividing sizeof(T1i[]) / sizeof(T2).
   these modern compilers have no respect for code from 2009.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1886096 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate Travis LDAP testing to use a CentOS based container, pulled
Joe Orton [Fri, 29 Jan 2021 12:42:56 +0000 (12:42 +0000)] 
Update Travis LDAP testing to use a CentOS based container, pulled
from quay.io, to avoid the new Docker hub pull rate-limiting which
is causing intermittent failures.

Submitted by: jorton, Lubos Uhliarik <luhliari redhat.com>
Github: closes #167

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1886015 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* Add lognumber
Ruediger Pluem [Wed, 27 Jan 2021 17:07:30 +0000 (17:07 +0000)] 
* Add lognumber

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885945 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* Document r1885939 and r1885940
Ruediger Pluem [Wed, 27 Jan 2021 08:20:37 +0000 (08:20 +0000)] 
* Document r1885939 and r1885940

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885941 13f79535-47bb-0310-9956-ffa450edef68

4 years agoBefore doing any bind check that the provided username is not NULL and that the
Ruediger Pluem [Wed, 27 Jan 2021 08:08:56 +0000 (08:08 +0000)] 
Before doing any bind check that the provided username is not NULL and that the
password is neither NULL nor empty.

Binds with empty passwords always succeed, but in case the password of the
user was not empty subsequent LDAP operations fail.
This causes authentications that use user supplied credentials
(AuthLDAPInitialBindAsUser set to on) to fail with status code 500 instead of
401 if the user supplied an empty password.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885940 13f79535-47bb-0310-9956-ffa450edef68

4 years agoDo not allow to set empty bind passwords to be set via AuthLDAPBindPassword
Ruediger Pluem [Wed, 27 Jan 2021 08:01:06 +0000 (08:01 +0000)] 
Do not allow to set empty bind passwords to be set via AuthLDAPBindPassword

Binds with empty passwords always succeed, but in case the password of the
user was not empty subsequent LDAP operations fail.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885939 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Sat, 23 Jan 2021 14:32:50 +0000 (14:32 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885851 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc XML file update.
Lucien Gentis [Sat, 23 Jan 2021 14:24:04 +0000 (14:24 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885849 13f79535-47bb-0310-9956-ffa450edef68

4 years agos/2020/2021/
Christophe Jaillet [Sat, 23 Jan 2021 07:20:47 +0000 (07:20 +0000)] 
s/2020/2021/

Happy New Year!

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885835 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd some missing hyper links to directives.
Christophe Jaillet [Sat, 23 Jan 2021 06:51:15 +0000 (06:51 +0000)] 
Add some missing hyper links to directives.
Remove some <var> in <syntax> to be more consistant with the rest of the doc.
Remove a duplicated traling ".".

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885833 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_hcheck: don't pile up health checks. PR 63010.
Yann Ylavic [Tue, 19 Jan 2021 14:16:44 +0000 (14:16 +0000)] 
mod_proxy_hcheck: don't pile up health checks.  PR 63010.

Prevent health checks from running for a worker until the last one is fully
finished, to avoid making things worse (memory growth, #connections, ..).

This is done by zeroing worker->s->updated before scheduling the worker in the
threadpool, and resetting the time when it's finished. The scheduler then does
nothing if worker->s->updated is zero.

Also, to save some apr_time_now() calls when !HC_USE_THREADS, *baton->now is
updated in the callback and reused by the scheduler.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885691 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate CHANGES entry after r1885659 [skip ci].
Yann Ylavic [Mon, 18 Jan 2021 17:17:04 +0000 (17:17 +0000)] 
Update CHANGES entry after r1885659 [skip ci].

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885661 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_auth_digest: Fast validation of the nonce's base64 to fail early if
Yann Ylavic [Mon, 18 Jan 2021 17:01:53 +0000 (17:01 +0000)] 
mod_auth_digest: Fast validation of the nonce's base64 to fail early if
                 the format can't match anyway.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885659 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate CHANGES entries [skip ci].
Yann Ylavic [Mon, 18 Jan 2021 16:52:04 +0000 (16:52 +0000)] 
Update CHANGES entries [skip ci].

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885658 13f79535-47bb-0310-9956-ffa450edef68

4 years agoother half of command
Eric Covener [Sun, 17 Jan 2021 23:56:39 +0000 (23:56 +0000)] 
other half of command

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885631 13f79535-47bb-0310-9956-ffa450edef68

4 years agogo back globbing butadd nullglob
Eric Covener [Sun, 17 Jan 2021 23:55:51 +0000 (23:55 +0000)] 
go back globbing butadd nullglob

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885630 13f79535-47bb-0310-9956-ffa450edef68

4 years agoGet Lua dev package from liblua5.3-dev.
Yann Ylavic [Sun, 17 Jan 2021 22:29:12 +0000 (22:29 +0000)] 
Get Lua dev package from liblua5.3-dev.

Call sysctl though sudo.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885626 13f79535-47bb-0310-9956-ffa450edef68

4 years agoTrigger ci.
Yann Ylavic [Sun, 17 Jan 2021 21:08:30 +0000 (21:08 +0000)] 
Trigger ci.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885624 13f79535-47bb-0310-9956-ffa450edef68

4 years agoadd AnyEvent::WebSocket::Client
Eric Covener [Sat, 16 Jan 2021 21:11:19 +0000 (21:11 +0000)] 
add  AnyEvent::WebSocket::Client

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885581 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuils.
Lucien Gentis [Sat, 16 Jan 2021 13:23:42 +0000 (13:23 +0000)] 
fr doc rebuils.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885565 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc XML file update.
Lucien Gentis [Sat, 16 Jan 2021 13:22:47 +0000 (13:22 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885564 13f79535-47bb-0310-9956-ffa450edef68

4 years agoPR55078: remove old Protocol info
Eric Covener [Thu, 14 Jan 2021 03:01:16 +0000 (03:01 +0000)] 
PR55078: remove old Protocol info

followup to 1885463

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885464 13f79535-47bb-0310-9956-ffa450edef68

4 years agoPR65078: synch "protocol" description between Listen and Protocol directives
Eric Covener [Thu, 14 Jan 2021 02:59:28 +0000 (02:59 +0000)] 
PR65078: synch "protocol" description between Listen and Protocol directives

[skipci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885463 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Sat, 9 Jan 2021 14:32:28 +0000 (14:32 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885296 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc XML files updates.
Lucien Gentis [Sat, 9 Jan 2021 14:31:20 +0000 (14:31 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885295 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* acinclude.m4 (APACHE_CHECK_OPENSSL): Use standard "yes/no" output
Joe Orton [Fri, 8 Jan 2021 12:19:48 +0000 (12:19 +0000)] 
* acinclude.m4 (APACHE_CHECK_OPENSSL): Use standard "yes/no" output
  for the OpenSSL version check, rather than OK/FAILED.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885269 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_wstunnel: follow up to r1885239: use ap_find_linked_module().
Yann Ylavic [Thu, 7 Jan 2021 17:16:19 +0000 (17:16 +0000)] 
mod_proxy_wstunnel: follow up to r1885239: use ap_find_linked_module().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885244 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_http: follow up to r1885239: fix *is_ssl for wss scheme.
Yann Ylavic [Thu, 7 Jan 2021 13:38:37 +0000 (13:38 +0000)] 
mod_proxy_http: follow up to r1885239: fix *is_ssl for wss scheme.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885240 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_wstunnel: leave Upgrade requests handling to mod_proxy_http.
Yann Ylavic [Thu, 7 Jan 2021 13:19:08 +0000 (13:19 +0000)] 
mod_proxy_wstunnel: leave Upgrade requests handling to mod_proxy_http.

Let mod_proxy_http's canon and scheme handlers accept "ws[s]:" schemes so that
mod_proxy_wstunnel can decline requests when mod_proxy_http is loaded.

* modules/proxy/{mod_proxy.h,proxy_util.c} (ap_proxy_worker_can_upgrade):
  Add a "dflt" argument to ap_proxy_worker_can_upgrade() which, if not NULL,
  is matched when no worker upgrade= parameter is configured. This allows to
  handle the default "Upgrade: websocket" case for "ws[s]:" schemes.

* modules/proxy/mod_proxy_http.c (proxy_http_canon, proxy_http_handler):
  Add and use the new get_url_scheme() helper to parse URL schemes handled by
  mod_proxy_http and use it in canon and scheme handlers. This helper now
  accepts ws[s] schemes.

* modules/proxy/mod_proxy_wstunnel.c (proxy_wstunnel_post_config):
  New post_config hook to detect whether mod_proxy_http is loaded and set
  global fallback_to_mod_proxy_http flag in this case.

* modules/proxy/mod_proxy_wstunnel.c (proxy_wstunnel_check_trans,
                                      proxy_wstunnel_canon,
                                      proxy_wstunnel_handler):
  These hooks now early return DECLINED if fallback_to_mod_proxy_http is set.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885239 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd some <module> to add some links between modules.
Christophe Jaillet [Sun, 3 Jan 2021 18:36:50 +0000 (18:36 +0000)] 
Add some <module> to add some links between modules.

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885075 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix "-->" alignment to synch with 2.4.x
Christophe Jaillet [Sun, 3 Jan 2021 12:46:09 +0000 (12:46 +0000)] 
Fix "-->" alignment to synch with 2.4.x

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885064 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUse Require instead of Allow and Deny.
Christophe Jaillet [Sun, 3 Jan 2021 09:00:55 +0000 (09:00 +0000)] 
Use Require instead of Allow and Deny.

While at it, removes the "based on the value of" because, it is not really based on the value of the environment variable, but on its existence or not.

PR 65048

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885046 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Sat, 19 Dec 2020 14:48:03 +0000 (14:48 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884629 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc XML files updates.
Lucien Gentis [Sat, 19 Dec 2020 14:46:52 +0000 (14:46 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884628 13f79535-47bb-0310-9956-ffa450edef68

4 years agoxforms
Eric Covener [Fri, 18 Dec 2020 14:23:03 +0000 (14:23 +0000)] 
xforms

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884609 13f79535-47bb-0310-9956-ffa450edef68

4 years agoPR64996: avoid "best" unqualified
Eric Covener [Fri, 18 Dec 2020 14:22:54 +0000 (14:22 +0000)] 
PR64996: avoid "best" unqualified

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884608 13f79535-47bb-0310-9956-ffa450edef68

4 years agoxform
Eric Covener [Thu, 17 Dec 2020 19:24:15 +0000 (19:24 +0000)] 
xform

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884567 13f79535-47bb-0310-9956-ffa450edef68

4 years agoPR64997: clarify hostnames inside <virtualhost> tag
Eric Covener [Thu, 17 Dec 2020 14:41:53 +0000 (14:41 +0000)] 
PR64997: clarify hostnames inside <virtualhost> tag

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884555 13f79535-47bb-0310-9956-ffa450edef68

4 years agoRegenerate. [skip ci]
Joe Orton [Thu, 17 Dec 2020 12:48:30 +0000 (12:48 +0000)] 
Regenerate. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884553 13f79535-47bb-0310-9956-ffa450edef68

4 years agoTreat non-leaf certificates present in SSLProxyMachineCertificateFile
Joe Orton [Thu, 17 Dec 2020 12:44:41 +0000 (12:44 +0000)] 
Treat non-leaf certificates present in SSLProxyMachineCertificateFile
the same was as non-leaf certs are in SSLCertificateFile - use them to
build the trusted cert chain for the end-entity (client) cert.

* modules/ssl/ssl_engine_init.c (ssl_init_proxy_certs):
  For any non-leaf certificate present in the configured, trust as
  if used in SSLProxyMachineCertificateChainFile.

Github: closes #151

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884552 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/ssl/ssl_private.h (modssl_pk_proxy_t): Update comment,
Joe Orton [Thu, 17 Dec 2020 12:40:45 +0000 (12:40 +0000)] 
* modules/ssl/ssl_private.h (modssl_pk_proxy_t): Update comment,
  no functional change. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884551 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd job using APR thread debugging, switching to the pthreads
Joe Orton [Thu, 17 Dec 2020 09:27:08 +0000 (09:27 +0000)] 
Add job using APR thread debugging, switching to the pthreads
error-checking mutex as the default type.  This results in
errors rather than undefined behaviour when double-locking
a mutex.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884545 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd ab run for TEST_SSL jobs. This now seems to be stable after the
Joe Orton [Thu, 17 Dec 2020 08:20:49 +0000 (08:20 +0000)] 
Add ab run for TEST_SSL jobs.  This now seems to be stable after the
pool fixes in APR/httpd (huge thanks ylavic).

Github: closes #140

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884542 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd .opus extension for audio/ogg mimetype, per RFC 7845
Joe Orton [Wed, 16 Dec 2020 16:57:44 +0000 (16:57 +0000)] 
Add .opus extension for audio/ogg mimetype, per RFC 7845

RFC 7845: https://tools.ietf.org/html/rfc7845#section-9

Submitted by: Richard de Boer <richard tubul.net>
Github: closes #144

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884511 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/mappers/mod_rewrite.c: Remove unused MAX_COOKIE_LEN.
Joe Orton [Wed, 16 Dec 2020 16:47:18 +0000 (16:47 +0000)] 
* modules/mappers/mod_rewrite.c: Remove unused MAX_COOKIE_LEN.

Submitted by: Bryan Heden <b.heden gmail.com>
Github: closes #147

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884510 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* support/htpasswd.c: Fix typo. [skip ci]
Joe Orton [Wed, 16 Dec 2020 16:39:44 +0000 (16:39 +0000)] 
* support/htpasswd.c: Fix typo. [skip ci]

Submitted by: Ikko Ashimine <eltociear gmail.com>
Github: closes #149

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884509 13f79535-47bb-0310-9956-ffa450edef68

4 years agoThe Microsoft OOXML format uses xml packaged into a zip file, and has
Joe Orton [Wed, 16 Dec 2020 16:23:23 +0000 (16:23 +0000)] 
The Microsoft OOXML format uses xml packaged into a zip file, and has
mimetypes like:

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

This mimetypes contains 'xml', but is unfortunately not an xml file.

xml2enc processes these files (in particular, when mod_proxy_html is
used), typically resulting in them being corrupted as it seems to
attempt to perform a ISO-8859-1 to UTF-8 conversion on them.

* modules/filters/mod_xml2enc.c (xml2enc_ffunc): Restrict test for XML
  types to matching "+xml".

Submitted by: Joseph Heenan <joseph.heenan fintechlabs.io>
PR: 64339
Github: closes #150

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884505 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* Add missing line break [skip ci]
Ruediger Pluem [Wed, 16 Dec 2020 10:23:37 +0000 (10:23 +0000)] 
* Add missing line break [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884494 13f79535-47bb-0310-9956-ffa450edef68

4 years agoMerge CHANGES entries [skip ci].
Yann Ylavic [Wed, 16 Dec 2020 10:13:46 +0000 (10:13 +0000)] 
Merge CHANGES entries [skip ci].

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884492 13f79535-47bb-0310-9956-ffa450edef68

4 years agoRevert r1884456.
Yann Ylavic [Tue, 15 Dec 2020 15:49:04 +0000 (15:49 +0000)] 
Revert r1884456.

Let scripts (make update-changes) do a better work than me.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884466 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFollow up to r1884068: CHANGES entry needs to go to 2.5.x too.
Yann Ylavic [Tue, 15 Dec 2020 12:06:54 +0000 (12:06 +0000)] 
Follow up to r1884068: CHANGES entry needs to go to 2.5.x too.

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884456 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/ssl/ssl_engine_init.c (ssl_init_ctx_cert_chain): Log the
Joe Orton [Tue, 15 Dec 2020 09:52:43 +0000 (09:52 +0000)] 
* modules/ssl/ssl_engine_init.c (ssl_init_ctx_cert_chain): Log the
  OpenSSL errors if CA certs cannot be loaded.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884452 13f79535-47bb-0310-9956-ffa450edef68

4 years agocore: axe struct core_net_rec.
Yann Ylavic [Mon, 14 Dec 2020 18:08:49 +0000 (18:08 +0000)] 
core: axe struct core_net_rec.

It was only used internally (by the core filters), and it's public API was
redundant with conn_config_t.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884431 13f79535-47bb-0310-9956-ffa450edef68

4 years agocore_input_filter: BRIGADE_NORMALIZE() can be called with an empty brigade.
Yann Ylavic [Mon, 14 Dec 2020 17:53:48 +0000 (17:53 +0000)] 
core_input_filter: BRIGADE_NORMALIZE() can be called with an empty brigade.

So make it a noop in this case, without dereferencing the sentinel (i.e.
change its do{}while to a while{}).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884429 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Sat, 12 Dec 2020 14:48:14 +0000 (14:48 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884355 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc XML files updates.
Lucien Gentis [Sat, 12 Dec 2020 14:47:07 +0000 (14:47 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884354 13f79535-47bb-0310-9956-ffa450edef68

4 years agoci: trigger.
Yann Ylavic [Sat, 12 Dec 2020 09:26:54 +0000 (09:26 +0000)] 
ci: trigger.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884351 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix bash syntax in travis_run_linux.sh.
Yann Ylavic [Fri, 11 Dec 2020 16:10:12 +0000 (16:10 +0000)] 
Fix bash syntax in travis_run_linux.sh.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884326 13f79535-47bb-0310-9956-ffa450edef68

4 years agoci: generate as many core files as there are crashes.
Yann Ylavic [Fri, 11 Dec 2020 12:02:56 +0000 (12:02 +0000)] 
ci: generate as many core files as there are crashes.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884306 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFollow up to r1836032: better flush limits checks and description.
Yann Ylavic [Fri, 11 Dec 2020 11:33:00 +0000 (11:33 +0000)] 
Follow up to r1836032: better flush limits checks and description.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884304 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFollow up to r1836032: docs for ReadBufferSize, FlushMaxThreshold and FlushMaxPipelined.
Yann Ylavic [Fri, 11 Dec 2020 01:19:10 +0000 (01:19 +0000)] 
Follow up to r1836032: docs for ReadBufferSize, FlushMaxThreshold and FlushMaxPipelined.

Plus CHANGES entry.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884296 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFollow up to r1836032: ReadBufferSize not configurable from htaccess.
Yann Ylavic [Fri, 11 Dec 2020 01:07:31 +0000 (01:07 +0000)] 
Follow up to r1836032: ReadBufferSize not configurable from htaccess.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884295 13f79535-47bb-0310-9956-ffa450edef68

4 years agoci: add a run for MPM worker w/ pool-debug.
Yann Ylavic [Fri, 11 Dec 2020 00:39:04 +0000 (00:39 +0000)] 
ci: add a run for MPM worker w/ pool-debug.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884292 13f79535-47bb-0310-9956-ffa450edef68

4 years agoRevert r1480058, -1'ed on dev@ and STATUS.
Yann Ylavic [Thu, 10 Dec 2020 16:04:34 +0000 (16:04 +0000)] 
Revert r1480058, -1'ed on dev@ and STATUS.

Never backported (and never will supposedly), while often creating
merge conflicts.

See https://lists.apache.org/thread.html/be0e7bdc3510fddd2dd80accece44917eba361ef4fcc713dd0f7f7fa%401367999236%40%3Cdev.httpd.apache.org%3E
and https://lists.apache.org/thread.html/6e63271b308a2723285d288857318e7bb51b6756690514d9bc75a71b%401371148914%40%3Ccvs.httpd.apache.org%3E

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884280 13f79535-47bb-0310-9956-ffa450edef68

4 years agoCHANGES entries for PR 63855.
Yann Ylavic [Tue, 8 Dec 2020 23:03:45 +0000 (23:03 +0000)] 
CHANGES entries for PR 63855.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884220 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFollow up to r1769760: MMN minor bump for ap_get_status_line_ex().
Yann Ylavic [Tue, 8 Dec 2020 22:01:38 +0000 (22:01 +0000)] 
Follow up to r1769760: MMN minor bump for ap_get_status_line_ex().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884218 13f79535-47bb-0310-9956-ffa450edef68

4 years agoRearrange and clear global core config state allocated out of pconf
Joe Orton [Tue, 8 Dec 2020 14:27:00 +0000 (14:27 +0000)] 
Rearrange and clear global core config state allocated out of pconf
from a single cleanup:

* server/core.c (reset_config): Clear ap_runtime_dir here, rather than
  in register_hooks.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884208 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix misleading crypt vs hash terminology in ht* and dbmmanage tools.
Yann Ylavic [Tue, 8 Dec 2020 14:06:16 +0000 (14:06 +0000)] 
Fix misleading crypt vs hash terminology in ht* and dbmmanage tools.

What the htpasswd, htdbm and dbmmanage tools do is hashing passwords, not
encrypting them, so fix the terminology in manpages, docs, --help, comments
and function names.

Submitted by: Michele Preziuso <mpreziuso kaosdynamics.com>
Reviewed by: ylavic
Github: closes #153

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884207 13f79535-47bb-0310-9956-ffa450edef68

4 years agoci: have an ASan run w/o pool-debug too.
Yann Ylavic [Mon, 7 Dec 2020 14:57:20 +0000 (14:57 +0000)] 
ci: have an ASan run w/o pool-debug too.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884182 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_http2: stop/wait the workers threads before their pool is killed.
Yann Ylavic [Sun, 6 Dec 2020 23:13:38 +0000 (23:13 +0000)] 
mod_proxy_http2: stop/wait the workers threads before their pool is killed.

There shouldn't be any worker thread active when pchild is destroyed (thus each
thread's pool), so register workers_pool_cleanup as a pre_cleanup of pchild.

This is to avoid races like the below stacktrace, where slot_run() threads
are still running when clean_child_exit() is called.

Thread 23 (Thread 0x7f4865b79800 (LWP 3740)):
#0  0x00007f4864dec449 in pthread_cond_destroy@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f4865020117 in run_cleanups (cref=<optimized out>) at memory/unix/apr_pools.c:2629
#2  pool_clear_debug (pool=pool@entry=0x558a5297e4a0, file_line=0x558a5237456b "event.c:757") at memory/unix/apr_pools.c:1830
#3  0x00007f486501ffee in pool_destroy_debug (pool=0x558a5297e4a0, file_line=<optimized out>) at memory/unix/apr_pools.c:1915
#4  0x00007f48650200f0 in pool_clear_debug (pool=pool@entry=0x558a52a41070, file_line=0x558a5237456b "event.c:757") at memory/unix/apr_pools.c:1827
#5  0x00007f486501ffee in pool_destroy_debug (pool=0x558a52a41070, file_line=<optimized out>) at memory/unix/apr_pools.c:1915
#6  0x00007f486502085c in apr_pool_destroy_debug (pool=<optimized out>, file_line=<optimized out>) at memory/unix/apr_pools.c:1957
#7  0x0000558a52326cfc in clean_child_exit (code=0) at event.c:757
#8  0x0000558a52327969 in child_main (child_num_arg=child_num_arg@entry=1, child_bucket=child_bucket@entry=0) at event.c:2926
#9  0x0000558a52327ce5 in make_child (s=0x558a52c9f840, slot=slot@entry=1, bucket=0) at event.c:2992
#10 0x0000558a52327d4c in startup_children (number_to_start=2, number_to_start@entry=3) at event.c:3015
#11 0x0000558a523289ac in event_run (_pconf=<optimized out>, plog=0x558a5273ce00, s=0x558a52c9f840) at event.c:3374
#12 0x0000558a5233e91e in ap_run_mpm (pconf=0x558a5270cbe0, plog=0x558a5273ce00, s=0x558a52c9f840) at mpm_common.c:100
#13 0x0000558a5231b763 in main (argc=<optimized out>, argv=<optimized out>) at main.c:844

Thread 2 (Thread 0x7f4840b70700 (LWP 3836)):
#0  0x00007f4864dec9f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f486501f65d in apr_thread_cond_wait (cond=<optimized out>, mutex=<optimized out>) at locks/unix/thread_cond.c:68
#2  0x00007f484e14ae4a in get_next (slot=0x558a528d5fe0) at h2_workers.c:209
#3  slot_run (thread=0x558a52828b30, wctx=0x558a528d5fe0) at h2_workers.c:228
#4  0x00007f4864de66db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f4864b0f88f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f4841b72700 (LWP 3834)):
#0  0x00007f4864a2ce97 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4864a2e801 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f4865020865 in apr_pool_destroy_debug (pool=<optimized out>, file_line=<optimized out>) at memory/unix/apr_pools.c:1955
#3  0x00007f486502b536 in apr_thread_exit (thd=thd@entry=0x558a52ba8980, retval=retval@entry=0) at threadproc/unix/thread.c:206
#4  0x00007f484e14aec6 in slot_run (thread=0x558a52ba8980, wctx=0x558a528d6060) at h2_workers.c:248
#5  0x00007f4864de66db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f4864b0f88f in clone () from /lib/x86_64-linux-gnu/libc.so.6

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884170 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_http2: Rename server_pool as pchild in h2_workers_create()
Yann Ylavic [Sun, 6 Dec 2020 22:46:42 +0000 (22:46 +0000)] 
mod_http2: Rename server_pool as pchild in h2_workers_create()

To clarify which parent pool the workers threads have.
And add a comment about workers_pool_cleanup()'s role and when it runs.

No functional change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884169 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_http2: revert r1883675.
Yann Ylavic [Sun, 6 Dec 2020 22:35:08 +0000 (22:35 +0000)] 
mod_http2: revert r1883675.

The issue was caused by races in APR_POOL_DEBUG code.

Stopping the h2 workers threads as pre_cleanup of workers->pool is soon enough
since it's a child of pchild already.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884168 13f79535-47bb-0310-9956-ffa450edef68

4 years ago²main: -V to print the SHM mechanisms in use.
Yann Ylavic [Sat, 5 Dec 2020 23:05:45 +0000 (23:05 +0000)] 
²main: -V to print the SHM mechanisms in use.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884140 13f79535-47bb-0310-9956-ffa450edef68

4 years agoCosmetics (and one more ci pass, just in case).
Yann Ylavic [Sat, 5 Dec 2020 21:29:31 +0000 (21:29 +0000)] 
Cosmetics (and one more ci pass, just in case).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884138 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd ASan (AddressSanitizer) build and tests to ci.
Yann Ylavic [Sat, 5 Dec 2020 19:11:22 +0000 (19:11 +0000)] 
Add ASan (AddressSanitizer) build and tests to ci.

Github: closes #152

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884136 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Sat, 5 Dec 2020 17:09:32 +0000 (17:09 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884129 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc XML file update.
Lucien Gentis [Sat, 5 Dec 2020 17:08:34 +0000 (17:08 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884128 13f79535-47bb-0310-9956-ffa450edef68

4 years agoWhitespace change to force ci (third time's a charm?).
Yann Ylavic [Sat, 5 Dec 2020 10:26:41 +0000 (10:26 +0000)] 
Whitespace change to force ci (third time's a charm?).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884123 13f79535-47bb-0310-9956-ffa450edef68

4 years agoWhitespace change to force ci (again).
Yann Ylavic [Sat, 5 Dec 2020 10:08:54 +0000 (10:08 +0000)] 
Whitespace change to force ci (again).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884122 13f79535-47bb-0310-9956-ffa450edef68

4 years agoWhitespace change to force ci.
Yann Ylavic [Fri, 4 Dec 2020 19:04:55 +0000 (19:04 +0000)] 
Whitespace change to force ci.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884111 13f79535-47bb-0310-9956-ffa450edef68

4 years agoDocument mod_ssl client certificate handling w/SSLProxyMachineCertificate*.
Joe Orton [Fri, 4 Dec 2020 14:21:06 +0000 (14:21 +0000)] 
Document mod_ssl client certificate handling w/SSLProxyMachineCertificate*.
[skip ci]

PR: 63936

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884097 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_fcgi: follow up to r1884068 and r1884069.
Yann Ylavic [Thu, 3 Dec 2020 16:10:08 +0000 (16:10 +0000)] 
mod_proxy_fcgi: follow up to r1884068 and r1884069.

No mixed Transfer-Encoding and Content-Length possible.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884070 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_fcgi: follow up to r1884068.
Yann Ylavic [Thu, 3 Dec 2020 16:00:13 +0000 (16:00 +0000)] 
mod_proxy_fcgi: follow up to r1884068.

Use the same heuristic as mod_proxy_http to determinine whether we need to
spool the request body.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884069 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy_fcgi: Honor "SetEnv proxy-sendcl".
Yann Ylavic [Thu, 3 Dec 2020 14:21:47 +0000 (14:21 +0000)] 
mod_proxy_fcgi: Honor "SetEnv proxy-sendcl".

When proxy-sendcl is set, spool the request body to memory/disk so that a
Content-Length can be computed and provided to the backend.

If not set, still try to prefetch the body in non blocking mode, which allows
to handle small bodies (< 16K) the same way by default.

PR 57087.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884068 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy: provide prefetching and spooling mechanisms to all proxy modules.
Yann Ylavic [Thu, 3 Dec 2020 14:06:17 +0000 (14:06 +0000)] 
mod_proxy: provide prefetching and spooling mechanisms to all proxy modules.

Export ap_proxy_prefetch_input(), ap_proxy_spool_input() and
ap_proxy_read_input() from mod_proxy_http to mod_proxy.h/proxy_util.c so
that they are usable by all proxy modules.

mod_proxy_fcgi will use them in a following commit.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884067 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/metadata/mod_unique_id.c: Use base64url encoding for
Joe Orton [Mon, 30 Nov 2020 09:22:22 +0000 (09:22 +0000)] 
* modules/metadata/mod_unique_id.c: Use base64url encoding for
  uuencoder table.

PR: 57044
Submitted by: Michael Kaufmann <apache-bugzilla michael-kaufmann.ch>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883947 13f79535-47bb-0310-9956-ffa450edef68

4 years agoap_pbase64decode(): save double NUL byte allocation and assignment.
Yann Ylavic [Fri, 27 Nov 2020 17:31:09 +0000 (17:31 +0000)] 
ap_pbase64decode(): save double NUL byte allocation and assignment.

apr_base64_decode_len() already accounts for the NUL byte, and
apr_base64_decode() already NUL terminates the string, no need
to do it in ap_pbase64decode().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883872 13f79535-47bb-0310-9956-ffa450edef68

4 years agoStop testing if a core dump was generated during the main test suite run.
Joe Orton [Fri, 27 Nov 2020 12:37:12 +0000 (12:37 +0000)] 
Stop testing if a core dump was generated during the main test suite run.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883854 13f79535-47bb-0310-9956-ffa450edef68

4 years agoRun the LDAP testing without pool-debug for the time being.
Joe Orton [Wed, 25 Nov 2020 08:13:59 +0000 (08:13 +0000)] 
Run the LDAP testing without pool-debug for the time being.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883813 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_auth_digest: fix crash with ONE_PROCESS (debug) mode shutdown.
Yann Ylavic [Wed, 25 Nov 2020 01:56:17 +0000 (01:56 +0000)] 
mod_auth_digest: fix crash with ONE_PROCESS (debug) mode shutdown.

Avoid double free/cleanup by just letting shm/rmm/global_mutex cleanups do
their work on restart/exit.

Set the globals to NULL in initialize_tables() should cleanup_tables() be
called on error.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883810 13f79535-47bb-0310-9956-ffa450edef68

4 years agoRevert r1883807 and r1883745, not the right fix.
Yann Ylavic [Wed, 25 Nov 2020 01:33:32 +0000 (01:33 +0000)] 
Revert r1883807 and r1883745, not the right fix.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883809 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_auth_digest: axe useless assignment from r1883745.
Yann Ylavic [Wed, 25 Nov 2020 00:25:23 +0000 (00:25 +0000)] 
mod_auth_digest: axe useless assignment from r1883745.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883807 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdjust name for pool-debug build. [skip ci]
Joe Orton [Tue, 24 Nov 2020 09:30:52 +0000 (09:30 +0000)] 
Adjust name for pool-debug build.  [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883781 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFor pool-debug builds, use APR/APR-util 1.7.x branches to pick
Joe Orton [Tue, 24 Nov 2020 08:27:00 +0000 (08:27 +0000)] 
For pool-debug builds, use APR/APR-util 1.7.x branches to pick
up e.g. the r1883751 locking fixes.

Re-enable mod_http2 and mod_ssl_ct in prefork pool-debug build
after r1883704 and r1883667.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883776 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_auth_digest: fix crash on ONE_PROCESS (debug) mode shutdown.
Yann Ylavic [Mon, 23 Nov 2020 11:14:56 +0000 (11:14 +0000)] 
mod_auth_digest: fix crash on ONE_PROCESS (debug) mode shutdown.

There need to be separate global variables for rmm and mutex(es) in the parent
and child processes, otherwise in ONE_PROCCESS (were clean_child_exit() and
ap_terminate() execute in the same process) the variables get overwritten in
child_init and freed twice when pchild and then pconf are destroyed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883745 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_proxy: pconf vs pchild consistency, and correctness in ONE_PROCESS mode.
Yann Ylavic [Mon, 23 Nov 2020 11:03:45 +0000 (11:03 +0000)] 
mod_proxy: pconf vs pchild consistency, and correctness in ONE_PROCESS mode.

Consistently use pconf for ap_proxy_define_{worker,balancer}() and pchild for
ap_proxu_initialize_{worker,balancer}() in mod_proxy [child_]init code.

pchild is needed in _initialize() for mutexes/shms' child_init and cleanup,
and to avoid a crash on shutdown (i.e. ap_terminate) in ONE_PROCESS mode,
where worker->cp->pool is destroyed twice, let's register conn_pool_cleanup()
as a pre_cleanup of pchild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883744 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd a note on APR/APR-util caching. [skip ci]
Joe Orton [Mon, 23 Nov 2020 10:50:26 +0000 (10:50 +0000)] 
Add a note on APR/APR-util caching. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883743 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_case_filter_in: fix memory leak.
Yann Ylavic [Sun, 22 Nov 2020 22:37:43 +0000 (22:37 +0000)] 
mod_case_filter_in: fix memory leak.

Each ap_malloc()ed buffer should be free()d with its bucket.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883730 13f79535-47bb-0310-9956-ffa450edef68