]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
5 years ago* support/passwd_common.c (mkhash): Fix salt buffer size for SHA2
Joe Orton [Fri, 1 May 2020 08:17:32 +0000 (08:17 +0000)] 
* support/passwd_common.c (mkhash): Fix salt buffer size for SHA2
  (caught by gcc 10).

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

5 years agoAdd gcc-10 job, drop gcc-9 config from allow_failures (seems stable again).
Joe Orton [Fri, 1 May 2020 08:17:16 +0000 (08:17 +0000)] 
Add gcc-10 job, drop gcc-9 config from allow_failures (seems stable again).
Use -O2 for all gcc -Werror jobs otherwise warnings triggered under e.g.
aggressive inlining are not found.

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

5 years agoTravis docs updates. [skip ci]
Joe Orton [Tue, 28 Apr 2020 07:21:04 +0000 (07:21 +0000)] 
Travis docs updates. [skip ci]

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

5 years agoEnable Travis notifications for trunk per dev@ consensus.
Joe Orton [Tue, 28 Apr 2020 07:16:23 +0000 (07:16 +0000)] 
Enable Travis notifications for trunk per dev@ consensus.

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

5 years ago* We have five providers [skip ci]
Ruediger Pluem [Tue, 28 Apr 2020 06:06:29 +0000 (06:06 +0000)] 
* We have five providers [skip ci]

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

5 years agoutil_filter: axe misleading AP_BUCKET_IS_MORPHING() macro and fix comments.
Yann Ylavic [Mon, 27 Apr 2020 14:22:04 +0000 (14:22 +0000)] 
util_filter: axe misleading AP_BUCKET_IS_MORPHING() macro and fix comments.

Morphing buckets are not only those with ->length == -1, so the macro is
misleading. Modify comments to talk about opaque buckets when length == -1
and about morphing buckets (once) for opaque and FILE buckets.

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 25 Apr 2020 15:38:21 +0000 (15:38 +0000)] 
fr doc rebuild.

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

5 years agofr doc XML files updates.
Lucien Gentis [Sat, 25 Apr 2020 15:37:20 +0000 (15:37 +0000)] 
fr doc XML files updates.

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

5 years agomod_ssl: follow up to r1876934: use OPENSSL_cleanse().
Yann Ylavic [Fri, 24 Apr 2020 21:29:42 +0000 (21:29 +0000)] 
mod_ssl: follow up to r1876934: use OPENSSL_cleanse().

memset() might be optimized away by the compiler since buf[] (on the stack)
is not used anymore.

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

5 years agomod_ssl: follow up to r1876934: wrap DH_bits()
Yann Ylavic [Fri, 24 Apr 2020 17:14:21 +0000 (17:14 +0000)] 
mod_ssl: follow up to r1876934: wrap DH_bits()

DH_get0_p() seems to be undefined for some openssl versions, so it can't
be used to implement DH_bits() generically.

Add new a modssl_DH_bits() wrapper to call DH_bits() for openssl < 3,
and BN_num_bits(DH_get0_p(dh)) otherwise.

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

5 years agomod_ssl: follow up to r1876934: OSSL_PARAM_construct_*() make no copy.
Yann Ylavic [Fri, 24 Apr 2020 17:04:28 +0000 (17:04 +0000)] 
mod_ssl: follow up to r1876934: OSSL_PARAM_construct_*() make no copy.

Pass OSSL_PARAM_construct_octet_string() an explicit copy of the MAC key
to avoid saving a pointer to stack.

While at it, cleanup secret data from buf before leaving.

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

5 years agomod_ssl: follow up to r1876934: fix !modssl_X509_STORE_load_locations() logic.
Yann Ylavic [Fri, 24 Apr 2020 16:29:02 +0000 (16:29 +0000)] 
mod_ssl: follow up to r1876934: fix !modssl_X509_STORE_load_locations() logic.

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

5 years agomod_ssl: add compatibility with OpenSSL 3.0.0
Yann Ylavic [Fri, 24 Apr 2020 16:09:02 +0000 (16:09 +0000)] 
mod_ssl: add compatibility with OpenSSL 3.0.0

Wrappers around deprecated API:
* X509_STORE_load_locations() => modssl_X509_STORE_load_locations(),
* CTX_load_verify_locations() => modssl_CTX_load_verify_locations(),
* ERR_peek_error_line_data()  => modssl_ERR_peek_error_data(),
* DH_bits(dh)                 => BN_num_bits(DH_get0_p(dh)).

