]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
5 years agoFollow up to r1879075: ap_getparents() to return the empty string above root.
Yann Ylavic [Wed, 24 Jun 2020 09:21:32 +0000 (09:21 +0000)] 
Follow up to r1879075: ap_getparents() to return the empty string above root.

Actually it was its previous behaviour before it was implemented using
ap_normalize_path() in r1879075.

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

5 years agoFollow up to r1879079, r1879080: change to DONE semantics for pre_trans hooks.
Yann Ylavic [Wed, 24 Jun 2020 07:47:58 +0000 (07:47 +0000)] 
Follow up to r1879079, r1879080: change to DONE semantics for pre_trans hooks.

Don't decode r->uri when pre_trans returns DONE instead of OK, which allows to
preserve previous behaviour where decoding was avoided for "ProxyRequests on"
or post_read_request RewriteRule [P] only, but not ProxyPass'ed requests.

This also preserves decoded location walk in most/same cases.

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

5 years ago* modules/generators/mod_cgid.c (get_req): Add basic sanity
Joe Orton [Wed, 24 Jun 2020 07:32:36 +0000 (07:32 +0000)] 
* modules/generators/mod_cgid.c (get_req): Add basic sanity
  checking for the structure received in the CGI daemon.

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

5 years ago* modules/generators/mod_cgid.c (cgid_handler): Bail immediately with
Joe Orton [Tue, 23 Jun 2020 16:39:25 +0000 (16:39 +0000)] 
* 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.

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

5 years agoFollow up to r1879079: merge slashes (if configured to) before pre_trans
Yann Ylavic [Tue, 23 Jun 2020 12:25:56 +0000 (12:25 +0000)] 
Follow up to r1879079: merge slashes (if configured to) before pre_trans

There are few cases (if any) where multiple slashes have different semantics
than a single one, and it's always been like that for proxy_trans anyway.

This allows for better directory/location/if walk caching and is less confusing
for their users.

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

5 years agoFollow up to r1879079: merge/walk locations for pre_trans hooks.
Yann Ylavic [Tue, 23 Jun 2020 11:58:53 +0000 (11:58 +0000)] 
Follow up to r1879079: merge/walk locations for pre_trans hooks.

So that their configurations work in directory context.

This requires potentially a third walk in ap_process_request_internal(),
though in most cases it should use ap_walk_location() cache.

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

5 years agoMark fdpassing test as failing.
Joe Orton [Tue, 23 Jun 2020 11:45:26 +0000 (11:45 +0000)] 
Mark fdpassing test as failing.

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

5 years agoap_location_walk/ap_directory_walk: copy the cached uri/filename.
Yann Ylavic [Tue, 23 Jun 2020 11:27:48 +0000 (11:27 +0000)] 
ap_location_walk/ap_directory_walk: copy the cached uri/filename.

Any in-place modification of r->uri of r->filename shouldn't affect the cache.

For instance, ap_process_request_internal() normalizes r->uri in place and yet
calls ap_location_walk() multiple times, which confuses caching.

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

5 years agoDisable mod_cgi to ensure mod_cgid is really being tested.
Joe Orton [Tue, 23 Jun 2020 11:14:19 +0000 (11:14 +0000)] 
Disable mod_cgi to ensure mod_cgid is really being tested.

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

5 years agoFollow up to r1879111: gcc suggests parentheses around ^ operator, oh well.
Yann Ylavic [Tue, 23 Jun 2020 10:32:43 +0000 (10:32 +0000)] 
Follow up to r1879111: gcc suggests parentheses around ^ operator, oh well.

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

5 years agoFollow up to r1879110: avoid signed comparison for use_original_uri.
Yann Ylavic [Tue, 23 Jun 2020 10:23:59 +0000 (10:23 +0000)] 
Follow up to r1879110: avoid signed comparison for use_original_uri.

And fix comment about default value.

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

5 years agoFollow up to r1879094: make use_original_uri signed for unsigned char archs.
Yann Ylavic [Tue, 23 Jun 2020 10:12:52 +0000 (10:12 +0000)] 
Follow up to r1879094: make use_original_uri signed for unsigned char archs.

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

5 years agoFix YAML syntax.
Joe Orton [Tue, 23 Jun 2020 10:08:53 +0000 (10:08 +0000)] 
Fix YAML syntax.

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

