]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
13 months agoMerge r1862968, r1863191, r1867878, r1867882, r1867968, r1867971, r1869421, r1874491...
Joe Orton [Mon, 17 Jun 2024 08:11:10 +0000 (08:11 +0000)] 
Merge r1862968, r1863191, r1867878, r1867882, r1867968, r1867971, r1869421, r1874491, r1874511, r1879119, r1879136, r1879860, r1881459, r1881559, r1867970 from trunk:

Add experimental support for fd passing in mod_cgid.  Attaches CGI
script stderr to the error log specific to the vhost, by passing the
appropriate fd over the AF_UNIX socket from the request handling
thread to the cgid server process.

* modules/generators/config5.m4: Add --enable-cgid-fdpassing.

* modules/generators/mod_cgid.c (sock_readhdr): New function, also
  returns auxiliary control data (the stderr fd) if available.
  (sock_write): Take optional aux fd argument, send it as control
  data.  (send_req, get_req): Adjust accordingly to pass/receive the
  stderr fd.
  (cgid_server): Use passed fd if available, limit the lifetime.

PR: 60692

mod_cgid: Continuation of r1862968, experimental fd passing support.

Split out CGI bucket implementation from mod_cgi and use in both
mod_cgi and mod_cgid, bringing stderr handling in mod_cgid up to par
with mod_cgi.  (There is a lot of code which has been copied between
mod_cgi{,d} so there's scope for further reduction of source
duplication between the modules using this header)

* modules/generators/cgi_common.h: Copied from mod_cgi.c, removed
  everything but the CGI bucket implementation with only one change:
  (struct cgi_bucket_data, cgi_bucket_create, cgi_bucket_read): Take a
  timeout on bucket creation, store and use on reads.

* modules/generators/mod_cgi.c [APR_FILES_AS_SOCKETS]: Include
  cgi_common.h.
  (cgi_handler): Pass configured timeout to CGI bucket.

* modules/generators/mod_cgid.c: Include cgi_common.h.
  (log_script_err): Copy from mod_cgi.c.
  (log_script): Use log_script_err.
  (send_req): Take fd for stderr.
  (cgid_child_errfn): Handle fd-passing case by writing error
  to stderr for client to pass through ap_log_rerror.
  (cgid_handler): Create pipe for stderr, pass write-end to
  server via send_req, use read-end to create CGI bucket.  Handle
  stderr output in failure paths.

PR: 54221

* modules/generators/mod_cgid.c (sock_readhdr): Only set up control
  message block when required; add some additional error handling.

* modules/generators/cgi_common.h (cgi_bucket_create):
  Disable APR timeout handling here for all callers.

* modules/generators/mod_cgi.c (cgi_handler): ... drop it here.

PR: 63797

Move common (and near-identical) code for CGI response output handling
to cgi_common.h; the diff between the modules for this code was as
follows:

https://people.apache.org/~jorton/mod_cgi-to-cgid-handler.diff

Change from previous: mod_cgi will now explicitly discard output when
returning HTTP_MOVED_TEMPORARILY for relative redirects (should not be
functionally different), TRACE1 logging of ap_pass_brigade failures
for mod_cgid is dropped.

* modules/generators/cgi_common.h (cgi_handle_response): New function,
  factored out from mod_cgid.
  (discard_script_output): Copied function from mod_cgi/d unchanged.

* modules/generator/mod_cgid.c (cgid_handler),
  modules/generator/mod_cgi.c (cgi_handler): Use cgi_handle_response.

Fix build broken w/o --enable-cgid-fdpassing by r1867968:

* modules/generators/cgi_common.h: Only define CGI bucket type
  if WANT_CGI_BUCKET is defined.

* modules/generators/mod_cgi.c: Always include cgi_common.h, defining
  WANT_CGI_BUCKET iff APR_FILES_AS_SOCKETS is defined

* modules/generators/mod_cgid.c: Always include cgi_common.h, defining
  WANT_CGI_BUCKET iff HAVE_CGID_FDPASSING (--enable-cgid-fdpassing).

Add comment, no functional change.

* modules/generators/cgi_common.h (cgi_handle_request): Factor out
  near-identical common code from mod_cgid, mod_cgi.