Provide a compatible version of ssl_callback_SessionTicket() which does not
use the deprecated HMAC_CTX and HMAC_Init_ex(), replaced by EVP_MAC_CTX and
EVP_MAC_CTX_set_params() respectively. This requires adapting struct
modssl_ticket_key_t to replace hmac_secret[] with OSSL_PARAM mac_params[],
created once at load time still.
The callback is registered by SSL_CTX_set_tlsext_ticket_key_evp_cb() instead
of SSL_CTX_set_tlsext_ticket_key_cb().

Since BIO_eof() may now be called openssl-3 state machine, the never-called
assertion in bio_filter_in_ctrl() does not hold anymore, and we have to
handle BIO_CTRL_EOF. For any other cmd, we continue to AP_DEBUG_ASSERT(0) and
log an error, yet the return value is changed from -1 to 0 which is the usual
unhandled value.

Note that OpenSSL 3.0.0 is still in alpha stage as of now, the API shouldn't
change though, neither breakage to 1.x.x API.

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

5 years agoRevert r1876869 because on trunk server/listen.c
Rainer Jung [Thu, 23 Apr 2020 10:18:12 +0000 (10:18 +0000)] 
Revert r1876869 because on trunk server/listen.c
also has a dependency on libsystemd.
Thanks to jorton for pointing it out.

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

5 years agosystemd dependencies are only needed by mod_systemd.
Rainer Jung [Thu, 23 Apr 2020 08:52:45 +0000 (08:52 +0000)] 
systemd dependencies are only needed by mod_systemd.
They should currently not be needed by httpd directly
or any other binary. So no need to add them to
HTTPD_LIBS.

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

5 years agoAdd optional options= argument to Listen to add listener-specific
Joe Orton [Thu, 23 Apr 2020 08:26:26 +0000 (08:26 +0000)] 
Add optional options= argument to Listen to add listener-specific
socket options.

Reimplement "use_specific_errors" listener flag under generic
ap_listen_rec flags field holding all listener-specific options.

* include/ap_listen.h: Add AP_LISTEN_* flags.
  (ap_listen_rec): Rename use_specific_errors to flags.

* server/listen.c (make_sock): Set APR_SO_FREEBIND if
  AP_LISTEN_FREEBIND flag is set on listener; set APR_SO_REUSEPORT
  unconditionally if AP_LISTEN_REUSEPORT is set.
  (alloc_listener): Take flags argument.
  (ap_setup_listeners): Set AP_LISTEN_SPECIFIC_ERRORS flag here.
  (ap_set_listener): Parse optional options=... argument, catch
  typos and fail if protocol name contains a "=".
  (ap_duplicate_listeners): Duplicate flags.

Submitted by: jkaluza, Lubos Uhliarik <luhliari redhat.com>, jorton
PR: 61865
Github: closes #114

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

5 years agoconfig: allow for environment variable substitution fallback to default value.
Yann Ylavic [Wed, 22 Apr 2020 16:30:58 +0000 (16:30 +0000)] 
config: allow for environment variable substitution fallback to default value.

Make ap_resolve_env() handle the ${VAR?=default value} syntax, and update docs.

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

5 years ago* modules/filters/mod_proxy_html.c: Fix proxy_html_conf.bufsz
Joe Orton [Wed, 22 Apr 2020 11:25:40 +0000 (11:25 +0000)] 
* modules/filters/mod_proxy_html.c:  Fix proxy_html_conf.bufsz
  to have correct type, as it is used with ap_set_int_slot.

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

5 years agosort safe_env_lst
Giovanni Bechis [Wed, 22 Apr 2020 06:53:55 +0000 (06:53 +0000)] 
sort safe_env_lst
bz 65371

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

5 years agobe less specific and don't echo passphrase
Eric Covener [Wed, 22 Apr 2020 01:16:00 +0000 (01:16 +0000)] 
be less specific and don't echo passphrase

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

5 years ago* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Update comment only. [skip ci]
Joe Orton [Tue, 21 Apr 2020 11:15:09 +0000 (11:15 +0000)] 
* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Update comment only. [skip ci]

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

5 years agocore: follow up to r1876664: allow ErrorDocument to read body when applicable
Yann Ylavic [Tue, 21 Apr 2020 10:29:07 +0000 (10:29 +0000)] 
core: follow up to r1876664: allow ErrorDocument to read body when applicable

