]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
3 years agoMerge r1899269 from trunk:
Eric Covener [Mon, 28 Mar 2022 00:07:16 +0000 (00:07 +0000)] 
Merge r1899269 from trunk:

add -n warnings/quirks

https://bz.apache.org/bugzilla/show_bug.cgi?id=65980

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1899270 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFix a typo.
Christophe Jaillet [Sun, 27 Mar 2022 06:45:09 +0000 (06:45 +0000)] 
Fix a typo.
PR 65978.

Thanks to Stefan Hamburger <apache_f5dosu stefanhamburger.de> for finding it.

(r1899234 in trunk)
[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1899235 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuild.
Lucien Gentis [Sat, 26 Mar 2022 14:11:51 +0000 (14:11 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1899215 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc XML doc file update.
Lucien Gentis [Sat, 26 Mar 2022 14:10:26 +0000 (14:10 +0000)] 
fr doc XML doc file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1899214 13f79535-47bb-0310-9956-ffa450edef68

3 years ago'interpolate' is a keyword, not a user-defined string.
Christophe Jaillet [Sat, 26 Mar 2022 06:17:34 +0000 (06:17 +0000)] 
'interpolate' is a keyword, not a user-defined string.
So it should not be in <var></var> in <syntax>  and  <code> should be used instead of <var> in explanations.

While at it, fix some other style issues and missing links spotted here and there.

(t1899205 in trunk)

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1899206 13f79535-47bb-0310-9956-ffa450edef68

3 years agopublishing release httpd-2.4.53
Stefan Eissing [Mon, 14 Mar 2022 09:51:39 +0000 (09:51 +0000)] 
publishing release httpd-2.4.53

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898917 13f79535-47bb-0310-9956-ffa450edef68

3 years ago update transformations.
Nilgun Belma Buguner [Sat, 12 Mar 2022 18:17:07 +0000 (18:17 +0000)] 
 update transformations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898882 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdate for sync with English docs.
Nilgun Belma Buguner [Sat, 12 Mar 2022 18:16:32 +0000 (18:16 +0000)] 
update for sync with English docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898881 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuild.
Lucien Gentis [Sat, 12 Mar 2022 14:51:23 +0000 (14:51 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898880 13f79535-47bb-0310-9956-ffa450edef68

3 years agoXML files updates.-Cette ligne, et les suivantes ci-dessous, seront ignorées--
Lucien Gentis [Sat, 12 Mar 2022 14:50:30 +0000 (14:50 +0000)] 
XML files updates.-Cette ligne, et les suivantes ci-dessous, seront ignorées--

M    manual/mod/core.xml.fr
M    manual/mod/mod_proxy.xml.fr
M    manual/rewrite/avoid.xml.fr
M    manual/rewrite/flags.xml.fr

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898879 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1898771 from trunk:
Ruediger Pluem [Wed, 9 Mar 2022 14:04:15 +0000 (14:04 +0000)] 
Merge r1898771 from trunk:

* Improve detection of _Thread_local

GCC < 4.9 reports __STDC_VERSION__ >= 201112 but does not implement
_Thread_local. Take care of this in the condition.

See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203066

Reviewed by: ylavic, covener, rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898786 13f79535-47bb-0310-9956-ffa450edef68

3 years ago* Vote [skip ci]
Ruediger Pluem [Wed, 9 Mar 2022 14:00:33 +0000 (14:00 +0000)] 
* Vote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898785 13f79535-47bb-0310-9956-ffa450edef68

3 years agovote [skip ci]
Eric Covener [Wed, 9 Mar 2022 13:55:52 +0000 (13:55 +0000)] 
vote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898784 13f79535-47bb-0310-9956-ffa450edef68

3 years agoPropose r1898771 [skip ci]
Yann Ylavic [Wed, 9 Mar 2022 13:53:03 +0000 (13:53 +0000)] 
Propose r1898771 [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898783 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1898735 from trunk:
Ruediger Pluem [Wed, 9 Mar 2022 07:41:40 +0000 (07:41 +0000)] 
Merge r1898735 from trunk:

* Improve the logic flow

Reviewed by: rpluem, covener, ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898772 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSync docs [skip ci]
Yann Ylavic [Mon, 7 Mar 2022 16:49:15 +0000 (16:49 +0000)] 
Sync docs [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898708 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1898702 from trunk:
Stefan Eissing [Mon, 7 Mar 2022 15:46:15 +0000 (15:46 +0000)] 
Merge r1898702 from trunk:

  *) docs: fixing missing closing tag.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898704 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSync CHANGES entries [skip ci]
Yann Ylavic [Mon, 7 Mar 2022 14:53:15 +0000 (14:53 +0000)] 
Sync CHANGES entries [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898696 13f79535-47bb-0310-9956-ffa450edef68

3 years agomod_sed: use size_t to allow for larger buffer sizes and unsigned arithmetics.
Yann Ylavic [Mon, 7 Mar 2022 14:52:42 +0000 (14:52 +0000)] 
mod_sed: use size_t to allow for larger buffer sizes and unsigned arithmetics.

Let's switch to apr_size_t buffers and get rid of the ints.

Merge r1898690 from trunk.
Submitted by: rpluem
Reviewed by: rpluem, covener, ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898695 13f79535-47bb-0310-9956-ffa450edef68

3 years agomod_lua: Error out if lua_read_body() or lua_write_body() fail.
Yann Ylavic [Mon, 7 Mar 2022 14:51:19 +0000 (14:51 +0000)] 
mod_lua: Error out if lua_read_body() or lua_write_body() fail.

Otherwise r:requestbody() or r:parsebody() failures might go unnoticed for
the user.

Merge r1898689 from trunk.
Submitted by: rpluem
Reviewed by: rpluem, covener, ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898694 13f79535-47bb-0310-9956-ffa450edef68

3 years agocore: Make sure and check that LimitXMLRequestBody fits in system memory.
Yann Ylavic [Mon, 7 Mar 2022 14:48:54 +0000 (14:48 +0000)] 
core: Make sure and check that LimitXMLRequestBody fits in system memory.

LimitXMLRequestBody can not exceed the size needed to ap_escape_html2() the
body without failing to allocate memory, so enforce this at load time based
on APR_SIZE_MAX, and make sure that ap_escape_html2() is within the bounds.

Document the limits for LimitXMLRequestBody in our docs.

Merge r1898686 from trunk.
Submitted by: ylavic, rpluem
Reviewed by: ylavic, covener, rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898693 13f79535-47bb-0310-9956-ffa450edef68

3 years agocore: Simpler connection close logic if discarding the request body fails.
Yann Ylavic [Mon, 7 Mar 2022 14:46:08 +0000 (14:46 +0000)] 
core: Simpler connection close logic if discarding the request body fails.

If ap_discard_request_body() sets AP_CONN_CLOSE by itself it simplifies and
allows to consolidate end_output_stream() and error_output_stream().

Merge r1898683 from trunk.
Submitted by: ylavic, rpluem
Reviewed by: ylavic, rpluem, covener

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898692 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSync CHANGES entries [skip ci]
Yann Ylavic [Mon, 7 Mar 2022 14:19:15 +0000 (14:19 +0000)] 
Sync CHANGES entries [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898691 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1898671 from trunk:
Joe Orton [Mon, 7 Mar 2022 11:07:32 +0000 (11:07 +0000)] 
Merge r1898671 from trunk:

Adjust Travis branch-matching conditions to treat any
branch starting "2.4" like 2.4.x (in addition to
"candidate-2.4").

[under CTR for Travis exemption]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898673 13f79535-47bb-0310-9956-ffa450edef68

3 years agoxforms
Christophe Jaillet [Sun, 6 Mar 2022 19:36:50 +0000 (19:36 +0000)] 
xforms

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898658 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFix the compatibility note for ProxyErrorOverride used with error code. (revision...
Christophe Jaillet [Sun, 6 Mar 2022 19:32:47 +0000 (19:32 +0000)] 
Fix the compatibility note for ProxyErrorOverride used with error code. (revision 2.4.47 based on CHANGES)

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898657 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSynch with trunk and add a missing word.
Christophe Jaillet [Sun, 6 Mar 2022 12:41:28 +0000 (12:41 +0000)] 
Synch with trunk and add a missing word.

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898650 13f79535-47bb-0310-9956-ffa450edef68

3 years ago'samesite' in CO is available since 2.4.47.
Christophe Jaillet [Sun, 6 Mar 2022 11:05:56 +0000 (11:05 +0000)] 
'samesite' in CO is available since 2.4.47.

While at it, remove some trainling spaces to synch with trunk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898648 13f79535-47bb-0310-9956-ffa450edef68

3 years agopropose
Christophe Jaillet [Sat, 5 Mar 2022 15:16:29 +0000 (15:16 +0000)] 
propose

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898625 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdate after backport before last backport - crazy times [skip ci]
Stefan Eissing [Fri, 4 Mar 2022 09:32:35 +0000 (09:32 +0000)] 
update after backport before last backport - crazy times [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898592 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdate after backport [skip ci]
Stefan Eissing [Fri, 4 Mar 2022 09:30:57 +0000 (09:30 +0000)] 
update after backport [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898591 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge of 1891019,1891023 from trunk:
Stefan Eissing [Fri, 4 Mar 2022 09:30:28 +0000 (09:30 +0000)] 
Merge of 1891019,1891023 from trunk:

  *) dbm: Split the loading of a dbm driver from the opening of a dbm file. When
     an attempt to load a dbm driver fails, log clearly which driver triggered
     the error (not "default"), and what the error was.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898590 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRevert of 1898566, backport of dbm loading, to allow clean apply of proposed patch.
Stefan Eissing [Fri, 4 Mar 2022 09:16:02 +0000 (09:16 +0000)] 
Revert of 1898566, backport of dbm loading, to allow clean apply of proposed patch.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898589 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge of r1896253,r1897859 from trunk (via PR 288):
Stefan Eissing [Fri, 4 Mar 2022 09:06:07 +0000 (09:06 +0000)] 
Merge of r1896253,r1897859 from trunk (via PR 288):

  *) mod_proxy: Bump shared worker name to 384 chars. PR 53218

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898588 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdate after backport [skip ci]
Stefan Eissing [Fri, 4 Mar 2022 08:52:17 +0000 (08:52 +0000)] 
update after backport [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898587 13f79535-47bb-0310-9956-ffa450edef68

3 years agomerge of 1898146,1898173 from trunk:
Stefan Eissing [Fri, 4 Mar 2022 08:51:47 +0000 (08:51 +0000)] 
merge of 1898146,1898173 from trunk:

  *) mod_http2: preserve the port number given in a HTTP/1.1
     request that was Upgraded to HTTP/2. Fixes PR65881.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898586 13f79535-47bb-0310-9956-ffa450edef68

3 years agodbm backport approved and merged
Jim Jagielski [Thu, 3 Mar 2022 13:30:46 +0000 (13:30 +0000)] 
dbm backport approved and merged

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898566 13f79535-47bb-0310-9956-ffa450edef68

3 years agopromote
Jim Jagielski [Thu, 3 Mar 2022 13:26:22 +0000 (13:26 +0000)] 
promote

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898565 13f79535-47bb-0310-9956-ffa450edef68

3 years agotested and voted
Jim Jagielski [Thu, 3 Mar 2022 13:25:42 +0000 (13:25 +0000)] 
tested and voted

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898564 13f79535-47bb-0310-9956-ffa450edef68

3 years agocleanup after backport [skip ci]
Stefan Eissing [Thu, 3 Mar 2022 09:32:22 +0000 (09:32 +0000)] 
cleanup after backport [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898561 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge of r1898127 from trunk:
Stefan Eissing [Thu, 3 Mar 2022 09:31:51 +0000 (09:31 +0000)] 
Merge of r1898127 from trunk:

  *) mod_proxy: Use the maxium of front end and backend timeouts instead of the
     minimum when tunneling requests (websockets, CONNECT requests).
     Backend timeouts can be configured more selectively (per worker if needed)
     as front end timeouts and typically the backend timeouts reflect the
     application requirements better.  PR 65886

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898559 13f79535-47bb-0310-9956-ffa450edef68

3 years agovote and promote [skip ci]
Stefan Eissing [Thu, 3 Mar 2022 09:30:53 +0000 (09:30 +0000)] 
vote and promote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898558 13f79535-47bb-0310-9956-ffa450edef68

3 years agoVote [skip ci]
Yann Ylavic [Mon, 28 Feb 2022 12:07:12 +0000 (12:07 +0000)] 
Vote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898472 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAxe backported entry [skip ci]
Yann Ylavic [Mon, 28 Feb 2022 12:04:41 +0000 (12:04 +0000)] 
Axe backported entry [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898471 13f79535-47bb-0310-9956-ffa450edef68

3 years agoap_regex: Use Thread Local Storage (if efficient) to avoid allocations.
Yann Ylavic [Mon, 28 Feb 2022 11:56:43 +0000 (11:56 +0000)] 
ap_regex: Use Thread Local Storage (if efficient) to avoid allocations.

PCRE2 wants an opaque context by providing the API to allocate and free it, so
to minimize these calls we maintain one opaque context per thread (in Thread
Local Storage, TLS) grown as needed, and while at it we do the same for PCRE1
ints vectors. Note that this requires a fast TLS mechanism to be worth it,
which is the case of apr_thread_data_get/set() from/to apr_thread_current()
when APR_HAS_THREAD_LOCAL; otherwise we'll do the allocation and freeing for
each ap_regexec().

The small stack vector is used for PCRE1 && !APR_HAS_THREAD_LOCAL only now.

Follow up to r1897240: APR_HAS_THREAD_LOCAL wants #ifdef instead of #if.

Follow up to r1897240: CHANGES entry.

ap_regex: PCRE needs buffers sized against the number of captures only.

No more (useless), no less (or PCRE will allocate a new buffer by itself to
satisfy the needs), so we should base our buffer size solely on the number
of captures in the regex (determined at compile time from the pattern).

The nmatch provided by the user is used to fill in pmatch only (up to that),
but "our" buffers are sized exactly as needed to avoid oversized allocations
or PCRE allocating by itself.

ap_regex: Follow up to r1897244: Fix pmatch overflow and returned value at limits.

Don't write to pmatch[nlimit:] when ncaps > nmatch, rc should not exceed nmatch
either as before r1897244.

ap_regex: Follow up to r1897240: Fix issues spotted by Rüdiger (thanks!).

#include "apr_thread_proc.h" is enough/needed by util_pcre.c and main.c.
Fix compilation (vector => ovector) for !HAVE_PCRE2 && APR_HAS_THREAD_LOCAL.
Check pcre2_match_data_create() return value for HAVE_PCRE2 && !APR_HAS_THREAD_LOCAL.

ap_regex: Follow up to r1897240: runtime fallback to alloc/free.

Even though APR_HAS_THREAD_LOCAL is compiled in, ap_regexec() might still be
called by non a apr_thread_t thread, let's fall back to alloc/free in this
case too.

ap_regex: Follow up to r1897240: no ap_thread_current() yet.

ap_regex: Follow up to r1897240: cleanups.

ap_regex: Follow up to r1897240: cleanup PCRE2 match data on exit.

ap_regex: Follow up to r1897240: #if APR_HAS_THREAD_LOCAL, not #ifdef.

core: Efficient ap_thread_current() with APR < 1.8.

#define ap_thread_create, ap_thread_current_create and ap_thread_current to
their apr-1.8+ equivalent if available, or implement them using the compiler's
thread_local mechanism if available, or finally provide stubs otherwise.

#define AP_HAS_THREAD_LOCAL to 1 in the two former case or 0 otherwise, while
AP_THREAD_LOCAL is defined to the compiler's keyword iff AP_HAS_THREAD_LOCAL.

Replace all apr_thread_create() calls with ap_thread_create() so that httpd
threads can use ap_thread_current()'s pool data as Thread Local Storage.

Bump MMN minor.

* include/httpd.h():
  Define AP_HAS_THREAD_LOCAL, AP_THREAD_LOCAL (eventually), ap_thread_create(),
  ap_thread_current_create() and ap_thread_current().

* server/util.c:
  Implement ap_thread_create(), ap_thread_current_create() and
  ap_thread_current() when APR < 1.8.

* modules/core/mod_watchdog.c, modules/http2/h2_workers.c,
    modules/ssl/mod_ssl_ct.c:
  Use ap_thread_create() instead of apr_thread_create.

* server/main.c:
  Use AP_HAS_THREAD_LOCAL and ap_thread_current_create instead of APR's.

* server/util_pcre.c:
  Use AP_HAS_THREAD_LOCAL and ap_thread_current instead of APR's.

* server/mpm/event/event.c, server/mpm/worker/worker.c,
    server/mpm/prefork/prefork.c:
  Use ap_thread_create() instead of apr_thread_create.
  Create an apr_thread_t/ap_thread_current() for the main chaild thread usable
  at child_init().

* server/mpm/winnt/child.c:
  Use ap_thread_create() instead of CreateThread().
  Create an apr_thread_t/ap_thread_current() for the main chaild thread usable

Follow up to r1897460: APLOGNOs.

Follow up to r1897460: !APR_HAS_THREAD implies no ap_thread_* either.

core: Follow up to r1897460: Implement and use ap_thread_current_after_fork().

thread_local variables are not (always?) reset on fork(), so we need a way
to set the current_thread to NULL in the child process.

Implement and use ap_thread_current_after_fork() for that.

* include/httpd.h:
  Define ap_thread_current_after_fork().

* server/util.c:
  Implement ap_thread_current_after_fork().

* server/mpm/event/event.c, server/mpm/prefork/prefork.c,
    server/mpm/worker/worker.c:
  Use ap_thread_current_after_fork().

* server/mpm/winnt/child.c:
  Windows processes are not fork()ed and each child runs the main(), so
  ap_thread_current_create() was already called there.

core: Follow up to r1897460: Provide ap_thread_main_create().

Replace ap_thread_current_create() by ap_thread_main_create() which is how
it's used by httpd. The former is now a local helper only to implement the
latter.

This allows to consolidate/factorize common code in the main() of httpd and
the unix MPMs.

ap_regex: Follow up to r1897240: Fetch the ovector _after_ the match.

Possibly(?) pcre2_match() can modifiy the given pcre2_match_data and invalidate
the old ovector, be safe and fetch it after.

main: Follow up to r1897240: Fix bad log copypasta.

Don't stderr printf the "stat" and "failed" results from the previous
apr_app_initialize() call for an error in ap_thread_main_create().

core: Follow up to r1897240: Opt-out for AP_HAS_THREAD_LOCAL and/or pcre's usage.

If the compiler's thread_local is not efficient enough on some platforms, or
not desired, have a way to disable its usage in httpd (at compile time).

Handle -DAP_NO_THREAD_LOCAL and/or -DAPREG_NO_THREAD_LOCAL as build opt-out for
thread_local usage in httpd gobally and/or in ap_regex only (respectively).

core: Follow up to r1897240: Provide/export ap_thread_current_create()

For completness, and possibly to ease backport to 2.4.x for MPM winnt.

core: Follow up to r1897240 & r1897691: Syntax.

Add compiled and loaded PCRE version numbers
to "httpd -V" output and to mod_info page.

Forgotten file needed for r1612934.

Minor mmn bump due to r1612940.

Backports: r1897240, r1897241, r1897242, r1897244, r1897248, r1897250,
           r1897260, r1897261, r1897263, r1897386, r1897459, r1897460,
           r1897461, r1897462, r1897472, r1897543, r1897651, r1897680,
           r1897689, r1897691, r1897692, r1612934, r1612940, r1613189
Submitted by: ylavic, rjung, rjung, rjung
Reviewed by: ylavic, rpluem, covener, steffenal, wrowe
GH: closes #289 (https://github.com/apache/httpd/pull/289)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898467 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSync CHANGES entries [skip ci]
Yann Ylavic [Mon, 28 Feb 2022 10:31:43 +0000 (10:31 +0000)] 
Sync CHANGES entries [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898462 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuild.
Lucien Gentis [Sat, 26 Feb 2022 12:42:59 +0000 (12:42 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898442 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc X%ML file update.
Lucien Gentis [Sat, 26 Feb 2022 12:42:01 +0000 (12:42 +0000)] 
fr doc X%ML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898441 13f79535-47bb-0310-9956-ffa450edef68

3 years agoReplace PCRE with PCRE2 where it is available
William A. Rowe Jr [Thu, 24 Feb 2022 22:18:42 +0000 (22:18 +0000)] 
Replace PCRE with PCRE2 where it is available

PCRE 8.45 from May '21 is at end-of-life and will not receive security
vulnerability attention. pcre2-10.x replaces this and has been updated
(as of this time) as recently as Oct '21.

This patch removes the needless assignment of re_erroffset in the conf pool
by the worker threads; such mistakes break the shared copy-on-write pages of
memory that should have remained common between all httpd worker processes.

Two de-optimizations are inherent in this patch, the former ovector-on-stack
opportunity is lost. This is by design of pcre2, more serious exploits were
available with stack array underrun/overrun manipulation. Heap for all pcre
array processing is the recommendation of the implementor, enforced by API.

Safer that we either create a new general context using pool allocation
in heap (requires thread-pool args we don't have in our api), or recycle
a per-req, per-pool, TLS match_data buffer on heap of some arbitrary 10 elts
or so, for these most common cases. Since this can't be done portably in C89
we may revisit this optimization in post-2.4 releases.

This logic refuses to consider --without-pcre, which is nonsequitor.

Submitted by: [wrowe, Petr Pisar <ppisar redhat.com>, rjung]
Backports: 1773454 1773741 1773742 1773839 1773870 1773882 1814662 1881478

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898399 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRemove backported entry
Christophe Jaillet [Thu, 24 Feb 2022 20:43:57 +0000 (20:43 +0000)] 
Remove backported entry

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898394 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1897325, r1897326, r1897329, r1898255 from trunk
Christophe Jaillet [Thu, 24 Feb 2022 20:43:21 +0000 (20:43 +0000)] 
Merge r1897325, r1897326, r1897329, r1898255 from trunk

APR and APU must be at least 1.3 to be able to configure and build httpd 2.4.x.
So remove some osbolete #if in the source code.
   - mod_socache_memcache
   - mod_authn_dbd
   - mod_log_config
   - mod_proxy_ftp and proxy-util

Submitted by: jailletc36, jailletc36, jailletc36, jailletc36
Reviewed by: jailletc36, icing, rpluem
Backported by: jailletc36

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898393 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRemove backported entry
Christophe Jaillet [Thu, 24 Feb 2022 20:37:55 +0000 (20:37 +0000)] 
Remove backported entry

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898392 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1881379, r1892422, r1893011, r1897270, r1897271 from trunk
Christophe Jaillet [Thu, 24 Feb 2022 20:37:08 +0000 (20:37 +0000)] 
Merge r1881379, r1892422, r1893011, r1897270, r1897271 from trunk

Easy patches: synch 2.4.x and trunk
   - mod_ssl: Fix a few warnings on 64 bits windows compilation
   - ap_escape_quotes(): Remove unneeded checks to improve performance
   - test/time-sem.c: unlock the accept mutex before exiting (error conditions)
   - mod_ext_filter: Fix a spurious -1 used as a APR_SIZE_T_FMT in an error message
   - mod_sed: fix some format string (s/lld/APR_INT64_T_FMT/)

Submitted by: jailletc36, rpluem, ylavic, jailletc36, jailletc36
Reviewed by: jailletc36, icing, rpluem
Backported by: jailletc36

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898391 13f79535-47bb-0310-9956-ffa450edef68

3 years agoResolves BZ65859 - feature is in trunk but not on 2.4 yet.
Rich Bowen [Wed, 23 Feb 2022 18:12:59 +0000 (18:12 +0000)] 
Resolves BZ65859 - feature is in trunk but not on 2.4 yet.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898351 13f79535-47bb-0310-9956-ffa450edef68

3 years agoResolves BZ65861 - clarify post_config api doc
Rich Bowen [Wed, 23 Feb 2022 14:39:07 +0000 (14:39 +0000)] 
Resolves BZ65861 - clarify post_config api doc

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898348 13f79535-47bb-0310-9956-ffa450edef68

3 years ago* Vote and promote [skip ci]
Ruediger Pluem [Wed, 23 Feb 2022 08:10:14 +0000 (08:10 +0000)] 
* Vote and promote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898339 13f79535-47bb-0310-9956-ffa450edef68

3 years ago* Propose [skip ci]
Ruediger Pluem [Wed, 23 Feb 2022 08:01:32 +0000 (08:01 +0000)] 
* Propose [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898338 13f79535-47bb-0310-9956-ffa450edef68

3 years agovote PCRE2 [skip ci]
Steffen Land [Tue, 22 Feb 2022 10:33:46 +0000 (10:33 +0000)] 
vote PCRE2 [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898315 13f79535-47bb-0310-9956-ffa450edef68

3 years agovotes [skip ci]
Stefan Eissing [Tue, 22 Feb 2022 10:09:38 +0000 (10:09 +0000)] 
votes [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898314 13f79535-47bb-0310-9956-ffa450edef68

3 years agoUpdate proposal
Christophe Jaillet [Sun, 20 Feb 2022 15:13:41 +0000 (15:13 +0000)] 
Update proposal

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898256 13f79535-47bb-0310-9956-ffa450edef68

3 years agoPropose
Christophe Jaillet [Sun, 20 Feb 2022 14:52:24 +0000 (14:52 +0000)] 
Propose

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898254 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuild.
Lucien Gentis [Sun, 20 Feb 2022 14:05:07 +0000 (14:05 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898253 13f79535-47bb-0310-9956-ffa450edef68

3 years agoXML file update version number
Lucien Gentis [Sun, 20 Feb 2022 14:03:08 +0000 (14:03 +0000)] 
XML file update version number

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898252 13f79535-47bb-0310-9956-ffa450edef68

3 years ago< and > characters replacement by their html entities
Lucien Gentis [Sun, 20 Feb 2022 13:57:13 +0000 (13:57 +0000)] 
< and > characters replacement by their html entities

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898251 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuild.
Lucien Gentis [Sat, 19 Feb 2022 16:12:53 +0000 (16:12 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898227 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc XML files updates.
Lucien Gentis [Sat, 19 Feb 2022 16:10:50 +0000 (16:10 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898226 13f79535-47bb-0310-9956-ffa450edef68

3 years agoEasy proposals to synch with trunk
Christophe Jaillet [Sat, 19 Feb 2022 16:07:03 +0000 (16:07 +0000)] 
Easy proposals to synch with trunk

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898225 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdd a compatibility note for the 'ldap' function.
Christophe Jaillet [Sat, 19 Feb 2022 13:59:30 +0000 (13:59 +0000)] 
Add a compatibility note for the 'ldap' function.
(r1898219 in trunk)

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898220 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRemove backported entry
Christophe Jaillet [Sat, 19 Feb 2022 13:49:56 +0000 (13:49 +0000)] 
Remove backported entry
[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898218 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1589986, r1589995, r1633528 from trunk
Christophe Jaillet [Sat, 19 Feb 2022 13:47:02 +0000 (13:47 +0000)] 
Merge r1589986, r1589995, r1633528 from trunk

  *) Add the ldap function to the expression API, allowing LDAP filters and
     distinguished names based on expressions to be escaped correctly to
     guard against LDAP injection.

Submitted by: minfrin, minfrin, jailletc36
Reviewed by: minfrin, icing, covener
Backported by: jailletc36

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898217 13f79535-47bb-0310-9956-ffa450edef68

3 years agovote/promote
Eric Covener [Fri, 18 Feb 2022 13:14:13 +0000 (13:14 +0000)] 
vote/promote

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898181 13f79535-47bb-0310-9956-ffa450edef68

3 years agovote [skip ci]
Stefan Eissing [Fri, 18 Feb 2022 10:12:20 +0000 (10:12 +0000)] 
vote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898176 13f79535-47bb-0310-9956-ffa450edef68

3 years agovote [skip ci]
Stefan Eissing [Fri, 18 Feb 2022 09:46:49 +0000 (09:46 +0000)] 
vote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898175 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdated backport proposal. [skip ci]
Stefan Eissing [Fri, 18 Feb 2022 09:32:26 +0000 (09:32 +0000)] 
updated backport proposal. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898174 13f79535-47bb-0310-9956-ffa450edef68

3 years agore-adding backport proposal for mod_http2 redesign in trunk
Stefan Eissing [Thu, 17 Feb 2022 10:17:00 +0000 (10:17 +0000)] 
re-adding backport proposal for mod_http2 redesign in trunk
and adding fixes r1895724 and r1895614.
[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898148 13f79535-47bb-0310-9956-ffa450edef68

3 years agobackport proposal for fix of PR65881.
Stefan Eissing [Thu, 17 Feb 2022 10:09:49 +0000 (10:09 +0000)] 
backport proposal for fix of PR65881.
[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898147 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge of r1896278 from trunk:
Stefan Eissing [Mon, 14 Feb 2022 16:52:26 +0000 (16:52 +0000)] 
Merge of r1896278 from trunk:

  *) mod_tls: Fix a linkage issue with rustls when compiled
     with rust 1.55, 1.56 or 1.57. This prevents the loading
     of the module because of an undefined symbol: fmaf
     See https://github.com/rustls/rustls-ffi/issues/133
     [Christophe Jaillet]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898077 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1898068 from trunk:
Stefan Eissing [Mon, 14 Feb 2022 13:55:59 +0000 (13:55 +0000)] 
Merge r1898068 from trunk:

 *) test: capture and parse output from nghttp more reliably.
    add repeat param to certain proxy tests.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898069 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuild.
Lucien Gentis [Sat, 12 Feb 2022 16:56:58 +0000 (16:56 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898010 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc XML file update.
Lucien Gentis [Sat, 12 Feb 2022 16:55:21 +0000 (16:55 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898009 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge r1897182, r1897614, r1897615, r1897619 from trunk:
Ruediger Pluem [Wed, 9 Feb 2022 12:29:13 +0000 (12:29 +0000)] 
Merge r1897182, r1897614, r1897615, r1897619 from trunk:

* Allocate the dav_liveprop_elem structure only once in the lifetime of the
  resource->pool and reuse it to avoid unnecessary huge memory allocations
  during collection walks.

* CHANGES entry for r1897182

* Fix typo

* Stupid mine. Evgeny is a committer here

Reviewed by: rpluem, jorton, ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897901 13f79535-47bb-0310-9956-ffa450edef68

3 years ago * mod_md) do not interfere with requests to /.well-known/acme-challenge/
Stefan Eissing [Tue, 8 Feb 2022 12:28:37 +0000 (12:28 +0000)] 
  * mod_md) do not interfere with requests to /.well-known/acme-challenge/
    resources if challenge type 'http-01' is not configured for a domain.
    Fixes <https://github.com/icing/mod_md/issues/279>.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897865 13f79535-47bb-0310-9956-ffa450edef68

3 years agoUpdate proposal [skip ci]
Yann Ylavic [Tue, 8 Feb 2022 11:11:09 +0000 (11:11 +0000)] 
Update proposal [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897860 13f79535-47bb-0310-9956-ffa450edef68

3 years agoPropose bumping proxy worker name to 384 chars [skip ci]
Yann Ylavic [Tue, 8 Feb 2022 11:00:49 +0000 (11:00 +0000)] 
Propose bumping proxy worker name to 384 chars [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897857 13f79535-47bb-0310-9956-ffa450edef68

3 years agoVote, promote [skip ci]
Yann Ylavic [Tue, 8 Feb 2022 10:50:31 +0000 (10:50 +0000)] 
Vote, promote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897856 13f79535-47bb-0310-9956-ffa450edef68

3 years agoPropose PCRE2 with Thread Local Storage [skip ci]
Yann Ylavic [Tue, 8 Feb 2022 10:49:28 +0000 (10:49 +0000)] 
Propose PCRE2 with Thread Local Storage [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897855 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFollow up to r1897849: CHANGES entry. [skip ci]
Yann Ylavic [Tue, 8 Feb 2022 10:19:37 +0000 (10:19 +0000)] 
Follow up to r1897849: CHANGES entry. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897854 13f79535-47bb-0310-9956-ffa450edef68

3 years agofix typo [skip ci]
Stefan Eissing [Tue, 8 Feb 2022 10:08:40 +0000 (10:08 +0000)] 
fix typo [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897851 13f79535-47bb-0310-9956-ffa450edef68

3 years ago *) test: fixing tls test case for a non-working curl
Stefan Eissing [Tue, 8 Feb 2022 10:02:14 +0000 (10:02 +0000)] 
  *) test: fixing tls test case for a non-working curl
     check on TLSv1.3 support.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897850 13f79535-47bb-0310-9956-ffa450edef68

3 years ago *) mod_md: the status description in MDomain's JSON, exposed in the
Stefan Eissing [Tue, 8 Feb 2022 10:00:21 +0000 (10:00 +0000)] 
  *) mod_md: the status description in MDomain's JSON, exposed in the
     md-status handler (if configure) did sometimes not carry the correct
     message when certificates needed renew.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897849 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMerge of r1897753 from trunk:
Stefan Eissing [Fri, 4 Feb 2022 09:55:10 +0000 (09:55 +0000)] 
Merge of r1897753 from trunk:

  *) mod_http2: remove mention of Cache Digest functionality
     since the draft has been redacted for some time.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897755 13f79535-47bb-0310-9956-ffa450edef68

3 years ago* Vote, comment [skip ci]
Ruediger Pluem [Wed, 2 Feb 2022 07:16:12 +0000 (07:16 +0000)] 
* Vote, comment [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897685 13f79535-47bb-0310-9956-ffa450edef68

3 years agoVote, promote [skip ci]
Yann Ylavic [Tue, 1 Feb 2022 00:39:50 +0000 (00:39 +0000)] 
Vote, promote [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897636 13f79535-47bb-0310-9956-ffa450edef68

3 years agoVote, [skip ci]
Joe Orton [Mon, 31 Jan 2022 09:12:07 +0000 (09:12 +0000)] 
Vote, [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897621 13f79535-47bb-0310-9956-ffa450edef68

3 years ago* Another fix to the changes entry [skip ci]
Ruediger Pluem [Mon, 31 Jan 2022 08:59:25 +0000 (08:59 +0000)] 
* Another fix to the changes entry [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897620 13f79535-47bb-0310-9956-ffa450edef68

3 years ago* Add proposal [skip ci]
Ruediger Pluem [Mon, 31 Jan 2022 08:21:36 +0000 (08:21 +0000)] 
* Add proposal [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897616 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuid.
Lucien Gentis [Sat, 29 Jan 2022 13:33:31 +0000 (13:33 +0000)] 
fr doc rebuid.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897583 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc XML file update.
Lucien Gentis [Sat, 29 Jan 2022 13:32:36 +0000 (13:32 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897582 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFixes ambiguous example, as per https://bz.apache.org/bugzilla/show_bug.cgi?id=63714
Rich Bowen [Mon, 24 Jan 2022 16:36:19 +0000 (16:36 +0000)] 
Fixes ambiguous example, as per https://bz.apache.org/bugzilla/show_bug.cgi?id=63714

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897426 13f79535-47bb-0310-9956-ffa450edef68

3 years agofr doc rebuild.
Lucien Gentis [Sat, 22 Jan 2022 13:46:01 +0000 (13:46 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1897342 13f79535-47bb-0310-9956-ffa450edef68