* modules/generators/mod_cgid.c (cgid_handler),
  modules/generators/mod_cgi.c (cgi_handler):
  Adjust to use cgi_handle_request.

* modules/generators/cgi_common.h (cgi_handle_request): Catch
  (unlikely) apr_bucket_read() failure when reading request.

* modules/generators/mod_cgid.c (cgid_handler): Bail immediately with
  a 503 response on errors when talking to the daemon.  Check the pid
  returned is not zero.

* modules/generators/mod_cgid.c (get_req): Add basic sanity
  checking for the structure received in the CGI daemon.

* modules/generators/mod_cgid.c (get_cgi_pid): Fix test for pid=0.
  (cgid_handler): Remove duplicated test for pid=0 here added in
  r1879119.

* modules/generators/cgi_common.h (cgi_handle_response): Avoid trying
  to read the output brigade twice in the case of a timeout.

PR: 64709

Further re-unification of code duplicated across mod_cgi/mod_cgid into
cgi_common.h.  Functional changes:

- brings the PR 61980 fix to mod_cgid as well, and
- some mod_cgid-specific APLOGNOs are dropped in favour of the
  code used in the equivalent error path in mod_cgi

... otherwise no user-visible changes (intended).

* modules/generators/cgi_common.h (log_scripterror, log_script_err): Move
  here from mod_cgi.
  (cgi_handle_exec): Move here, renamed from mod_cgi's handle_exec.
  (cgi_optfns_retrieve): New function, split out from mod_cgi's cgi_post_config.

* modules/generators/mod_cgid.c: Adjust accordingly, update to pass
  logno separately.
  (register_hooks): Register cgi_optfns_retrieve.

* modules/generators/mod_cgi.c: Adjust accordingly.
  (register_hooks): Register cgi_optfns_retrieve.

* modules/generators/cgi_common.h (discard_script_output): Simplify
  slightly and ensure constant rather than unlimited memory
  consumption when discarding CGI script output (for e.g. a redirect
  response).

Github: closes #209
Reviewed by: jorton, ylavic, covener

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

13 months agovote/promote/stall
Eric Covener [Fri, 14 Jun 2024 12:09:38 +0000 (12:09 +0000)] 
vote/promote/stall

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

13 months agoPropose x1.
Joe Orton [Thu, 13 Jun 2024 16:18:18 +0000 (16:18 +0000)] 
Propose x1.

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

13 months agoMerge of /httpd/httpd/trunk:r1913837,1916861,1916907
Stefan Eissing [Thu, 6 Jun 2024 14:29:10 +0000 (14:29 +0000)] 
Merge of /httpd/httpd/trunk:r1913837,1916861,1916907

 * mod_md:
   - Using OCSP stapling information to trigger certificate renewals. Proposed
     by @frasertweedale.
   - Added directive `MDCheckInterval` to control how often the server checks
     for detected revocations. Added proposals for configurations in the
     README.md chapter "Revocations".
   - OCSP stapling: accept OCSP responses without a `nextUpdate` entry which is
     allowed in RFC 6960. Treat those as having an update interval of 12 hours.
     Added by @frasertweedale.
   - Adapt OpenSSL usage to changes in their API. By Yann Ylavic.

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

13 months agoMerge of /httpd/httpd/trunk:r1917270
Stefan Eissing [Thu, 6 Jun 2024 13:43:29 +0000 (13:43 +0000)] 
Merge of /httpd/httpd/trunk:r1917270

 * mod_tls: update version of rustls-ffi to v0.13.0.
   [Daniel McCarney (@cpu}]

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

14 months agoMerge r1910790, r1918059 from trunk: [CTR for CI changes]
Joe Orton [Thu, 30 May 2024 14:52:56 +0000 (14:52 +0000)] 
Merge r1910790, r1918059 from trunk: [CTR for CI changes]

Use 'git clone' rather than 'svn export' in CI scripts.
Drop unused run_svn_export.
Run git clone with -q throughout.

CI: For LDAP tests, switch to using OpenLDAP slapd running on
CentOS Stream 9.

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

14 months agopropose 1918003 for backport
Stefan Eissing [Mon, 27 May 2024 11:34:50 +0000 (11:34 +0000)] 
propose 1918003 for backport

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