Unless ap_read_request() failed to read the request line or header, or
Transfer-Encoding is invalid, we can still provide the request body to custom
error handlers (ErrorDocument) that ask it (e.g. internal redirects to CGI).

So this commit splits early failure path (previously die_early label) in two,
die_unusable_input and die_before_hooks, where the latter preserves input
filters (including HTTP_IN).

Also, the code to apply the connection timeout and r->per_dir_config from the
server is now in a new apply_server_config() helper since it's used multiple
times. Note that apr_socket_timeout_set() is a noop if the new timeout is the
same as the one already in place, so there is no need to cache the old timeout
nor use apr_socket_timeout_get(). Likewise, r->server is initially set to
c->base_server so apply_server_config() is overall a noop when no change is
needed.

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

5 years agor1876779 follow-up.
Christophe Jaillet [Tue, 21 Apr 2020 10:18:08 +0000 (10:18 +0000)] 
r1876779 follow-up.

strcmp returns 0 if strings match, i.e. TLS/1.0 is found.
ap_find_token returns 1 if TLS/1.0 is found.

So the test has to be reversed to keep the same behavior

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

5 years agoFix the way we are looking for "TLS/1.0" tokens.
Christophe Jaillet [Tue, 21 Apr 2020 09:02:20 +0000 (09:02 +0000)] 
Fix the way we are looking for "TLS/1.0" tokens.
ap_find_token() is more robust than expecting the token to be the first one in the 'Upgrade' header field.

(see modules/ssl/ssl_engine_kernel.c#284)

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

5 years ago* support/suexec.c (main): Report error string after failure from
Joe Orton [Mon, 20 Apr 2020 09:31:25 +0000 (09:31 +0000)] 
* support/suexec.c (main): Report error string after failure from
  setgid/initgroups or setuid.

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

5 years ago* support/suexec.c (safe_strtol): New function.
Joe Orton [Mon, 20 Apr 2020 09:25:39 +0000 (09:25 +0000)] 
* support/suexec.c (safe_strtol): New function.
  (main): Use ^ to be avoid using atoi(); try to catch more string to
  integer and integer to uid/gid conversion errors/surprises.

PR: 33207

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

5 years agomod_ssl: axe useless X509_free (NULL arg).
Yann Ylavic [Sun, 19 Apr 2020 10:32:16 +0000 (10:32 +0000)] 
mod_ssl: axe useless X509_free (NULL arg).

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 18 Apr 2020 14:54:34 +0000 (14:54 +0000)] 
fr doc rebuild.

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

5 years agofr doc XML files updates.
Lucien Gentis [Sat, 18 Apr 2020 14:53:24 +0000 (14:53 +0000)] 
fr doc XML files updates.

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

5 years agogdbinit: print bucket fd when available.
Yann Ylavic [Fri, 17 Apr 2020 17:53:19 +0000 (17:53 +0000)] 
gdbinit: print bucket fd when available.

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

5 years agogdbinit: more address colomn space for 64bit.
Yann Ylavic [Fri, 17 Apr 2020 17:52:24 +0000 (17:52 +0000)] 
gdbinit: more address colomn space for 64bit.

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

5 years agomod_watchdog: use a single "wd_running" pool in wd_worker() thread.
Yann Ylavic [Fri, 17 Apr 2020 17:15:51 +0000 (17:15 +0000)] 
mod_watchdog: use a single "wd_running" pool in wd_worker() thread.

Clear the pool where appropriate instead of multiple create/destroy.

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

5 years agocore, h2: common ap_parse_request_line() and ap_check_request_header() code.
Yann Ylavic [Fri, 17 Apr 2020 16:47:42 +0000 (16:47 +0000)] 
core, h2: common ap_parse_request_line() and ap_check_request_header() code.

Extract parsing/validation code from read_request_line() and ap_read_request()
into ap_parse_request_line() and ap_check_request_header() helpers such that
mod_http2 can validate its HTTP/1 request with the same/configured policy.

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

5 years agocore, h2: send EOR for early HTTP request failure.
Yann Ylavic [Fri, 17 Apr 2020 13:07:46 +0000 (13:07 +0000)] 
core, h2: send EOR for early HTTP request failure.

The core output filters depend on EOR being sent at some point for correct
accounting of setaside limits and lifetime.