5 years agoTest mod_cgid w/fdpassing.
Joe Orton [Tue, 23 Jun 2020 09:45:07 +0000 (09:45 +0000)] 
Test mod_cgid w/fdpassing.

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

5 years agoAdd "v6only" Listen option to enable IPV6_V6ONLY in v4mapped builds
Joe Orton [Tue, 23 Jun 2020 08:45:07 +0000 (08:45 +0000)] 
Add "v6only" Listen option to enable IPV6_V6ONLY in v4mapped builds
where it is otherwise always disabled.

* include/ap_listen.h: Define AP_LISTEN_V6ONLY.

* server/listen.c (make_sock): Set v6only_setting to 1 if
  AP_LISTEN_V6ONLY flag is set for the listener.
  (parse_listen_flags): Parse "v6only" flag.

PR: 54878

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

5 years agoAdd workaround for IPv6 configuration on non-x86 hosts which
Joe Orton [Tue, 23 Jun 2020 07:24:03 +0000 (07:24 +0000)] 
Add workaround for IPv6 configuration on non-x86 hosts which
appears to fix the connection failures.  Almost certainly a bug
here, not at all sure where.

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

5 years agoFollow up to r1879076: axe stray copy/paste in pre_translate_name description.
Yann Ylavic [Mon, 22 Jun 2020 20:03:38 +0000 (20:03 +0000)] 
Follow up to r1879076: axe stray copy/paste in pre_translate_name description.

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

5 years agoFollow up to r1879080: rename ProxyMappingDecoded to ProxyUseOriginalURI.
Yann Ylavic [Mon, 22 Jun 2020 20:00:23 +0000 (20:00 +0000)] 
Follow up to r1879080: rename ProxyMappingDecoded to ProxyUseOriginalURI.

Same for proxy_dir_conf field.

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

5 years agoAllow for proxy servlet mapping at pre_translate_name stage.
Yann Ylavic [Mon, 22 Jun 2020 10:37:41 +0000 (10:37 +0000)] 
Allow for proxy servlet mapping at pre_translate_name stage.

Provide alias_match_servlet(), the servlet counterpart of alias_match(),
which maps the request URI-path to the ProxyPass alias ignoring path
parameters, while still forwarding them (above the alias).

This is needed to proxy servlet URIs for application handled by Tomcat,
which can then make use of the path/segments parameters.

Github: closes #128

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

5 years agoAllow for URI-path pre_translate_name before (and/or instead of) decoding.
Yann Ylavic [Mon, 22 Jun 2020 10:36:55 +0000 (10:36 +0000)] 
Allow for URI-path pre_translate_name before (and/or instead of) decoding.

Apply minimal normalization (AP_NORMALIZE_DECODE_UNRESERVED) first in
ap_process_request_internal() before running pre_translate_name hooks,
such that the hooks can work with undecoded r->uri.

Only if no hook takes "ownership" of the URI (returning OK), apply
percent decoding for the rest of request handling. Otherwise r->uri remains
encoded meaning that further location/directory/file/if/.. sections (walks)
should that into account.

Since normalization now happens before decoding, we might have to
re-normalize after decoding if "AllowEncodedSlahes on" transformed any
"%2F" sequence to "/", potentially creating new "/./" or "/../" sequences.

Note that for (lookup) subrequests, the path may be relative so we have
to allow for that.

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

5 years agoValidate request-target per RFC 7230 section 5.3.
Yann Ylavic [Mon, 22 Jun 2020 10:35:50 +0000 (10:35 +0000)] 
Validate request-target per RFC 7230 section 5.3.

RFC 7230 requires that the request-line URI be absolute, besides
"CONNECT authority-form" and "OPTIONS asterisk-form".

Enforce it in ap_parse_request_line().

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

5 years agoDeclare pre_translate hook in lua/info/log_debug/example modules, and docs.
Yann Ylavic [Mon, 22 Jun 2020 10:34:28 +0000 (10:34 +0000)] 
Declare pre_translate hook in lua/info/log_debug/example modules, and docs.

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

5 years agoAdd pre_translate_name hook running before URI-path decoding.
Yann Ylavic [Mon, 22 Jun 2020 10:32:15 +0000 (10:32 +0000)] 
Add pre_translate_name hook running before URI-path decoding.

