Commit Graph

34146 Commits

Author SHA1 Message Date
7943c0ba66 Steal 2 lognos.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926368 13f79535-47bb-0310-9956-ffa450edef68
2025-06-12 10:06:46 +00:00
9771a826fd Add the escapehtml function to the expression API
Add the escapehtml function to the expression API, allowing to escape HTML
strings to guard against HTML injections.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926342 13f79535-47bb-0310-9956-ffa450edef68
2025-06-10 15:31:19 +00:00
af61c91eb9 fr doc rebuild.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926213 13f79535-47bb-0310-9956-ffa450edef68
2025-06-07 12:39:55 +00:00
d1d5b485ac fr doc XML files updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926212 13f79535-47bb-0310-9956-ffa450edef68
2025-06-07 12:38:51 +00:00
4e2976c49a Add a change entry to give credits to the author.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926191 13f79535-47bb-0310-9956-ffa450edef68
2025-06-06 20:26:38 +00:00
052328156d Add a change entry to give credits to the author.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926189 13f79535-47bb-0310-9956-ffa450edef68
2025-06-06 20:21:30 +00:00
9a2eca1ca1 Follow-up to r1922931.
In set_cookie_name() and set_cookie_name2(), now that the empty 'name' argument is explicitly handled, the error message in check_string() can be simplified because the cookie name can't be empty anymore when this function is called.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926188 13f79535-47bb-0310-9956-ffa450edef68
2025-06-06 20:12:16 +00:00
bc44c682d3 Improve syntax highlight which is already nicer in 2.4.x
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926185 13f79535-47bb-0310-9956-ffa450edef68
2025-06-06 18:47:11 +00:00
90536be744 CI: Reintroduce timeout/retry handling for "svn export" specific to
Apache::Test handling.

Github: closes #536


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926174 13f79535-47bb-0310-9956-ffa450edef68
2025-06-06 11:50:43 +00:00
39265983d1 * modules/dav/fs/repos.c (dav_fs_remove_resource):
Return a 404 if apr_file_remove() fails with an ENOENT error,
  likely due to a race with another DELETE.

PR: 60746
Github: closes #535


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926172 13f79535-47bb-0310-9956-ffa450edef68
2025-06-06 10:36:00 +00:00
5c7eac0cf6 Docs: update openssl command for listing pubkey algorithms for 3.0.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926171 13f79535-47bb-0310-9956-ffa450edef68
2025-06-06 10:34:15 +00:00
a2b00bbed6 * Correctly handle filenames that contain spaces
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926111 13f79535-47bb-0310-9956-ffa450edef68
2025-06-04 09:31:05 +00:00
b5fe0f863f Correctly check return value of getline
In case of an error (e.g. file not found or readable) getline returns -1 which
causes an endless loop. Leave the loop in such cases.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926110 13f79535-47bb-0310-9956-ffa450edef68
2025-06-04 09:16:24 +00:00
32ebb6bee9 Ensure that ALL fields of the ap_listen_rec structure are initialized
alloc_listener initializes more fields in the created ap_listen_rec structure
than alloc_systemd_listener as it has more data to add to this structure.
Ensure that all fields of the ap_listen_rec structure are initialized at
least with 0 as later code using this structure depends on this.

Submitted by: jailletc36


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926091 13f79535-47bb-0310-9956-ffa450edef68
2025-06-03 15:12:14 +00:00
6280123692 restore MDActivationDelay in the mod_md documentation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926075 13f79535-47bb-0310-9956-ffa450edef68
2025-06-03 07:34:32 +00:00
2de0d11e9b *) mod_md: update to version 2.5.2
- Fixed TLS-ALPN-01 challenges when multiple `MDPrivateKeys` are specified
       with EC keys before RSA ones. Fixes #377. [Stefan Eissing]
     - Fixed missing newlines in the status page output. [Andreas Groth]



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1925979 13f79535-47bb-0310-9956-ffa450edef68
2025-05-30 12:45:59 +00:00
b84e2e2068 *) mod_http2: update to version 2.0.32
The code setting the connection window size was set wrong,
     preventing `H2WindowSize` to work.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1925975 13f79535-47bb-0310-9956-ffa450edef68
2025-05-30 12:20:22 +00:00
c15471ee3b mod_proxy: restore reuse of ProxyRemote connections when possible.
Fixes a regression from 2.4.59 (r1913907).

For a reverse proxy setup with a worker (enablereuse=on) and a
forward/CONNECT ProxyRemote to reach it, an open connection/tunnel
to/through the remote proxy for the same origin server (and using the
same proxy auth) should be reusable. Avoid closing them like r1913534
did.