14 months agoadd warning about behavior change
Eric Covener [Thu, 16 May 2024 17:54:35 +0000 (17:54 +0000)] 
add warning about behavior change

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

14 months ago3 votes + 1 promotion
Yann Ylavic [Wed, 15 May 2024 12:54:46 +0000 (12:54 +0000)] 
3 votes + 1 promotion

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

14 months agoPropose x1.
Joe Orton [Wed, 8 May 2024 12:52:21 +0000 (12:52 +0000)] 
Propose x1.

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

15 months agoVote x1, propose x1. [skip ci]
Joe Orton [Wed, 1 May 2024 10:42:15 +0000 (10:42 +0000)] 
Vote x1, propose x1. [skip ci]

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

15 months agofr doc rebuild.
Lucien Gentis [Sat, 20 Apr 2024 12:15:07 +0000 (12:15 +0000)] 
fr doc rebuild.

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

15 months agofr doc XML file update.
Lucien Gentis [Sat, 20 Apr 2024 12:14:21 +0000 (12:14 +0000)] 
fr doc XML file update.

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

15 months agoxform
Eric Covener [Wed, 17 Apr 2024 00:24:21 +0000 (00:24 +0000)] 
xform

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

15 months agoMerge r1917053 from trunk:
Eric Covener [Wed, 17 Apr 2024 00:23:56 +0000 (00:23 +0000)] 
Merge r1917053 from trunk:

doc recent addition ap_trust_cgilike_cl

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

15 months ago* Add proposal
Ruediger Pluem [Tue, 16 Apr 2024 06:08:13 +0000 (06:08 +0000)] 
* Add proposal

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

15 months agoPropose x1.
Joe Orton [Mon, 15 Apr 2024 16:16:03 +0000 (16:16 +0000)] 
Propose x1.

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

15 months agofr doc rebuild.
Lucien Gentis [Sat, 13 Apr 2024 14:09:51 +0000 (14:09 +0000)] 
fr doc rebuild.

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

15 months agofr doc XML file update.
Lucien Gentis [Sat, 13 Apr 2024 14:08:34 +0000 (14:08 +0000)] 
fr doc XML file update.

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

15 months agofr doc XML files updates.
Lucien Gentis [Sat, 13 Apr 2024 14:03:44 +0000 (14:03 +0000)] 
fr doc XML files updates.

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

16 months agoFix occasional pytest failures
Rainer Jung [Sat, 6 Apr 2024 10:28:21 +0000 (10:28 +0000)] 
Fix occasional pytest failures
in modules/http2/test_800_websockets.py
(test_h2_800_03_not_found and
test_h2_800_05_non_ws_delay_resource) due to
additional RST messages.

Backport of r1916830 from trunk.

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

16 months agoUpdate mergeinfo for merged changes.
Joe Orton [Fri, 5 Apr 2024 08:42:10 +0000 (08:42 +0000)] 
Update mergeinfo for merged changes.

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

16 months agoFix occasional pytest failures
Rainer Jung [Thu, 4 Apr 2024 22:48:03 +0000 (22:48 +0000)] 
Fix occasional pytest failures
in modules/http2/test_800_websockets.py
(test_h2_800_04_non_ws_resource and
test_h2_800_09b_unsupported) due to
additional RST messages.

Backport of r1916808 from trunk.

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

16 months agoFix failing pytest modules/http2/test_712_buffering.py:48.
Rainer Jung [Thu, 4 Apr 2024 22:20:31 +0000 (22:20 +0000)] 
Fix failing pytest modules/http2/test_712_buffering.py:48.

Do not count lines like "00:12:26.578220 <= Recv data, 0 bytes (0x0)"
(which happen before the final close) as receiving a real chunk.

Backport of r1918606 from trunk.

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

16 months agoFix pytest failure when using older nghttp2
Rainer Jung [Thu, 4 Apr 2024 21:52:18 +0000 (21:52 +0000)] 
Fix pytest failure when using older nghttp2

Backport of r1916804 from trunk.

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

16 months agopublishing release httpd-2.4.59
Eric Covener [Thu, 4 Apr 2024 13:52:54 +0000 (13:52 +0000)] 
publishing release httpd-2.4.59

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