This allows any module to work with un-decoded URI-path (besides
unreserved characters) in r->uri, and eventually to avoid decoding by
returning OK.

The first candidate is mod_proxy (following commit) when
ProxyMappingDecoded is disabled, such that the forwarded URI is
equivalent to the original one.

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

5 years agoImplement ap_getparent() using ap_normalize_path().
Yann Ylavic [Mon, 22 Jun 2020 10:30:20 +0000 (10:30 +0000)] 
Implement ap_getparent() using ap_normalize_path().

It is functionaly the same as AP_NORMALIZE_ALLOW_RELATIVE flag, while
ap_normalize_path() is more efficient (single pass).

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

5 years agoAdd ap_normalize_path() to replace ap_getparents() (with options).
Yann Ylavic [Mon, 22 Jun 2020 10:29:27 +0000 (10:29 +0000)] 
Add ap_normalize_path() to replace ap_getparents() (with options).

include/httpd.h: Declare ap_normalize_path() and flags.
    AP_NORMALIZE_ALLOW_RELATIVE:
        Don't require that the path be absolute as per RFC 7230.
        This is needed for lookup subrequests.
    AP_NORMALIZE_NOT_ABOVE_ROOT:
        Check that directory traversal ("..") don't go above root, or
        initial directory with relative paths.
    AP_NORMALIZE_DECODE_UNRESERVED:
        Decode unreserved characters (like '.') first since they have
        the same semantics encoded and decoded.
    AP_NORMALIZE_MERGE_SLASHES:
        Merge multiple slahes into a single one.
    AP_NORMALIZE_DROP_PARAMETERS:
        Ignore path parameters (";foo=bar"). Not used by httpd but since
        ap_normalize_path() is taken from mod_jk's jk_servlet_normalize()
        it can allow them to use the upstream version now.

server/util.c: Implement ap_normalize_path().

modules/dav/main/util.c: Replace call to ap_getparents() using
    ap_normalize_path() with AP_NORMALIZE_DECODE_UNRESERVED flag since
    the path comes from an obsolute URL (thus potentially %-encoded).

modules/generators/mod_autoindex.c: Replace call to ap_getparents() using
    ap_normalize_path() with AP_NORMALIZE_ALLOW_RELATIVE and
    AP_NORMALIZE_NOT_ABOVE_ROOT flags to be consistent with original code.

include/ap_mmn.h: MINOR bump for ap_normalize_path().

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

5 years agoBackported to 2.4.x
Jim Jagielski [Sat, 20 Jun 2020 14:25:02 +0000 (14:25 +0000)] 
Backported to 2.4.x

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

5 years agoAxe an empty line in a dox comment in order to synch with 2.4.x
Christophe Jaillet [Fri, 19 Jun 2020 20:10:22 +0000 (20:10 +0000)] 
Axe an empty line in a dox comment  in order to synch with 2.4.x

[skip ci]

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

5 years agoAdd a space to be consistent with surrounding code and to synch with 2.4.x
Christophe Jaillet [Fri, 19 Jun 2020 19:39:47 +0000 (19:39 +0000)] 
Add a space to be consistent with surrounding code and to synch with 2.4.x

[skip ci]

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

5 years agoOups, axe spurious copypasta.
Yann Ylavic [Fri, 19 Jun 2020 17:55:32 +0000 (17:55 +0000)] 
Oups, axe spurious copypasta.

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

5 years agoCHANGES entry for ap_proxy_define_match_worker().
Yann Ylavic [Fri, 19 Jun 2020 17:53:58 +0000 (17:53 +0000)] 
CHANGES entry for ap_proxy_define_match_worker().

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

5 years agoap_proxy_define_match_worker: disable connection reuse by default.
Yann Ylavic [Fri, 19 Jun 2020 17:30:24 +0000 (17:30 +0000)] 
ap_proxy_define_match_worker: disable connection reuse by default.

To avoid compat issues with dns/connection reuse now that a worker with
dollar substitution can be elected.

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

5 years agoap_proxy_define_match_worker: don't copy the url unnecessarily.
Yann Ylavic [Fri, 19 Jun 2020 15:39:33 +0000 (15:39 +0000)] 
ap_proxy_define_match_worker: don't copy the url unnecessarily.