Rework ap_read_request() early failure (including in post_read_request() hooks)
so that it always sends the EOR after ap_die().

Apply the same scheme in h2_request_create_rec() which is the HTTP/2 to HTTP/1
counterpart.

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

5 years ago* server/mpm/prefork/prefork.c (prefork_pre_config): Use pconf as
Joe Orton [Thu, 16 Apr 2020 18:22:43 +0000 (18:22 +0000)] 
* server/mpm/prefork/prefork.c (prefork_pre_config): Use pconf as
  passed to the hook with ap_fatal_signal_child_setup, since
  prefork.c's pconf "global" is not set until the (later) open_logs
  hook, and if built as a DSO it may be reset inbetween.

* server/mpm/motorz/motorz.c (motorz_pre_config): Likewise.

[event and worker do not appear to have the same issue]

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

5 years agoAllow failures for the gcc9 build since the repo seems to have broken deps.
Joe Orton [Thu, 16 Apr 2020 18:00:17 +0000 (18:00 +0000)] 
Allow failures for the gcc9 build since the repo seems to have broken deps.

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

5 years ago* modules/core/mod_watchdog.c (wd_worker): Fix crashes snuck into
Joe Orton [Thu, 16 Apr 2020 17:55:48 +0000 (17:55 +0000)] 
* modules/core/mod_watchdog.c (wd_worker): Fix crashes snuck into
  r1876599 where a destroyed pool was reused.  Rename the "ctx"
  variable to reflect its purpose.  Also tweak the pool tags.

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

5 years ago *) mod_http2: Fixed regression that no longer set H2_STREAM_ID and H2_STREAM_TAG.
Stefan Eissing [Thu, 16 Apr 2020 17:15:40 +0000 (17:15 +0000)] 
  *) mod_http2: Fixed regression that no longer set H2_STREAM_ID and H2_STREAM_TAG.
     PR64330

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

5 years ago* modules/aaa/mod_authnz_ldap.c (build_request_config): Fix typo.
Joe Orton [Thu, 16 Apr 2020 15:07:34 +0000 (15:07 +0000)] 
* modules/aaa/mod_authnz_ldap.c (build_request_config): Fix typo.

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

5 years agoAdd missing pool tags to help debugging.
Yann Ylavic [Thu, 16 Apr 2020 12:32:33 +0000 (12:32 +0000)] 
Add missing pool tags to help debugging.

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

5 years agoAxe remainder from r1875947.
Yann Ylavic [Thu, 16 Apr 2020 11:04:03 +0000 (11:04 +0000)] 
Axe remainder from r1875947.

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

5 years agoCredits where it's due.
Yann Ylavic [Thu, 16 Apr 2020 10:42:17 +0000 (10:42 +0000)] 
Credits where it's due.

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

5 years agoAdd forgotten entries.
Jean-Frederic Clere [Thu, 16 Apr 2020 09:10:45 +0000 (09:10 +0000)] 
Add forgotten entries.

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

5 years agomod_{ssl,md}: init_stapling_status hooks should return an int.
Yann Ylavic [Wed, 15 Apr 2020 12:45:42 +0000 (12:45 +0000)] 
mod_{ssl,md}: init_stapling_status hooks should return an int.

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

5 years agomod_ssl: Fix memory leak in stapling code. PR63687.
Yann Ylavic [Wed, 15 Apr 2020 12:25:27 +0000 (12:25 +0000)] 
mod_ssl: Fix memory leak in stapling code. PR63687.

Free issuer's X509 in ssl_stapling_init_cert()'s early return paths.

Submitted by: icing

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

5 years agoPR64295 cannot override default Virtualhost's mod_reqtimeout
Jean-Frederic Clere [Wed, 15 Apr 2020 08:51:05 +0000 (08:51 +0000)] 
PR64295 cannot override default Virtualhost's mod_reqtimeout
of course only body=n can work the headers have to parsed to get the virtualhost.

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

5 years ago* modules/core/mod_watchdog.c: Switch to simpler logic to avoid the
Joe Orton [Tue, 14 Apr 2020 12:37:17 +0000 (12:37 +0000)] 
* modules/core/mod_watchdog.c: Switch to simpler logic to avoid the
  thread cleanup running before the thread has started, avoiding
  mutex operations which both have undefined behaviour:

  a) double-locking an UNNESTED (non-recursive) mutex twice in the parent
  b) unlocking a mutex in the spawned thread which was locked by the parent

  (wd_startup, wd_worker_cleanup, wd_worker): Use a boolean to ensure
  the cleanup does nothing if the thread wasn't started, drop the mutex.

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