16 months agoadd recent mergeinfo
Eric Covener [Wed, 3 Apr 2024 12:13:47 +0000 (12:13 +0000)] 
add recent mergeinfo

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

16 months agoMerge r1916771 from trunk:
Eric Covener [Wed, 3 Apr 2024 12:12:55 +0000 (12:12 +0000)] 
Merge r1916771 from trunk:

bail after too many failed reads

Submitted By: icing

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

16 months agoheader validation after content-* are eval'ed
Eric Covener [Wed, 3 Apr 2024 12:12:23 +0000 (12:12 +0000)] 
header validation after content-* are eval'ed

backport r1916770 from trunk
Submitted By: ylavic

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

16 months agolet httpd handle CL/TE for non-http handlers
Eric Covener [Wed, 3 Apr 2024 12:10:49 +0000 (12:10 +0000)] 
let httpd handle CL/TE for non-http handlers

backport r1916769 from trunk:
Submitted By: ylavic, covener

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

16 months agomake update-changes
Eric Covener [Wed, 3 Apr 2024 12:03:08 +0000 (12:03 +0000)] 
make update-changes

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

16 months agoRegenerate docs.
Joe Orton [Tue, 2 Apr 2024 14:39:42 +0000 (14:39 +0000)] 
Regenerate docs.

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

16 months agoMerge r1916129 from trunk (htpasswd docs):
Joe Orton [Tue, 2 Apr 2024 14:33:45 +0000 (14:33 +0000)] 
Merge r1916129 from trunk (htpasswd docs):

Document SHA-2 support.

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

16 months agoPR 64339 has been backported and closed.
Christophe Jaillet [Mon, 1 Apr 2024 08:50:00 +0000 (08:50 +0000)] 
PR 64339 has been backported and closed.

So remove it from the PATCHES/ISSUES THAT ARE BEING WORKED section.

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

16 months agor1881790 has also added the 3rd argument to "ProxyRemoteMatch".
Christophe Jaillet [Mon, 1 Apr 2024 08:40:50 +0000 (08:40 +0000)] 
r1881790 has also added the 3rd argument to "ProxyRemoteMatch".

(r1916708 in trunk)

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

16 months agoFix a release version in <compatibility> tag.
Christophe Jaillet [Mon, 1 Apr 2024 08:27:10 +0000 (08:27 +0000)] 
Fix a release version in <compatibility> tag.

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

16 months agoAdd <compatibility> note for CGIScriptTimeout.
Christophe Jaillet [Mon, 1 Apr 2024 08:22:21 +0000 (08:22 +0000)] 
Add <compatibility> note for CGIScriptTimeout.

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

16 months agoFix some release versions in <compatibility> tag.
Christophe Jaillet [Mon, 1 Apr 2024 07:38:02 +0000 (07:38 +0000)] 
Fix some release versions in <compatibility> tag.

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

16 months agoFix some release versions in <compatibility> tag.
Christophe Jaillet [Mon, 1 Apr 2024 07:36:31 +0000 (07:36 +0000)] 
Fix some release versions in <compatibility> tag.

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

16 months agoAdd mergeinfo
Rainer Jung [Sat, 30 Mar 2024 21:29:08 +0000 (21:29 +0000)] 
Add mergeinfo

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

16 months agoUpdate copyright year
Rainer Jung [Sat, 30 Mar 2024 21:12:26 +0000 (21:12 +0000)] 
Update copyright year

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

16 months agoMerged in r1916584.
Yann Ylavic [Wed, 27 Mar 2024 14:34:01 +0000 (14:34 +0000)] 
Merged in r1916584.

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