* modules/proxy/proxy_util.c:
  Rename the struct to remote_connect_info since it's only used for
  connecting through remote CONNECT proxies. Axe the use_http_connect
  field, always true.

* modules/proxy/proxy_util.c(ap_proxy_connection_reusable):
  Remote CONNECT (forward) proxy connections can be reused if the auth
  and origin server infos are the same, so conn->forward != NULL is not
  a condition to prevent reusability.

* modules/proxy/proxy_util.c(ap_proxy_determine_connection):
  Fix the checks around conn->forward reuse and connection cleanup if
  that's not possible.

Submitted by: jfclere, ylavic
GH: closes #531


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1925743 13f79535-47bb-0310-9956-ffa450edef68
2025-05-22 14:38:41 +00:00
b8de59ac7c CI: Bump versions tested to APR 1.7.6, OpenSSL 3.5.0.
Github: closes #530


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1925588 13f79535-47bb-0310-9956-ffa450edef68
2025-05-16 15:28:31 +00:00
bf19cfe634 * modules/dav/fs/repos.c (dav_fs_method_precondition):
Fix crashes when mod_dav_fs is not configured.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1925371 13f79535-47bb-0310-9956-ffa450edef68
2025-05-02 15:47:09 +00:00
e36237899d * Temporarily add back the query string to the URL as it might contain the
routing information for sticky sessions.

PR: 69443


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1925109 13f79535-47bb-0310-9956-ffa450edef68
2025-04-16 11:29:25 +00:00
65d5f9ee6c CI: Use the git commit hash to determine the revision of APR/APR-util
from the github repos, and build exactly that, rather than relying on SVN:
 - works if apr/apr-util moves to a r/w git in the future
 - removes a race for branches where the git revision tested
 could be different to the SVN revision retrieved before

Github: closes #528


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924958 13f79535-47bb-0310-9956-ffa450edef68
2025-04-09 10:17:24 +00:00
e6cfbfa30d mod_ssl: Check the SSLProtocol directive when loading the configuration
Previously, the SSLProtocol directive was checked at runtime. Apache quit if
the directive contained an invalid combination of protocols, and logged the
message "AH02231: No SSL protocols available [hint: SSLProtocol]".

With this change, most invalid SSLProtocol directives are detected when
checking the configuration, e.g. with \"httpd -t -f httpd.conf\".

Examples of invalid protocol combinations that are caught:
* SSLProtocol "-TLSv1"
* SSLProtocol "-all"
* SSLProtocol "TLSv1.2 -TLSv1.2"

Submitted by: Michael Kaufmann <mail michael-kaufmann.ch>
Github: closes #523


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924955 13f79535-47bb-0310-9956-ffa450edef68
2025-04-09 08:01:24 +00:00
b3a52bec98 mod_asis: Fix the log level of the message AH01236
Change the log level from ERROR to DEBUG.

The message \"mod_asis: ap_pass_brigade failed for file ...\" was logged with
the level ERROR. This log level is inappropriate here, because a client can
trigger this log message by aborting the request.

Most other modules don't log at all or use the log level DEBUG when
ap_pass_brigade() fails.

Submitted by: Michael Kaufmann <mail michael-kaufmann.ch>
Github: closes #527


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924954 13f79535-47bb-0310-9956-ffa450edef68
2025-04-09 07:43:49 +00:00
e9231ff8cc CI: Update to test against OpenSSL 3.4 and 3.5.0-beta1
Github: closes #525


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924911 13f79535-47bb-0310-9956-ffa450edef68
2025-04-07 14:25:59 +00:00
d7cec16f60 fr doc rebuild.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924811 13f79535-47bb-0310-9956-ffa450edef68
2025-04-05 13:39:02 +00:00
75c3a1967c fr doc XML files updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924810 13f79535-47bb-0310-9956-ffa450edef68
2025-04-05 13:37:52 +00:00
2738357b81 Update to use rfc-editor.org URLs throughout.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924775 13f79535-47bb-0310-9956-ffa450edef68
2025-04-04 16:18:31 +00:00
0427048348 Update mod_ssl docs to reference current & working openssl.org
URIs throughout.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924774 13f79535-47bb-0310-9956-ffa450edef68
2025-04-04 16:08:18 +00:00
5a148b5b9d mod_ssl: Remove warning over potential uninitialised value
for ssl protocol prior to protocol selection.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924757 13f79535-47bb-0310-9956-ffa450edef68
2025-04-03 14:36:16 +00:00
303ca68847 * mod_proxy_http2: revert r1912193 for detecting broken backend connections
as this interferes with backend selection who a node is unresponsive.
    PR69624.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924554 13f79535-47bb-0310-9956-ffa450edef68