5 years ago* Whitespace style fixes. No functional change.
Ruediger Pluem [Tue, 14 Apr 2020 09:43:48 +0000 (09:43 +0000)] 
* Whitespace style fixes. No functional change.

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

5 years agoPR64313 htcacheclean: Empty directories in CacheRoot are still present even after...
Jean-Frederic Clere [Tue, 14 Apr 2020 08:36:54 +0000 (08:36 +0000)] 
PR64313  htcacheclean: Empty directories in CacheRoot are still present even after using "-t"

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

5 years agoDon't fail the Travis build for ppc64le jobs, which are also unreliable.
Joe Orton [Tue, 14 Apr 2020 07:05:30 +0000 (07:05 +0000)] 
Don't fail the Travis build for ppc64le jobs, which are also unreliable.

e.g. https://travis-ci.org/github/apache/httpd/jobs/670727360

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

5 years agoPR64342 feedback
Eric Covener [Sun, 12 Apr 2020 14:22:00 +0000 (14:22 +0000)] 
PR64342 feedback

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

5 years agot/apache/mmn.t caught me
Eric Covener [Sun, 12 Apr 2020 12:52:54 +0000 (12:52 +0000)] 
t/apache/mmn.t caught me

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

5 years agoPR63628: individual status codes for ProxyErrorOverride.
Eric Covener [Sat, 11 Apr 2020 21:19:08 +0000 (21:19 +0000)] 
PR63628: individual status codes for ProxyErrorOverride.

Support specifying the http status codes to be considered by ProxyErrorOverride

Submitted By: Martin Drößler <mail martindroessler.de>
Committed By: covener

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

5 years agoIssue a warning for non-existent directories when running configtest
Eric Covener [Sat, 11 Apr 2020 18:47:46 +0000 (18:47 +0000)] 
Issue a warning for non-existent directories when running configtest

Submitted By: Stéphane Blondon <stephane.blondon gmail.com>
Committed By: covener

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 4 Apr 2020 14:01:20 +0000 (14:01 +0000)] 
fr doc rebuild.

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

5 years agofr doc XML file update.
Lucien Gentis [Sat, 4 Apr 2020 14:00:20 +0000 (14:00 +0000)] 
fr doc XML file update.

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

5 years ago* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Further tweaks
Joe Orton [Thu, 2 Apr 2020 08:54:29 +0000 (08:54 +0000)] 
* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Further tweaks
  to logic, comments and debugging:
  - allow buffering up to exactly COALESCE_BYTES rather than COALESCE_BYTES-1.
  - put bucket type name in logging output
  - do not coalesce a single-bucket prefix of length equal to the
    buffer size (which would be a pointless memory copy).

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

5 years agocore: add r->flushed flag and set it when the response is sent.
Yann Ylavic [Wed, 1 Apr 2020 22:56:44 +0000 (22:56 +0000)] 
core: add r->flushed flag and set it when the response is sent.

By setting EOR->r->flushed in the core output filter, allow one to determine at
log_transaction hook time whether the request has been fully flushed through
the network, or not (network issue, filter error, n-th pipelined resposne...).

Introduce the ap_bucket_eor_request() helper to get the request bound to an EOR
bucket, and uses it in ap_core_output_filter() to mark the EOR's request just
before destroying it, after all the previous buckets have been sent.

While at it, rename the request_rec* member of struct ap_bucket_eor from "data"
to "r", which makes the code clearer (not to be confused with b->data).

Finally, add CustomLog format %F, showing "F" or "-" depending on r->flushed,
for admins to figure out for each request.

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

5 years ago* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Handle the case
Ruediger Pluem [Wed, 1 Apr 2020 19:30:49 +0000 (19:30 +0000)] 
* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Handle the case
  where apr_bucket_read fails with an error and hence our current bucket
  remains the morphing bucket and is not replaced with a 'data' bucket.
  If the error is not EAGAINi, error out with an AP_FILTER_ERROR,
  otherwise just do not consider the morphing bucket that has no data for
  coalesce.

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