16 months agomod_auth_basic: Use unsigned bit flags (otherwise the non-zero value to be used is...
Yann Ylavic [Wed, 27 Mar 2024 14:33:00 +0000 (14:33 +0000)] 
mod_auth_basic: Use unsigned bit flags (otherwise the non-zero value to be used is -1).

Merge r1603863 from trunk.
Submitted by: ylavic
Reviewed by: ylavic, jorton, rpluem
Github: closes #425

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

16 months ago* Vote and promote
Ruediger Pluem [Wed, 27 Mar 2024 12:47:46 +0000 (12:47 +0000)] 
* Vote and promote

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

16 months agoVote.
Joe Orton [Wed, 27 Mar 2024 10:39:45 +0000 (10:39 +0000)] 
Vote.

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

16 months agoPropose warning fix.
Yann Ylavic [Wed, 27 Mar 2024 10:02:32 +0000 (10:02 +0000)] 
Propose warning fix.

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

16 months agoMerge in r1916575.
Yann Ylavic [Wed, 27 Mar 2024 09:27:23 +0000 (09:27 +0000)] 
Merge in r1916575.

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

16 months agomod_ssl: Allow for "SSLCompression off" still when OPENSSL_NO_COMP.
Yann Ylavic [Wed, 27 Mar 2024 09:26:41 +0000 (09:26 +0000)] 
mod_ssl: Allow for "SSLCompression off" still when OPENSSL_NO_COMP.

Latest OpenSSL versions have OPENSSL_NO_COMP by default, avoid breaking
existing "SSLCompression off" in configurations since it's a noop.

* modules/ssl/ssl_engine_config.c(ssl_cmd_SSLCompression):
  Don't fail for OPENSSL_NO_COMP if the flag is "off".

Merges r1916561 from ^/httpd/httpd/trunk

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

16 months ago1x merged, 1x vote+promote.
Joe Orton [Wed, 27 Mar 2024 08:59:49 +0000 (08:59 +0000)] 
1x merged, 1x vote+promote.

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

16 months ago* Vote
Ruediger Pluem [Wed, 27 Mar 2024 07:05:12 +0000 (07:05 +0000)] 
* Vote

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

16 months agoPropose.
Yann Ylavic [Tue, 26 Mar 2024 17:18:23 +0000 (17:18 +0000)] 
Propose.

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

16 months agoMerge r1619448, r1619486, r1895552, r1894152, r1914800 from trunk:
Joe Orton [Tue, 26 Mar 2024 15:00:06 +0000 (15:00 +0000)] 
Merge r1619448, r1619486, r1895552, r1894152, r1914800 from trunk:

leave a hint while scrolling through inflate() calls

mod_deflate:
- fix signed/unsigned (int/size_t) comparisons,
- add consume_buffer() to factorize code used multiple times,
- cleanup passed brigade (don't rely on next output filters to do it).

* modules/filters/mod_deflate.c (deflate_in_filter): Handle FLUSH in
  the input brigade even if done inflating (ctx->done is true), but
  don't try to flush the inflate stream in that case.  (Caught by
  Coverity)

* modules/filters/mod_deflate.c (deflate_out_filter): Catch
  apr_bucket_read() errors.

mod_deflate: remove filter after seeing EOS

Github: closes #423
Submitted by: covener, ylavic, jorton, Eric Norris <enorris etsy.com>
Reviewed by: jorton, gbechis, ylavic

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

16 months agoUpdate CHANGES entries.
Yann Ylavic [Tue, 26 Mar 2024 11:07:54 +0000 (11:07 +0000)] 
Update CHANGES entries.

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

16 months agoVote, promote.
Yann Ylavic [Tue, 26 Mar 2024 11:04:40 +0000 (11:04 +0000)] 
Vote, promote.

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

16 months agoMerge r1916133 from trunk:
Joe Orton [Tue, 19 Mar 2024 09:13:22 +0000 (09:13 +0000)] 
Merge r1916133 from trunk:

CI: update actions to v4

Submitted by: Sagar <42873729+SagarCodeCtrl users.noreply.github.com>

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

16 months agoMerged x2.
Joe Orton [Tue, 19 Mar 2024 08:38:27 +0000 (08:38 +0000)] 
Merged x2.

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

16 months agoMerge r1915281 from trunk:
Joe Orton [Tue, 19 Mar 2024 08:38:00 +0000 (08:38 +0000)] 
Merge r1915281 from trunk:

  *) mod_http2: v2.0.26 with the following fixes:
     - Fixed `Date` header on requests upgraded from HTTP/1.1 (h2c). Fixes
       <https://github.com/icing/mod_h2/issues/272>.
     - Fixed small memory leak in h2 header bucket free. Thanks to
       Michael Kaufmann for finding this and providing the fix.

Submitted by: icing
Reviewed by: icing, gbechis, jorton

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