2025-03-24 12:48:09 +00:00
ffeacdcc52 Fix typo in code comments; dependancies -> dependencies
Submitted by: John Bampton <jbampton gmail.com>
Github: closes #520


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924446 13f79535-47bb-0310-9956-ffa450edef68
2025-03-18 09:54:15 +00:00
f3448d02da *) mod_http2: Fix handling of 304 responses from mod_cache. PR 69580.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924267 13f79535-47bb-0310-9956-ffa450edef68
2025-03-10 10:09:43 +00:00
8d71cf3c9e fr doc rebuild.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924230 13f79535-47bb-0310-9956-ffa450edef68
2025-03-08 13:00:24 +00:00
6549092414 fr doc XML file update.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924229 13f79535-47bb-0310-9956-ffa450edef68
2025-03-08 12:59:25 +00:00
fecd8da88a assign log tag
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924197 13f79535-47bb-0310-9956-ffa450edef68
2025-03-06 08:35:52 +00:00
fcb18d8f0f steal a number
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924196 13f79535-47bb-0310-9956-ffa450edef68
2025-03-06 08:35:37 +00:00
b1a1473add fix module name in change entry
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924164 13f79535-47bb-0310-9956-ffa450edef68
2025-03-04 09:09:37 +00:00
e1fe1d8505 *) mod_md: update to version 2.0.30
- Fixed bug in handling over long response headers. When the 64 KB limit
       of nghttp2 was exceeded, the request was not reset and the client was
       left hanging, waiting for it. Now the stream is reset.
     - Added new directive `H2MaxHeaderBlockLen` to set the limit on response
       header sizes.
     - Fixed handling of Timeout vs. KeepAliveTimeout when first request on a
       connection was reset.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924145 13f79535-47bb-0310-9956-ffa450edef68
2025-03-03 12:32:31 +00:00
826f90e639 mod_lua: Fix memory handling in output filters.
* modules/lua/mod_lua.c (lua_output_filter_handle): Fix brigade
  iteration to use constant memory.

Submitted by: G.Grandes <guillermo.grandes gmail.com>
PR: 69590
Github: closes #517


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924095 13f79535-47bb-0310-9956-ffa450edef68
2025-02-28 08:24:10 +00:00
b0dce544dd fr doc rebuild.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923981 13f79535-47bb-0310-9956-ffa450edef68
2025-02-22 12:14:04 +00:00
fe821fd8c0 fr doc XML files update.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923980 13f79535-47bb-0310-9956-ffa450edef68
2025-02-22 12:13:00 +00:00
b9042002ca docs: Note that sendfile() is not used for SSL/TLS or with
some output filters regardless of the EnableSendfile setting.

PR: 69414


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923917 13f79535-47bb-0310-9956-ffa450edef68
2025-02-18 17:18:48 +00:00
1e298ddfca mod_dav: Fix error handling for dav_fs_dir_file_name():
dav_fs_dir_file_name() will not set *fname_p to NULL on failure,
and all callers of dav_fs_dir_file_name() does not check the
return value of dav_fs_dir_file_name(), which could lead to an
undefined behavior against fname_p.

Fix this by adding return value check of dav_fs_dir_file_name()

Submitted by: Zhou Qingyang <zhou1615 umn.edu>
Github: closes #309


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923813 13f79535-47bb-0310-9956-ffa450edef68
2025-02-14 16:08:23 +00:00
c36a521155 Add git commands for apr checkout to INSTALL
Submitted by: Vladimír Chlup <vchlup redhat.com>
Github: closes #437


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923812 13f79535-47bb-0310-9956-ffa450edef68
2025-02-14 16:03:33 +00:00
69c4c6b651 Fix variable declaration warning in scoreboard.c
Submitted by: Vladimír Chlup <vchlup redhat.com>
Github: closes #516


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923806 13f79535-47bb-0310-9956-ffa450edef68
2025-02-14 09:23:28 +00:00
e3d014c009 *) scoreboard/mod_http2: record durations of HTTP/2 requests.
PR 69579 [Pierre Brochard <pierre.brochard.1982@m4x.org>]



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923754 13f79535-47bb-0310-9956-ffa450edef68
2025-02-12 09:43:40 +00:00
3af0d142f1 * Allow to unset cookies via negative lifetime values
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923725 13f79535-47bb-0310-9956-ffa450edef68
2025-02-11 10:29:03 +00:00
eb450d3122 fr doc rebuild.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923670 13f79535-47bb-0310-9956-ffa450edef68
2025-02-08 16:25:08 +00:00
df5af2401b fr doc XML file update.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923669 13f79535-47bb-0310-9956-ffa450edef68
2025-02-08 16:22:30 +00:00