5 years agoap_core_output_filter: follow up to r1875947: don't swallow bucket read EOF.
Yann Ylavic [Wed, 1 Apr 2020 12:53:36 +0000 (12:53 +0000)] 
ap_core_output_filter: follow up to r1875947: don't swallow bucket read EOF.

Morphing buckets don't return APR_EOF on read when exhausted, ignoring EOF
here could mask real errors (e.g. FILE bucket truncated under us).

Thanks rpluem/jorton!

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

5 years agoMMN major bump for r1875947.
Yann Ylavic [Wed, 1 Apr 2020 12:46:20 +0000 (12:46 +0000)] 
MMN major bump for r1875947.

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

5 years ago* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Treat zero-length
Joe Orton [Wed, 1 Apr 2020 07:55:22 +0000 (07:55 +0000)] 
* modules/ssl/ssl_engine_io.c (ssl_io_filter_coalesce): Treat zero-length
  buckets consistently (ignore them) after a morphing bucket morphs.

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

5 years agocore: handle morphing buckets setaside/reinstate and kill request core filter.
Yann Ylavic [Tue, 31 Mar 2020 16:22:53 +0000 (16:22 +0000)] 
core: handle morphing buckets setaside/reinstate and kill request core filter.

The purpose of ap_request_core_filter() is not clear, it seems to prevent
potential morphing buckets to go through AP_FTYPE_CONNECTION filters which
would fail to set them aside (ENOTIMPL), and read them (unbounded) in memory.

This patch allows ap_filter_setaside_brigade() to set morphing buckets aside
by simply moving them, assuming they have the correct lifetime (either until
some further EOR, or the connection lifetime, or whatever). IOW, the module is
responsible for sending morphing buckets whose lifetime needs not be changed
by the connection filters.

Now since morphing buckets consume no memory until (apr_bucket_)read, like FILE
buckets, we don't account for them in flush_max_threshold either. This changes
ap_filter_reinstate_brigade() to only account for in-memory and EOR buckets to
flush_upto.

Also, since the EOR bucket is sent only to c->output_filters once the request
is processed, when all the filters < AP_FTYPE_CONNECTION have done their job
and stopped retaining data (after the EOS bucket, if ever), we prevent misuse
of ap_filter_{setaside,reinstate}_brigade() outside connection filters by
returning ENOTIMPL. This is not the right API for request filters as of now.

Finally, ap_request_core_filter() and co can be removed.

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

5 years agoAdds additional clarification, as requested in bz64167
Rich Bowen [Tue, 31 Mar 2020 14:39:56 +0000 (14:39 +0000)] 
Adds additional clarification, as requested in bz64167

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

5 years agoFor future debugging ease, output the Travis tag & branch. [skip ci]
Joe Orton [Tue, 31 Mar 2020 10:08:39 +0000 (10:08 +0000)] 
For future debugging ease, output the Travis tag & branch. [skip ci]

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

5 years ago* modules/ssl/ssl_engine_io.c: Update comment, no function change, [skip ci]
Joe Orton [Mon, 30 Mar 2020 14:11:44 +0000 (14:11 +0000)] 
* modules/ssl/ssl_engine_io.c: Update comment, no function change, [skip ci]

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

5 years ago* modules/ssl/ssl_engine_io.c: (ssl_io_filter_coalesce): Handle the
Joe Orton [Mon, 30 Mar 2020 13:18:29 +0000 (13:18 +0000)] 
* modules/ssl/ssl_engine_io.c: (ssl_io_filter_coalesce): Handle the
  case of a bucket which morphs to a bucket short enough to fit within
  the buffer without needing to split.

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

5 years agoAdd lognos. [skip ci].
Joe Orton [Mon, 30 Mar 2020 13:00:12 +0000 (13:00 +0000)] 
Add lognos. [skip ci].

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

5 years agomod_ssl: Extend the coalescing filter to avoid sending HTTP response
Joe Orton [Mon, 30 Mar 2020 09:17:35 +0000 (09:17 +0000)] 
mod_ssl: Extend the coalescing filter to avoid sending HTTP response
headers in a separate TLS record to the response body in some cases.

* modules/ssl/ssl_engine_io.c:
  Increase size of coalesce buffer to AP_IOBUFSIZE (8Kb).
  (ssl_io_filter_coalesce): Try harder to fill the prefix which
  gets coalesced, including a read&split of a morphing bucket type

Github: closes #106

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