And save a few cycles, when the duplication is needed, by not copying
the ignored part.

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

5 years agoFor diagnosing weird non-x86 failures, dump /etc/hosts in future runs. [skip ci]
Joe Orton [Fri, 19 Jun 2020 15:33:19 +0000 (15:33 +0000)] 
For diagnosing weird non-x86 failures, dump /etc/hosts in future runs. [skip ci]

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

5 years agomod_proxy_http: always stream the request body by default.
Yann Ylavic [Fri, 19 Jun 2020 14:52:08 +0000 (14:52 +0000)] 
mod_proxy_http: always stream the request body by default.

Simplify streaming by using Content-Length if the length is available, or
chunked Transfer-Encoding otherwise.

Spooling to memory/file will only be used for HTTP/1.0 requests or if
proxy-sendcl is set.

This removes the handling of proxy-sendchunked and proxy-sendchunks.

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

5 years ago* Revert r1878939, r1878938, r1878936, the changes to
Ruediger Pluem [Fri, 19 Jun 2020 11:45:16 +0000 (11:45 +0000)] 
* Revert r1878939, r1878938, r1878936, the changes to
  modules/http2/h2_request.c and CHANGES of r1878926 and r1878708 as a result of
  https://lists.apache.org/thread.html/red499ac4750b88e5943c25abb86434c59dfff4d4f386ffc53742755d%40%3Cdev.httpd.apache.org%3E
  and
  https://lists.apache.org/thread.html/ra79eee019e2357703b0ea81153458a29817b58ce92e3605949eee1fe%40%3Cdev.httpd.apache.org%3E

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

5 years ago* Reset the request_rec fields protocol, proto_num and the_request also
Ruediger Pluem [Wed, 17 Jun 2020 18:48:22 +0000 (18:48 +0000)] 
* Reset the request_rec fields protocol, proto_num and the_request also
  in the error case and restructure code a little bit to avoid code
  duplication.

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

5 years ago* Reset the_request as well to reflect HTTP/2.0 [skip ci]
Ruediger Pluem [Wed, 17 Jun 2020 18:37:52 +0000 (18:37 +0000)] 
* Reset the_request as well to reflect HTTP/2.0 [skip ci]

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

5 years ago* Add comments to document why we do this.
Ruediger Pluem [Wed, 17 Jun 2020 18:33:20 +0000 (18:33 +0000)] 
* Add comments to document why we do this.
  No functional change. [skip ci].

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

5 years ago *) mod_http2: workaround to facilitate use of common internal protocol/method/uri
Stefan Eissing [Wed, 17 Jun 2020 15:10:29 +0000 (15:10 +0000)] 
  *) mod_http2: workaround to facilitate use of common internal protocol/method/uri
     checks. The module now handles master/secondary connections and has marked
     methods according to use.

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

5 years agomod_ldap: Use the LDAP API directly to implement the rebind callback
Joe Orton [Tue, 16 Jun 2020 14:31:26 +0000 (14:31 +0000)] 
mod_ldap: Use the LDAP API directly to implement the rebind callback
for modern versions of OpenLDAP, avoiding the overhead of the apr-util
implementation.

* modules/ldap/util_ldap.c:
  Define USE_APR_LDAP_REBIND if a modern version of OpenSSL is used.
  (uldap_rebind_proc): New function.
  (uldap_rebind_init, uldap_rebind_add): Define, using either the
  callback or the (bad) APR-util versions.
  (uldap_connection_unbind): Clear the rebind pool to remove rebind
  references prior to destroying the LDAP *.
  Omit for !USE_APR_LDAP_REBIND.
  (uldap_connection_init): Use new wrappers, only create the rebind
  pool if USE_APR_LDAP_REBIND.

* include/util_ldap.h: Don't include apr_ldap_rebind.h here.

PR: 64414
Github: closes #124

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

5 years agoUpdate Travis LDAP testing to use new container setup script
Joe Orton [Tue, 16 Jun 2020 14:07:53 +0000 (14:07 +0000)] 
Update Travis LDAP testing to use new container setup script
provided by test framework.

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

5 years agoxforms
Christophe Jaillet [Sun, 14 Jun 2020 09:13:52 +0000 (09:13 +0000)] 
xforms