16 months agoMerge r1884505, r1915625 from trunk:
Joe Orton [Tue, 19 Mar 2024 08:35:12 +0000 (08:35 +0000)] 
Merge r1884505, r1915625 from trunk:

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>, jorton
PR: 64339
Reviewed by: jorton, ylavic, gbechis
Github: closes #410

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

16 months agovote [skip ci]
Giovanni Bechis [Mon, 18 Mar 2024 17:00:35 +0000 (17:00 +0000)] 
vote [skip ci]

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

16 months agoMerge r1916396, r1916397 from trunk: [CTR for CI changes]
Joe Orton [Mon, 18 Mar 2024 16:53:10 +0000 (16:53 +0000)] 
Merge r1916396, r1916397 from trunk: [CTR for CI changes]

CI: Try working around recent ASAN failures.
CI: conditional didn't work in r1916396, always apply ASAN workaround.

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

16 months agoPropose x1.
Joe Orton [Mon, 18 Mar 2024 16:25:05 +0000 (16:25 +0000)] 
Propose x1.

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

16 months agoUpdate mod_deflate mergeinfo:
Joe Orton [Mon, 18 Mar 2024 15:46:29 +0000 (15:46 +0000)] 
Update mod_deflate mergeinfo:
trunk r1586542 merged in r1911075
trunk r1610501 merged in r1610503

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

16 months agofr doc rebuild.
Lucien Gentis [Sat, 9 Mar 2024 16:20:15 +0000 (16:20 +0000)] 
fr doc rebuild.

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

16 months agofr doc XML files updates.
Lucien Gentis [Sat, 9 Mar 2024 16:19:14 +0000 (16:19 +0000)] 
fr doc XML files updates.

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

17 months agoMerged x2.
Joe Orton [Tue, 5 Mar 2024 13:12:09 +0000 (13:12 +0000)] 
Merged x2.

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

17 months agoMerge r1915508 from trunk:
Joe Orton [Tue, 5 Mar 2024 13:11:54 +0000 (13:11 +0000)] 
Merge r1915508 from trunk:

* support/htcacheclean.c (list_urls): Continue rather than stopping
  after listing a file for each subdirectory.

PR: 65091
Submitted by: Artem Egorenkov <aegorenkov.91 gmail.com>
Reviewed by: jorton, ylavic, jfclere

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

17 months agoMerge r1862611, r1877693, r1878703, r1884207 from trunk:
Joe Orton [Tue, 5 Mar 2024 13:10:50 +0000 (13:10 +0000)] 
Merge r1862611, r1877693, r1878703, r1884207 from trunk:

* support/htpasswd.c (usage): Document SHA-256/512 support.

Windows : do not include ap_config_auto.h

* support/htpasswd.c (usage): Fix typo.

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>, jorton, steffenal, ylavic
Github: closes #408
Reviewed by: jorton, ylavic, jfclere

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

17 months agoVote.
Jean-Frederic Clere [Tue, 5 Mar 2024 12:41:20 +0000 (12:41 +0000)] 
Vote.

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

17 months agoremove my proposal and vote Joe's one.
Jean-Frederic Clere [Tue, 5 Mar 2024 10:23:37 +0000 (10:23 +0000)] 
remove my proposal and vote Joe's one.

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

17 months agofr doc rebuild.
Lucien Gentis [Sat, 2 Mar 2024 14:08:51 +0000 (14:08 +0000)] 
fr doc rebuild.

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

17 months agofr doc XML file update.
Lucien Gentis [Sat, 2 Mar 2024 14:07:29 +0000 (14:07 +0000)] 
fr doc XML file update.

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

17 months agoMerge r1916051, r1916052, r1916053, r1916055, r1916056 from trunk: [CTR for CI changes]
Joe Orton [Fri, 1 Mar 2024 11:10:15 +0000 (11:10 +0000)] 
Merge r1916051, r1916052, r1916053, r1916055, r1916056 from trunk: [CTR for CI changes]

CI: Hopefully fix caching and artifact uploads by creating $JOBID
as a unique key for each job in the matrix, using that as the
cache key and in each artefact upload (otherwise multiple failures
uploading "error_log" overwrite each other).

CI: Enable caching for the rustls install used for mod_tls testing.