5 years agoFix a copy/paste at the wrong place
Christophe Jaillet [Sun, 29 Mar 2020 14:12:20 +0000 (14:12 +0000)] 
Fix a copy/paste at the wrong place

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

5 years agoxforms
Eric Covener [Sun, 29 Mar 2020 13:22:19 +0000 (13:22 +0000)] 
xforms

[skip ci]

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

5 years agoduplicated
Eric Covener [Sun, 29 Mar 2020 13:09:41 +0000 (13:09 +0000)] 
duplicated

[skip ci]

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

5 years agotypo
Eric Covener [Sun, 29 Mar 2020 13:08:58 +0000 (13:08 +0000)] 
typo

[skip ci]

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

5 years agoAdd some compatibility notes for new directives in 2.4.42.
Christophe Jaillet [Sat, 28 Mar 2020 20:06:39 +0000 (20:06 +0000)] 
Add some compatibility notes for new directives in 2.4.42.
Add some missing <module> and <directive> to improve navigation and style.
Fix the format of some <default>

Add some placeholders for the MDCertificateCheck and MDActivationDelay directives. (new in 2.4.42)

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

5 years agoFix a typo
Christophe Jaillet [Sat, 28 Mar 2020 15:20:11 +0000 (15:20 +0000)] 
Fix a typo

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 28 Mar 2020 14:30:14 +0000 (14:30 +0000)] 
fr doc rebuild.

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

5 years agofr doc XML file update.
Lucien Gentis [Sat, 28 Mar 2020 14:28:49 +0000 (14:28 +0000)] 
fr doc XML file update.

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

5 years agoadd userdir same-origin warnings to mod_userdir
Eric Covener [Fri, 27 Mar 2020 16:48:46 +0000 (16:48 +0000)] 
add userdir same-origin warnings to mod_userdir

Submitted By: Hanno Böck <hanno hboeck.de>

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

5 years agoParentheses around AP_BUCKET_IS_EOR argument.
Yann Ylavic [Fri, 27 Mar 2020 09:15:03 +0000 (09:15 +0000)] 
Parentheses around AP_BUCKET_IS_EOR argument.

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

5 years ago* modules/ssl/ssl_private.h: Define X509_up_ref and EVP_PKEY_up_ref
Joe Orton [Thu, 26 Mar 2020 11:03:54 +0000 (11:03 +0000)] 
* modules/ssl/ssl_private.h: Define X509_up_ref and EVP_PKEY_up_ref
  for OpenSSL < 1.1.

* modules/ssl/ssl_engine_kernel.c (modssl_set_cert_info):
* modules/ssl/ssl_util_stapling.c (stapling_get_issuer):
  Use the above macros for all OpenSSL versions.

Github: closes #104

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

5 years agoDrop -v from arm64 test runs and add to allowed failures, it is still
Joe Orton [Wed, 25 Mar 2020 15:35:46 +0000 (15:35 +0000)] 
Drop -v from arm64 test runs and add to allowed failures, it is still
not as reliable as x86 builds. [skip ci]

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

5 years ago* modules/ssl/ssl_engine_vars.c (ssl_get_tls_cb): Fix leak of X509
Joe Orton [Wed, 25 Mar 2020 15:13:06 +0000 (15:13 +0000)] 
* modules/ssl/ssl_engine_vars.c (ssl_get_tls_cb): Fix leak of X509
  struct when accessing SERVER_TLS_SERVER_END_POINT.

PR: 64264

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

5 years agoTrivial change to trigger a Travis build.
Rainer Jung [Wed, 25 Mar 2020 14:13:55 +0000 (14:13 +0000)] 
Trivial change to trigger a Travis build.

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

5 years agorevert for now, surprising the scheme is present.
Eric Covener [Wed, 25 Mar 2020 02:01:04 +0000 (02:01 +0000)] 
revert for now, surprising the scheme is present.

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

5 years agoPR63437: don't clobber the scheme in r->uri with MergeSlashes
Eric Covener [Wed, 25 Mar 2020 01:52:48 +0000 (01:52 +0000)] 
PR63437: don't clobber the scheme in r->uri with MergeSlashes

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

5 years agowss also needs is_ssl.
Jean-Frederic Clere [Tue, 24 Mar 2020 16:20:18 +0000 (16:20 +0000)] 
wss also needs is_ssl.

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