[skip ci]

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

5 years agoFix typo in r1878824
Christophe Jaillet [Sun, 14 Jun 2020 09:04:04 +0000 (09:04 +0000)] 
Fix typo in r1878824

[skip ci]

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

5 years agoAdd some html syntax highlight to a piece of code.
Christophe Jaillet [Sun, 14 Jun 2020 09:00:03 +0000 (09:00 +0000)] 
Add some html syntax highlight to a piece of code.
+ some missing links

[skip ci]

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 13 Jun 2020 15:25:02 +0000 (15:25 +0000)] 
fr doc rebuild.

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

5 years agofr dox XML files updates.
Lucien Gentis [Sat, 13 Jun 2020 15:24:00 +0000 (15:24 +0000)] 
fr dox XML files updates.

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

5 years agoUpdate "en" generated doc files to UTF-8
Christophe Jaillet [Sat, 13 Jun 2020 07:18:35 +0000 (07:18 +0000)] 
Update "en" generated doc files to UTF-8

There seems to be an issue with mod_socache_redis.*
The files were marked as deleted in my tree, and are not seen as modified after running ./build.sh

[skip ci]

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

5 years agoTry to fix once and for all, our "en" html file generation issues with different...
Christophe Jaillet [Sat, 13 Jun 2020 06:33:47 +0000 (06:33 +0000)] 
Try to fix once and for all, our "en" html file generation issues with different Java version.

Switch "en" doc files to UTF-8.

We should also change "en.xml" with:
   <target-ext>.html.en.utf8</target-ext>
and run:
   ./build.sh bootstrap
   ./build.sh
to be consistent with other languages.

Before making a lot of noise, first give some time to see how this works in RL.

[skip ci]

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

5 years agoFix a typo
Christophe Jaillet [Sat, 13 Jun 2020 04:17:40 +0000 (04:17 +0000)] 
Fix a typo

Spotted and fixed by David Poole <sarkie gmail.com>

[skip ci]

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

5 years agoupdate transformation
André Malo [Wed, 10 Jun 2020 21:22:59 +0000 (21:22 +0000)] 
update transformation

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

5 years ago* Have the HTTP 0.9 / 1.1 processing code reject requests for
Ruediger Pluem [Wed, 10 Jun 2020 11:24:13 +0000 (11:24 +0000)] 
* Have the HTTP 0.9 / 1.1 processing code reject requests for
  HTTP >= 2.0 with a HTTP Version Not Support status code.

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

5 years ago* support/htpasswd.c (usage): Fix typo. [skip ci]
Joe Orton [Wed, 10 Jun 2020 08:07:08 +0000 (08:07 +0000)] 
* support/htpasswd.c (usage): Fix typo. [skip ci]

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

5 years agoAdd Travis job which runs slapd in a container to allow testing
Joe Orton [Tue, 9 Jun 2020 14:50:53 +0000 (14:50 +0000)] 
Add Travis job which runs slapd in a container to allow testing
mod_authnz_ldap, per new test case added in r1878655.

* test/travis_Dockerfile_slapd: New dockerfile for running slapd.

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

5 years agoDisable all Travis notifications for forks (hopefully). [skip ci]
Joe Orton [Tue, 9 Jun 2020 12:08:36 +0000 (12:08 +0000)] 
Disable all Travis notifications for forks (hopefully). [skip ci]

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

5 years ago* Makefile.in: Add TEST_CONFIG variable to specify flags for
Joe Orton [Tue, 9 Jun 2020 10:11:33 +0000 (10:11 +0000)] 
* Makefile.in: Add TEST_CONFIG variable to specify flags for
  all ./t/TEST invocations.

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

5 years agoTail more error_log for failed test suite runs in Travis. [skip ci]
Joe Orton [Tue, 9 Jun 2020 09:57:09 +0000 (09:57 +0000)] 
Tail more error_log for failed test suite runs in Travis. [skip ci]

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

5 years agoRebuild trunk docs
Christophe Jaillet [Mon, 8 Jun 2020 19:55:54 +0000 (19:55 +0000)] 
Rebuild trunk docs

[skip ci]

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

5 years agoFix an invalid link
Christophe Jaillet [Mon, 8 Jun 2020 19:32:21 +0000 (19:32 +0000)] 
Fix an invalid link
PR 64466