CI: Re-enable caching for *fixed* versions of apr/apr-util which
should now work correctly (since the version is in the cache key).

For 1.x branches, CLEAR_CACHE must still be used.

CI tweaks:
- don't install CPAN modules if NO_TEST_FRAMEWORK is set
- remove the workaround for mod_h2 APR build caching which
  should no longer be necessary now caching is fixed
- fix capturing specific perl-framework failures with "TEST -v" mode

Fix regression in r1916055 - don't duplicate logic in _run_linux.sh
from _before_linux.sh in whether the perl-framework is used/needed.

Github: closes #418

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

17 months agoPropose.
Jean-Frederic Clere [Mon, 26 Feb 2024 09:26:51 +0000 (09:26 +0000)] 
Propose.

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

17 months agoVote.
Yann Ylavic [Thu, 22 Feb 2024 14:18:26 +0000 (14:18 +0000)] 
Vote.

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

17 months agoFollow-up to r1825120:
Yann Ylavic [Thu, 22 Feb 2024 14:17:43 +0000 (14:17 +0000)] 
Follow-up to r1825120:

* modules/ssl/ssl_engine_init.c (ssl_init_ca_cert_path): Since
  SSL_add_file_cert_subjects_to_stack() internally replaces the
  comparison callback with one equivalent to
  ssl_init_FindCAList_X509NameCmp, there's no point in using that
  here.
  (ssl_init_FindCAList_X509NameCmp): Removed.

Merges r1825124 from https://svn.apache.org/repos/asf/httpd/httpd/trunk.

Submitted by: jorton

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

17 months agoPR62229: add CGIScriptTimeout to mod_cgi
Yann Ylavic [Thu, 22 Feb 2024 14:12:18 +0000 (14:12 +0000)] 
PR62229: add CGIScriptTimeout to mod_cgi

add CGIScriptTimeout to mod_cgi, like mod_cgid's CGIDScriptTimeout.

Not addressed: making CGIScriptTimeout name work for either module.

Merges r1828172 from https://svn.apache.org/repos/asf/httpd/httpd/trunk.

Submitted By: Hank Ibell <hwibell gmail.com>
Committed By: covener
Reviewed by: minfrin, ylavic, jfclere

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

17 months agomod_ssl: Follow up to r1913815: szCryptoDevice to NULL when !MODSSL_HAVE_ENGINE_API
Yann Ylavic [Thu, 22 Feb 2024 14:06:46 +0000 (14:06 +0000)] 
mod_ssl: Follow up to r1913815: szCryptoDevice to NULL when !MODSSL_HAVE_ENGINE_API

Latest OpenSSL versions removed the ENGINE API completely, still provide NULL
SSLModConfigRec::szCryptoDevice since it's used outside MODSSL_HAVE_ENGINE_API.

SSLModConfigRec is a private struct, so no MMN change.

* modules/ssl/ssl_private(SSLModConfigRec):
  Provide szCryptoDevice (NULL) even if !MODSSL_HAVE_ENGINE_API.

Merges r1915889 from https://svn.apache.org/repos/asf/httpd/httpd/trunk.

Submitted by: ylavic
Reviewed by: ylavic, jorton, jfclere

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

17 months agoAccepted.
Yann Ylavic [Thu, 22 Feb 2024 13:45:08 +0000 (13:45 +0000)] 
Accepted.

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

17 months agoPropose. CMake builds fail withi: "fatal error C1083: Cannot open include file: ...
Jean-Frederic Clere [Thu, 22 Feb 2024 13:35:06 +0000 (13:35 +0000)] 
Propose. CMake builds fail withi: "fatal error C1083: Cannot open include file: 'ap_config_auto.h'"

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

17 months agovotes.
Jean-Frederic Clere [Thu, 22 Feb 2024 13:14:00 +0000 (13:14 +0000)] 
votes.

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

17 months agoVote.
Joe Orton [Tue, 20 Feb 2024 12:24:41 +0000 (12:24 +0000)] 
Vote.

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

17 months agoVote, propose.
Yann Ylavic [Tue, 20 Feb 2024 11:04:45 +0000 (11:04 +0000)] 
Vote, propose.

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