5 years agoFix compilation breakage with OpenSSL 1.1.0 up to 1.1.0f.
Rainer Jung [Mon, 23 Mar 2020 13:33:22 +0000 (13:33 +0000)] 
Fix compilation breakage with OpenSSL 1.1.0 up to 1.1.0f.
SSL_CTX_get_min_proto_version() and
SSL_CTX_get_max_proto_version() were only introduced in
1.1.0g.

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

5 years agoBetter define conditions for skipping tests on 2.4.x or non-2.4.x.
Joe Orton [Mon, 23 Mar 2020 12:08:01 +0000 (12:08 +0000)] 
Better define conditions for skipping tests on 2.4.x or non-2.4.x.
Use YAML anchors and references to avoid copy&pasting, hopefully
the syntax remains reasonably readable.

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

5 years agosilence an "uninitialized value" warning
Giovanni Bechis [Mon, 23 Mar 2020 07:08:16 +0000 (07:08 +0000)] 
silence an "uninitialized value" warning
bz 63307

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 21 Mar 2020 14:02:56 +0000 (14:02 +0000)] 
fr doc rebuild.

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

5 years agofr doc xml file update.
Lucien Gentis [Sat, 21 Mar 2020 14:01:55 +0000 (14:01 +0000)] 
fr doc xml file update.

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

5 years agoFix the travis syntax (should have done it in a PR...).
Joe Orton [Fri, 20 Mar 2020 11:58:59 +0000 (11:58 +0000)] 
Fix the travis syntax (should have done it in a PR...).

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

5 years agoFix Travis trunk/master confusion, and make the i386 build
Joe Orton [Fri, 20 Mar 2020 11:56:58 +0000 (11:56 +0000)] 
Fix Travis trunk/master confusion, and make the i386 build
trunk-only, it has not been adjusted to find PCRE "v1" i386 packages.

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

5 years agoTest exclsion doesn't work since "tag !~" matches when tag is undefined.
Joe Orton [Fri, 20 Mar 2020 11:36:27 +0000 (11:36 +0000)] 
Test exclsion doesn't work since "tag !~" matches when tag is undefined.
Exclude tests from 2.4.x by explicitly matching against master.  Will
have to revisit this for 2.5.x.

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

5 years agoMatch Travis jobs for 2.4.x by tag as well as branch.
Joe Orton [Fri, 20 Mar 2020 11:13:53 +0000 (11:13 +0000)] 
Match Travis jobs for 2.4.x by tag as well as branch.
Ignore failures for s390x which is flaky in apt-get again.

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

5 years agoAdd simple test for apxs to catch regression in r1872042.
Joe Orton [Fri, 20 Mar 2020 10:52:25 +0000 (10:52 +0000)] 
Add simple test for apxs to catch regression in r1872042.

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

5 years agoadd absent /modules/http2/*.o to .gitignore
Eric Covener [Fri, 20 Mar 2020 02:41:17 +0000 (02:41 +0000)] 
add absent /modules/http2/*.o to .gitignore

gets my GH sandbox clean

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

5 years agoadd git-svn generated .gitignore
Eric Covener [Fri, 20 Mar 2020 02:40:25 +0000 (02:40 +0000)] 
add git-svn generated .gitignore

Submitted By: Renier Velazco <renier.velazco upr.edu>
Committed By: covener

Github: closes #101

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

5 years agofix apxs for non-destdir builds
Eric Covener [Thu, 19 Mar 2020 15:50:18 +0000 (15:50 +0000)] 
fix apxs for non-destdir builds

subtr(...,0, -1) chops off a character and leaves relative path.

(you will need to re-run configure)

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

5 years ago* modules/ssl/ssl_util_stapling.c (stapling_check_response) Don't send
Ruediger Pluem [Wed, 18 Mar 2020 11:31:20 +0000 (11:31 +0000)] 
* modules/ssl/ssl_util_stapling.c (stapling_check_response) Don't send
  out an OCSP response that can't be parsed.

  If the crypto/ASN library can't parse a response as 'basic OCSP'
  even if it leads with a OCSP successful status, then don't pass it
  to the client. There is nothing to say at all it isn't just garbage.
  And if other types of messages are standardized they can be added.

PR: 60182
Obtained from: https://github.com/apache/httpd/commit/e72154c75dab1cc043ea1aad36758806855efb25.diff
Submitted by: <gmoniker@gmail.com>
Reviewed by: rpluem

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