Thx to  Dr. Prőhle Péter  for spotting and reporting it.
[skip ci]

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

5 years agoremove the term blacklist
Rich Bowen [Mon, 8 Jun 2020 12:25:31 +0000 (12:25 +0000)] 
remove the term blacklist

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

5 years agoPR#64443: watch whether mod_proxy_html i18n might risk messing up FORM
Nick Kew [Sat, 6 Jun 2020 22:54:32 +0000 (22:54 +0000)] 
PR#64443: watch whether mod_proxy_html i18n might risk messing up FORM
submission, and insert accept-charset attribute if necessary.

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

5 years agoRemove the term blacklist from our documentation
Rich Bowen [Sat, 6 Jun 2020 18:52:19 +0000 (18:52 +0000)] 
Remove the term blacklist from our documentation

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

5 years agorebuild docs
Rich Bowen [Sat, 6 Jun 2020 18:15:51 +0000 (18:15 +0000)] 
rebuild docs

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

5 years agoRemove 'blacklist' from our docs, as per
Rich Bowen [Sat, 6 Jun 2020 18:15:02 +0000 (18:15 +0000)] 
Remove 'blacklist' from our docs, as per
https://lethargy.org/~jesus/writes/a-guide-to-nomenclature-selection/
and other excellent resources.

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

5 years agoBuild with LDAP support for APR 1.x.
Joe Orton [Fri, 5 Jun 2020 12:00:36 +0000 (12:00 +0000)] 
Build with LDAP support for APR 1.x.
Dump end of error_log for test run failures.

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

5 years agomake sure the $n of the regular expressions is not included the name of the worker.
Jean-Frederic Clere [Thu, 4 Jun 2020 08:40:10 +0000 (08:40 +0000)] 
make sure the $n of the regular expressions is not included the name of the worker.
for example,  the example:
ProxyPassMatch "^(/.*\.gif)$" "http://backend.example.com:8000$1"
was giving:
AH00526: Syntax error on line nnn of bla/conf/httpd.conf:
ProxyPass Unable to parse URL: http://backend.example.com:8000$1

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

5 years agoAdd error checks in md_json_readb
Giovanni Bechis [Thu, 4 Jun 2020 07:04:09 +0000 (07:04 +0000)] 
Add error checks in md_json_readb

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