17 months agoPropose x1.
Joe Orton [Tue, 20 Feb 2024 10:54:48 +0000 (10:54 +0000)] 
Propose x1.

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

17 months agoDone x2.
Joe Orton [Fri, 16 Feb 2024 16:26:11 +0000 (16:26 +0000)] 
Done x2.

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

17 months ago* mod_slotmem_shm: Use ap_os_is_path_absolute() to make it portable.
Jean-Frederic Clere [Wed, 14 Feb 2024 14:27:03 +0000 (14:27 +0000)] 
* mod_slotmem_shm: Use ap_os_is_path_absolute() to make it portable.

Reviewed by: jfclere, jorton, covener

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

17 months agoundo r1915782.
Jean-Frederic Clere [Wed, 14 Feb 2024 11:25:01 +0000 (11:25 +0000)] 
undo r1915782.

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

17 months agoMerge r1915400 from trunk:
Jean-Frederic Clere [Wed, 14 Feb 2024 11:18:17 +0000 (11:18 +0000)] 
Merge r1915400 from trunk:

* mod_slotmem_shm: Use ap_os_is_path_absolute() to make it portable.

Reviewed by: jfclere, jorton, covener

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

17 months agoAdd new PR number for the libxml2 fix.
Joe Orton [Mon, 12 Feb 2024 08:41:26 +0000 (08:41 +0000)] 
Add new PR number for the libxml2 fix.

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

17 months agoMerge r1825120 from trunk:
Joe Orton [Mon, 12 Feb 2024 08:37:35 +0000 (08:37 +0000)] 
Merge r1825120 from trunk:

* modules/ssl/ssl_engine_init.c (ssl_init_PushCAList): Remove function.
  (ssl_init_ca_cert_path): Use SSL_add_file_cert_subjects_to_stack()
  instead.

[Edit: This does change behaviour: the acceptable client CA list is now
 always be sent in sorted order rather than configured/file order.
 In the case of SSLCACertificatePath and SSLCADNRequestPath, the
 order will be stable rather than non-determistic as previously.]

PR: 61574
Github: closes #406
Reviewed by: jorton, jfclere, covener

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

17 months agoa few quick votes
Eric Covener [Sun, 11 Feb 2024 01:14:13 +0000 (01:14 +0000)] 
a few quick votes

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

17 months agofr doc rebuild.
Lucien Gentis [Sat, 10 Feb 2024 14:33:37 +0000 (14:33 +0000)] 
fr doc rebuild.

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

17 months agoXML file update.
Lucien Gentis [Sat, 10 Feb 2024 14:32:44 +0000 (14:32 +0000)] 
XML file update.

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

17 months agoChange my vote the actual proposal refers code that is NOT in trunk.
Jean-Frederic Clere [Fri, 9 Feb 2024 16:30:49 +0000 (16:30 +0000)] 
Change my vote the actual proposal refers code that is NOT in trunk.

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

17 months agoPromote 2, done 1, propose 1.
Joe Orton [Fri, 9 Feb 2024 09:18:54 +0000 (09:18 +0000)] 
Promote 2, done 1, propose 1.

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

17 months agoMerge r1915680 from trunk:
Joe Orton [Fri, 9 Feb 2024 09:15:01 +0000 (09:15 +0000)] 
Merge r1915680 from trunk:

Update SSLProxyMachineCertificateFile compat note after r1915679.

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

17 months agoMerge r1884552 from trunk:
Joe Orton [Fri, 9 Feb 2024 09:12:02 +0000 (09:12 +0000)] 
Merge r1884552 from trunk:

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 #403
Reviewed by: jorton, gbechis, jfclere

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

17 months agoVote.
Jean-Frederic Clere [Fri, 9 Feb 2024 07:58:24 +0000 (07:58 +0000)] 
Vote.

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

18 months agofr doc rebuild.
Lucien Gentis [Sat, 3 Feb 2024 15:44:10 +0000 (15:44 +0000)] 
fr doc rebuild.

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

18 months agofr doc XML file update.
Lucien Gentis [Sat, 3 Feb 2024 15:42:45 +0000 (15:42 +0000)] 
fr doc XML file update.

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

18 months agoVote.
Joe Orton [Fri, 2 Feb 2024 16:38:31 +0000 (16:38 +0000)] 
Vote.

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