5 years ago *) mod_proxy_http2: the "ping" proxy parameter
Stefan Eissing [Wed, 3 Jun 2020 12:01:50 +0000 (12:01 +0000)] 
  *) mod_proxy_http2: the "ping" proxy parameter
     (see <https://httpd.apache.org/docs/2.4/mod/mod_proxy.html>) is now used
     when checking the liveliness of a new or reused h2 connection to the backend.
     With short durations, this makes load-balancing more responsive. The module
     will hold back requests until ping conditions are met, using features of the
     HTTP/2 protocol alone. [Ruediger Pluem, Stefan Eissing]

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

5 years agomod_proxy_http: put request/response splitting checks under the same comment.
Yann Ylavic [Mon, 1 Jun 2020 15:40:03 +0000 (15:40 +0000)] 
mod_proxy_http: put request/response splitting checks under the same comment.

If stream_reqbody() detects a Content-Length vs bytes streamed mismatch it
means that a module's filter played bad games, such inconsistency on the client
connection would have been caught by ap_http_filter().

So move AH01087 logic to AH01086, under the same comment and log message, and
always return HTTP_INTERNAL_SERVER because the client is not the culprit here.

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

5 years agoutil_filter: both directions for setaside/reinstate/adapt logging.
Yann Ylavic [Sun, 31 May 2020 17:04:13 +0000 (17:04 +0000)] 
util_filter: both directions for setaside/reinstate/adapt logging.

ap_filter_{setaside,reinstate,adopt}() can be called by both input and output
filters, so adapt confusing (always out) logging.

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

5 years ago.gitignore: ignore duplicated extensions globally.
Yann Ylavic [Sun, 31 May 2020 13:09:11 +0000 (13:09 +0000)] 
.gitignore: ignore duplicated extensions globally.

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

5 years agomod_proxy_http: don't strip EOS when spooling request body to file.
Yann Ylavic [Fri, 29 May 2020 17:05:29 +0000 (17:05 +0000)] 
mod_proxy_http: don't strip EOS when spooling request body to file.

To prevent stream_reqbody() from sending the FILE and EOS bucket in separate
brigades, and thus apr_file_setaside() to trigger if network congestion occurs
with the backend, restore the EOS in spool_reqbody_cl() which was stripped
when spooling the request body to a file.

Until APR r1878279 is released (and installed by users), apr_file_setaside()
on a temporary file (mktemp) will simply drop the file cleanup, leaking the
fd and inode..

This fixes BZ 64452.

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

5 years agorevert r1878268
Stefan Eissing [Fri, 29 May 2020 12:41:34 +0000 (12:41 +0000)] 
revert r1878268

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

5 years agoupdate after backport
Stefan Eissing [Fri, 29 May 2020 10:25:14 +0000 (10:25 +0000)] 
update after backport

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

5 years ago.gdbinit: fix dump_table indentation [skip ci]
Yann Ylavic [Fri, 29 May 2020 09:07:18 +0000 (09:07 +0000)] 
.gdbinit: fix dump_table indentation [skip ci]

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

5 years agoUse the ping timeout if set and waiting for a ping
Ruediger Pluem [Fri, 29 May 2020 09:05:52 +0000 (09:05 +0000)] 
Use the ping timeout if set and waiting for a ping

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

5 years ago.gdbinit: tabs to spaces [skip ci]
Yann Ylavic [Fri, 29 May 2020 08:56:55 +0000 (08:56 +0000)] 
.gdbinit: tabs to spaces [skip ci]

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

5 years ago.gdbinit: better dump_pool_and_children indentation [skip ci]
Yann Ylavic [Fri, 29 May 2020 08:33:20 +0000 (08:33 +0000)] 
.gdbinit: better dump_pool_and_children indentation [skip ci]

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

5 years ago.gdbinit: no child_cleanup_fn for pre_cleanups [skip ci]
Yann Ylavic [Thu, 28 May 2020 20:41:20 +0000 (20:41 +0000)] 
.gdbinit: no child_cleanup_fn for pre_cleanups [skip ci]

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

5 years ago.gdbinit: fix copy/paste dup [skip ci]
Yann Ylavic [Thu, 28 May 2020 20:31:09 +0000 (20:31 +0000)] 
.gdbinit: fix copy/paste dup [skip ci]

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

5 years ago.gdbinit: dump pool (pre_)cleanups [skip ci]
Yann Ylavic [Thu, 28 May 2020 19:54:02 +0000 (19:54 +0000)] 
.gdbinit: dump pool (pre_)cleanups [skip ci]

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

5 years ago *) mod_proxy_http2: respect ProxyTimeout settings on backend connections
Stefan Eissing [Thu, 28 May 2020 15:23:46 +0000 (15:23 +0000)] 
  *) mod_proxy_http2: respect ProxyTimeout settings on backend connections
     while waiting on incoming data. [Ruediger Pluem, Stefan Eissing]

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

5 years ago.gdbinit: align columns [skip ci]
Yann Ylavic [Tue, 26 May 2020 22:44:01 +0000 (22:44 +0000)] 
.gdbinit: align columns [skip ci]

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

5 years agoFix a NULL pointer dereference
Ruediger Pluem [Mon, 25 May 2020 05:50:12 +0000 (05:50 +0000)] 
Fix a NULL pointer dereference

* server/scoreboard.c (ap_increment_counts): In certain cases like certain
  invalid requests r->method might be NULL here. r->method_number defaults
  to M_GET and hence is M_GET in these cases.

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

5 years agoAxe an empty line to synch with 2.4.x
Christophe Jaillet [Sat, 23 May 2020 14:10:46 +0000 (14:10 +0000)] 
Axe an empty line to synch with 2.4.x

[skip ci]

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

5 years agoFix some typo in trunk that have already been fixed in 2.4.x when r1816156 has been...
Christophe Jaillet [Sat, 23 May 2020 13:29:14 +0000 (13:29 +0000)] 
Fix some typo in trunk that have already been fixed in 2.4.x when r1816156 has been backported in 1821093

[skip ci]

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

5 years agoAxe 'flushall' from 'mod_proxy_http2.c'.
Christophe Jaillet [Sat, 23 May 2020 11:54:10 +0000 (11:54 +0000)] 
Axe 'flushall' from 'mod_proxy_http2.c'.
It is only set and never used.

This makes trunk and 2.4.x more in line.

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

5 years agoMove stray /i switch into proper location
Christophe Jaillet [Sat, 23 May 2020 11:13:48 +0000 (11:13 +0000)] 
Move stray /i switch into proper location

This has only been  applied to 2.4.x in r1537823 and never reached trunk

[skip ci]

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

5 years agoAxe an empty line to synch with 2.4.x.
Christophe Jaillet [Sat, 23 May 2020 09:33:58 +0000 (09:33 +0000)] 
Axe an empty line to synch with 2.4.x.
This was a left over from r1855705 when it has been merged.

[skip ci]

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

5 years ago"" is appropriate default DEFAULT_REL_STATEDIR
Steffen Land [Wed, 20 May 2020 18:27:04 +0000 (18:27 +0000)] 
"" is appropriate default DEFAULT_REL_STATEDIR

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

5 years agocore, protocol: reject invalid Content-Length ASAP.
Yann Ylavic [Wed, 20 May 2020 14:13:09 +0000 (14:13 +0000)] 
core, protocol: reject invalid Content-Length ASAP.

Don't let invalid invalid Content-Length header go beyond ap_read_request()
and protocol validation. The check in ap_http_filter() is still useful if
some modules mangles the header, but it's too late for the usual case.

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

5 years agocore,modules: provide/use ap_parse_strict_length() helper.
Yann Ylavic [Wed, 20 May 2020 14:01:17 +0000 (14:01 +0000)] 
core,modules: provide/use ap_parse_strict_length() helper.

It helps simplifying a lot of duplicated code based on apr_strtoff(), while
also rejecting leading plus/minus signs which are dissalowed in Content-Length
and (Content-)Range headers.

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

5 years agolognos
Eric Covener [Sat, 16 May 2020 18:30:15 +0000 (18:30 +0000)] 
lognos

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

5 years agoPR 64365: proxy_fcgi doesn't check expression before unsetting var
Eric Covener [Sat, 16 May 2020 18:28:50 +0000 (18:28 +0000)] 
PR 64365: proxy_fcgi doesn't check expression before unsetting var

Submitted By: Michael König <mail ikoenig.net>
Committed By: covener

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 16 May 2020 15:40:51 +0000 (15:40 +0000)] 
fr doc rebuild.

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

5 years agofr doc XML file update.
Lucien Gentis [Sat, 16 May 2020 15:39:33 +0000 (15:39 +0000)] 
fr doc XML file update.

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

5 years agomod_ssl: follow up to r1877397: fix SSL_OP_NO_RENEGOT*I*ATION typo.
Yann Ylavic [Fri, 15 May 2020 21:14:36 +0000 (21:14 +0000)] 
mod_ssl: follow up to r1877397: fix SSL_OP_NO_RENEGOT*I*ATION typo.

Should work better now :)

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

5 years agoFollow up to r1877785: ap_filter_should_yield() is not NULL safe :p
Yann Ylavic [Fri, 15 May 2020 13:22:56 +0000 (13:22 +0000)] 
Follow up to r1877785: ap_filter_should_yield() is not NULL safe :p

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

5 years agoap_filter_output_pending(): test where each filter should yield after running.
Yann Ylavic [Fri, 15 May 2020 12:27:13 +0000 (12:27 +0000)] 
ap_filter_output_pending(): test where each filter should yield after running.

Since running a filter may pass data next to it, ap_filter_output_pending()
should test for ap_filter_should_yield(f->next) after each f call, otherwise
it won't take into account new pending data in filters it just walked.

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

5 years ago *) mod_http2: Fixed regression that caused connections to close when mod_reqtimeout
Stefan Eissing [Fri, 15 May 2020 11:59:32 +0000 (11:59 +0000)] 
  *) mod_http2: Fixed regression that caused connections to close when mod_reqtimeout
     was configured with a handshake timeout. Fixes gitub issue #196.

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

5 years agoInclude Angle-bracket form to Quoted form
Steffen Land [Thu, 14 May 2020 12:09:11 +0000 (12:09 +0000)] 
Include Angle-bracket form to  Quoted form

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