]> granicus.if.org Git - apache/log
apache
6 years ago* server/util_expr_eval.c (ap_expr_eval_re_backref): Fix gcc 7.x warning.
Joe Orton [Mon, 16 Oct 2017 16:40:52 +0000 (16:40 +0000)]
* server/util_expr_eval.c (ap_expr_eval_re_backref): Fix gcc 7.x warning.

util_expr_eval.c: In function ‘ap_expr_eval_re_backref’:
util_expr_eval.c:265:63: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
     if (!ctx->re_pmatch || !ctx->re_source || *ctx->re_source == '\0' ||

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

6 years agoFollow up to r1812263.
Yann Ylavic [Mon, 16 Oct 2017 16:12:26 +0000 (16:12 +0000)]
Follow up to r1812263.

As suggested by Joe, add --maintainer/debugger-mode's CFLAGS in
NOTEST_CFLAGS to avoid interractions with autoconf's AC_LANG_PROGRAM.

APACHE_ADD_GCC_CFLAG now also forces -Wno-strict-prototypes for -Werror
to work despite AC_LANG_PROGRAM generating this warning by itself.

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

6 years agoFix maintainer mode with GCC/Clang.
Rainer Jung [Mon, 16 Oct 2017 09:22:38 +0000 (09:22 +0000)]
Fix maintainer mode with GCC/Clang.

Setting -Wstrict-prototypes in combination
with -Werror leads to compiler errors during
configure checks (autoconf generates incomplete
prototypes).

Adding -Wno-error=strict-prototypes lets the
compiler tolerate those.

Possible future enhancement: remember such
"configure time only" flags and remove them
from CFLAGS before generating our build time
files (Makefile, config_vars.mk etc.), so that
the full -Werror is in place during building.

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

6 years agoGCC/Clang strict-prototypes handling in configure:
Rainer Jung [Mon, 16 Oct 2017 09:15:27 +0000 (09:15 +0000)]
GCC/Clang strict-prototypes handling in configure:
revert r1810998 and r1810448 before applying a
more general solution.

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

6 years agoFollow up to r1812193: really change MMN major.
Yann Ylavic [Sat, 14 Oct 2017 17:27:21 +0000 (17:27 +0000)]
Follow up to r1812193: really change MMN major.

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

6 years agoFollow up to r1740928: including NOT_IN_PROXY in NOT_IN_DIR_LOC_FILE is both
Yann Ylavic [Sat, 14 Oct 2017 16:27:14 +0000 (16:27 +0000)]
Follow up to r1740928: including NOT_IN_PROXY in NOT_IN_DIR_LOC_FILE is both
incomplete and not backportable, fix it by introducing NOT_IN_DIR_CONTEXT and
restoring NOT_IN_DIR_LOC_FILE to its previous value.

Per ap_check_cmd_context(), NOT_IN_DIR_LOC_FILE actually/really means "not in
any directory context", while the definition itself does not include all the
existing directory contexts (e.g. <Limit>, or <Proxy> before r1740928).

This is a bit of a misnomer, at least, so instead of (ab)using it by adding the
missing contexts (in an incompatible way), let's define NOT_IN_DIR_CONTEXT to
really exclude all directory context (i.e. NOT_IN_DIR_LOC_FILE + NOT_IN_LIMIT +
NOT_IN_PROXY) and use it wherever NOT_IN_DIR_LOC_FILE was used.

This is by itself a major MMN bump (modules not compiled with this commit and
having directives checked against NOT_IN_DIR_LOC_FILE won't be caught the same
way by NOT_IN_DIR_CONTEXT in the new ap_check_cmd_context() code), but with the
below change, 2.4.x should work as before:

-   if ((forbidden & NOT_IN_DIR_CONTEXT) == NOT_IN_DIR_CONTEXT) {
+   if ((forbidden & NOT_IN_DIR_LOC_FILE) == NOT_IN_DIR_LOC_FILE) {
        if (cmd->path != NULL) {
            return apr_pstrcat(cmd->pool, cmd->cmd->name, gt,
-                           " cannot occur within directory context", NULL);
+                           " cannot occur within <Directory/Location/Files/Proxy> "
+                           "section", NULL);
        }
        ...
    }

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

6 years agoFollow up to r1809881: CHANGES entry.
Yann Ylavic [Fri, 13 Oct 2017 07:47:08 +0000 (07:47 +0000)]
Follow up to r1809881: CHANGES entry.

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

6 years agoEntry for 2.4.28 regression (r1808855 missing r1805195).
Yann Ylavic [Thu, 12 Oct 2017 19:43:57 +0000 (19:43 +0000)]
Entry for 2.4.28 regression (r1808855 missing r1805195).

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

6 years agoAdd optional _RAW suffix to SSL_*_DN_xx attribute names, allowing
Joe Orton [Thu, 12 Oct 2017 15:11:50 +0000 (15:11 +0000)]
Add optional _RAW suffix to SSL_*_DN_xx attribute names, allowing
users to convert an attribute value without conversion to UTF-8.  (A
public CA has issued certs with attributes tagged as the wrong ASN.1
string types.)

* modules/ssl/ssl_util_ssl.c (asn1_string_convert): Rename from
  asn1_string_to_utf8; add raw argument. Reimplement _to_utf8 as
  macro.
  (modssl_X509_NAME_ENTRY_to_string): Add raw argument.

* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_dn): Use raw
  string conversion if _RAW suffix is present in DN component.

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

6 years ago* server/util_script.c (ap_add_common_vars): Allow mod_env to override
Joe Orton [Wed, 11 Oct 2017 14:48:55 +0000 (14:48 +0000)]
* server/util_script.c (ap_add_common_vars): Allow mod_env to override
  all system path environment variables, not just PATH.  (The
  behaviour for PATH alone was changed in r965679 for PR 43906.)

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

6 years agoDocumentation rebuild
Luca Toscano [Wed, 11 Oct 2017 11:49:17 +0000 (11:49 +0000)]
Documentation rebuild

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

6 years agoOn the trunk:
Stefan Eissing [Wed, 11 Oct 2017 11:35:19 +0000 (11:35 +0000)]
On the trunk:

mod_md: v1.0.0, new config directive 'MDNotifyCmd' to hook in a program when Managed
     Domains have obtained/renewed their certificates successfully.

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

6 years agocore, mod_rewrite: introduce the 'redirect-keeps-vary' note
Luca Toscano [Tue, 10 Oct 2017 17:41:37 +0000 (17:41 +0000)]
core, mod_rewrite: introduce the 'redirect-keeps-vary' note
                   to allow proper Vary header insertion when
                   dealing with a RewriteRule in a directory
                   context.

This change is an attempt to fix a long standing problem,
brought up while working on PR 58231. Our documentation clearly
states the following:

"If a HTTP header is used in a condition this header is added
to the Vary header of the response in case the condition
evaluates to true for the request."

This is currently not true for RewriteCond/Rules working in
a directory context, since when an internal redirect happens
all the outstanding response headers get dropped.

There might be a better solution so I am looking forward to
hear more opinions and comments. My goal for a delicate change
like this one would be to affect the least amount of configurations
possible, without triggering unwanted side effects.

If the solution is good for everybody tests will be written
in the suite asap.

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

6 years agoRebuild.
Lucien Gentis [Tue, 10 Oct 2017 11:15:25 +0000 (11:15 +0000)]
Rebuild.

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

6 years agoXML updates.
Lucien Gentis [Tue, 10 Oct 2017 11:14:30 +0000 (11:14 +0000)]
XML updates.

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

6 years agoab: Make the TLS layer aware that the underlying socket is nonblocking,
Yann Ylavic [Tue, 10 Oct 2017 10:54:48 +0000 (10:54 +0000)]
ab: Make the TLS layer aware that the underlying socket is nonblocking,
and use/handle POLLOUT where needed to avoid busy IOs and recover write
errors when appropriate.

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

6 years agoab: Keep reading nonblocking to exhaust TCP or SSL buffers when previous
Yann Ylavic [Tue, 10 Oct 2017 09:09:22 +0000 (09:09 +0000)]
ab: Keep reading nonblocking to exhaust TCP or SSL buffers when previous
read was incomplete (the SSL case can cause the next poll() to timeout
since data are buffered already).  PR 61301

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

6 years ago* Make it compatible with Python 3
Ruediger Pluem [Mon, 9 Oct 2017 13:50:15 +0000 (13:50 +0000)]
* Make it compatible with Python 3

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

6 years ago* The calculation of the sizes was flawed:
Ruediger Pluem [Mon, 9 Oct 2017 13:30:26 +0000 (13:30 +0000)]
* The calculation of the sizes was flawed:
  The index tells us the size of the node in 4096 byte pages minus 1.
  Hence we need to multiply back with 4096 aka << 12 (plus adding the
  missing page).

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

6 years ago* Convert to int before using
Ruediger Pluem [Mon, 9 Oct 2017 08:58:57 +0000 (08:58 +0000)]
* Convert to int before using

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

6 years ago* It needs to be the dereferenced node
Ruediger Pluem [Mon, 9 Oct 2017 08:58:03 +0000 (08:58 +0000)]
* It needs to be the dereferenced node

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

7 years agomod_ssl: fix add_policy() w.r.t. OPENSSL_NO_COMP. PR 61592.
Yann Ylavic [Sun, 8 Oct 2017 11:40:03 +0000 (11:40 +0000)]
mod_ssl: fix add_policy() w.r.t. OPENSSL_NO_COMP.  PR 61592.

Proposed by: Bernard Spil <brnrd freebsd.org>
Reviewed by: ylavic

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

7 years ago* Take the pointer from Yann: s/childs/children/
Ruediger Pluem [Fri, 6 Oct 2017 06:25:27 +0000 (06:25 +0000)]
* Take the pointer from Yann: s/childs/children/

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

7 years ago* Add dump_all_pools and dump_pool_and_childs.
Ruediger Pluem [Thu, 5 Oct 2017 12:01:25 +0000 (12:01 +0000)]
* Add dump_all_pools and dump_pool_and_childs.

  - dump_all_pools: Dump the whole pool hierarchy starting from apr_global_pool.
                    Requires an arbitrary pool as starting parameter.
  - dump_pool_and_childs: Dump the whole pool hierarchy starting from
                          the given pool.

  dump_pool_and_childs is written in Python using the GDB Python API
  as doing recursive stuff in standard GDB macros is very difficult.

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

7 years agofix properties
André Malo [Thu, 5 Oct 2017 07:05:41 +0000 (07:05 +0000)]
fix properties

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

7 years agomake docs.
Yann Ylavic [Wed, 4 Oct 2017 17:25:11 +0000 (17:25 +0000)]
make docs.

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

7 years agoFollow up to r1810358: add html files.
Yann Ylavic [Wed, 4 Oct 2017 17:16:48 +0000 (17:16 +0000)]
Follow up to r1810358: add html files.

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

7 years agoFollow up to r1810605.
Yann Ylavic [Wed, 4 Oct 2017 17:08:13 +0000 (17:08 +0000)]
Follow up to r1810605.

Update docs' BNF, provide a short description of the new %{::} syntax and
a few examples. To be continued..

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

7 years agoFollow up to rr1810605 and r1811104.
Yann Ylavic [Wed, 4 Oct 2017 16:20:02 +0000 (16:20 +0000)]
Follow up to rr1810605 and r1811104.

Generated parser files.

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

7 years agoap_expr: follow up to r1810605.
Yann Ylavic [Wed, 4 Oct 2017 16:18:46 +0000 (16:18 +0000)]
ap_expr: follow up to r1810605.

The "split" and "join" operators are now a prefix, ala perl.
Add the "sub" operator for string substitutions, prefix still.

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

7 years agoOn the trunk:
Stefan Eissing [Wed, 4 Oct 2017 14:55:26 +0000 (14:55 +0000)]
On the trunk:

mod_md: v0.9.9, fix for applying challenge type based on available ports.

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

7 years agoap_expr: follow up to r1810605.
Yann Ylavic [Tue, 3 Oct 2017 13:45:34 +0000 (13:45 +0000)]
ap_expr: follow up to r1810605.

Better token/type descriptors for better parsing error messages.

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

7 years agoAxe backported entries.
Yann Ylavic [Tue, 3 Oct 2017 13:26:52 +0000 (13:26 +0000)]
Axe backported entries.

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

7 years agoAlso affects official clang 5 (maybe older ones too...)
Jim Jagielski [Tue, 3 Oct 2017 12:53:04 +0000 (12:53 +0000)]
Also affects official clang 5 (maybe older ones too...)

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

7 years agohttpdunit: include .h to avoid code duplication.
Yann Ylavic [Tue, 3 Oct 2017 09:33:17 +0000 (09:33 +0000)]
httpdunit: include .h to avoid code duplication.

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

7 years agoFollow up to r1804123 r1809633.
Yann Ylavic [Tue, 3 Oct 2017 09:26:47 +0000 (09:26 +0000)]
Follow up to r1804123 r1809633.

Silence "-Wunknown-pragmas" on GCC...

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

7 years agoapr_expr: follow up to r1810605.
Yann Ylavic [Tue, 3 Oct 2017 09:23:32 +0000 (09:23 +0000)]
apr_expr: follow up to r1810605.

Not necessarily ASCII here..

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

7 years agoap_expr: open string expressions to the <word>.
Yann Ylavic [Mon, 2 Oct 2017 21:57:26 +0000 (21:57 +0000)]
ap_expr: open string expressions to the <word>.

Introduces the syntax "%{:<word>:}", borrowed from the <var>'s one, and which
likewise can be embedded anywhere in a string expression (the same reserved
character ':' gets reused in an unambiguous manner).

This allows the two types of expressions (boolean and string) to now share
fully the same language set, namely: strings, lists, vars, regexes, backrefs,
functions with multiple or complex arguments, and especially combinations
thereof.

Most of them were reserved to boolean expressions only, while complex string
constructions can also benefit to, well, strings. The <word> construct allows
that (say the syntax "%{:<word>:}" looks like a temporary variable constructed
in a string).

Since string expressions may now have to deal with lists (arrays), they also
need a way to produce/extract strings from list and vice versa. This can be
done with the new "join" and "split" operators, while the new substitution
regexes (like "s/<pattern>/<substitute>/<flags>") may be used to manipulate
strings in place. All this of course available for both string and boolean
expressions.

Tests and doc updates upcoming..

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

7 years agoxforms
Jim Jagielski [Mon, 2 Oct 2017 18:15:40 +0000 (18:15 +0000)]
xforms

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

7 years agoGet maintainer-mode working again w/ clang-900
Jim Jagielski [Mon, 2 Oct 2017 15:29:14 +0000 (15:29 +0000)]
Get maintainer-mode working again w/ clang-900

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

7 years agoMore C90 stuff...
Jim Jagielski [Mon, 2 Oct 2017 15:28:42 +0000 (15:28 +0000)]
More C90 stuff...

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

7 years agoFinal comment-format changes
Jim Jagielski [Mon, 2 Oct 2017 14:39:56 +0000 (14:39 +0000)]
Final comment-format changes

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

7 years agoAnd standard format - no functional change
Jim Jagielski [Mon, 2 Oct 2017 14:36:42 +0000 (14:36 +0000)]
And standard format - no functional change

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

7 years agoC changes / C90/C89
Jim Jagielski [Mon, 2 Oct 2017 14:35:33 +0000 (14:35 +0000)]
C changes / C90/C89

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

7 years agoUserland change
Jim Jagielski [Mon, 2 Oct 2017 14:21:56 +0000 (14:21 +0000)]
Userland change

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

7 years agoFold in ALv2 licensed UWSGI proxy (sub)module as acknowledged via
Jim Jagielski [Mon, 2 Oct 2017 14:20:15 +0000 (14:20 +0000)]
Fold in ALv2 licensed UWSGI proxy (sub)module as acknowledged via
https://github.com/unbit/uwsgi/issues/1636

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

7 years agoAdd a warning for host starting with a letter.
Jean-Frederic Clere [Mon, 2 Oct 2017 09:18:50 +0000 (09:18 +0000)]
Add a warning for host starting with a letter.
Fix for PR 61540.

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

7 years agoFix ascii art :)
Yann Ylavic [Sat, 30 Sep 2017 19:28:50 +0000 (19:28 +0000)]
Fix ascii art :)

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

7 years agoRebuild.
Lucien Gentis [Sat, 30 Sep 2017 13:28:30 +0000 (13:28 +0000)]
Rebuild.

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

7 years agoXML updates.
Lucien Gentis [Sat, 30 Sep 2017 13:27:38 +0000 (13:27 +0000)]
XML updates.

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

7 years agoRFC8081, new font/ registry as pointed out by Steffen
William A. Rowe Jr [Fri, 29 Sep 2017 15:10:29 +0000 (15:10 +0000)]
RFC8081, new font/ registry as pointed out by Steffen

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

7 years agomod_http2: non-dev 1.10.12 for backport
Stefan Eissing [Fri, 29 Sep 2017 12:33:35 +0000 (12:33 +0000)]
mod_http2: non-dev 1.10.12 for backport

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

7 years agoreverting r1807238 bc not addressing the issue https://github.com/icing/mod_h2/issues/120
Stefan Eissing [Fri, 29 Sep 2017 12:29:23 +0000 (12:29 +0000)]
reverting r1807238 bc not addressing the issue https://github.com/icing/mod_h2/issues/120

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

7 years agoForward port 2.4.x change r1810016
William A. Rowe Jr [Thu, 28 Sep 2017 17:35:29 +0000 (17:35 +0000)]
Forward port 2.4.x change r1810016

Drops expat LICENSE since this is no longer bundled by apr-util
which is no longer bundled by httpd.

Note text was stale.

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

7 years agoOn the trunk:
Stefan Eissing [Thu, 28 Sep 2017 12:26:28 +0000 (12:26 +0000)]
On the trunk:
mod_http2: v0.10.12, removed optimization for mutex handling in bucket beams that could lead to assertion failure in edge cases.

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

7 years agoMPMs unix: follow up to r1809881 and r1809973.
Yann Ylavic [Thu, 28 Sep 2017 11:31:57 +0000 (11:31 +0000)]
MPMs unix: follow up to r1809881 and r1809973.

unset_signals() is called when ap_pglobal is destroyed too.

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

7 years agocore, MPMs unix: follow up to r1809881.
Yann Ylavic [Thu, 28 Sep 2017 11:08:09 +0000 (11:08 +0000)]
core, MPMs unix: follow up to r1809881.

Deregister all hooks first (in pre_cleanup), by doing it last we could still
have had them run when DSOs were unloaded.

Likewise, avoid double faults when handling fatal signals by restoring the
default handler before pconf is cleared (we can't ap_log_error there).

Finally, we need to ignore sig_term/restart (do nothing) when the main
process is exiting (i.e. ap_pglobal is destroyed), since retained_data are
freed.

Aimed to fix all faults in PR 61558.

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

7 years agofixup properties
André Malo [Wed, 27 Sep 2017 16:45:40 +0000 (16:45 +0000)]
fixup properties

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

7 years agoupdate transformation
André Malo [Wed, 27 Sep 2017 16:41:07 +0000 (16:41 +0000)]
update transformation

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

7 years agocore: deregister all hooks before leaving pconf, otherwise some late cleanup
Yann Ylavic [Wed, 27 Sep 2017 16:28:09 +0000 (16:28 +0000)]
core: deregister all hooks before leaving pconf, otherwise some late cleanup
or function call (e.g. ap_log) may use one while DSOs are unloaded.

See PR 61558 (double/second fault).

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

7 years agoCHANGES: remove backported items
Luca Toscano [Tue, 26 Sep 2017 13:28:31 +0000 (13:28 +0000)]
CHANGES: remove backported items

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

7 years agoOn the trunk:
Stefan Eissing [Tue, 26 Sep 2017 08:33:35 +0000 (08:33 +0000)]
On the trunk:

mod_md: v0.9.7
     - Use of the new module flag
     - Removed obsolete function from interface to mod_ssl.
     - Fallback certificates has version set and no longer claims to be a CA. (re issue #32)
     - MDRequireHttps now happens before any Redirect.

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

7 years agoOn the trunk:
Stefan Eissing [Tue, 26 Sep 2017 08:22:52 +0000 (08:22 +0000)]
On the trunk:

mod_ssl: make the new module flag used.

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

7 years agoOn the trunk:
Stefan Eissing [Mon, 25 Sep 2017 14:20:47 +0000 (14:20 +0000)]
On the trunk:

Fix for maintainer-mode compiler errors when including check.h in unit tests.

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

7 years agoRebuild.
Lucien Gentis [Sat, 23 Sep 2017 16:12:14 +0000 (16:12 +0000)]
Rebuild.

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

7 years agoXML update.
Lucien Gentis [Sat, 23 Sep 2017 16:08:58 +0000 (16:08 +0000)]
XML update.

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

7 years agoconfig: follow up to r1809302.
Yann Ylavic [Fri, 22 Sep 2017 13:25:15 +0000 (13:25 +0000)]
config: follow up to r1809302.
Associate ap_get_module_flags() to MMN bump.

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

7 years agoconfig: follow up to r1809302.
Yann Ylavic [Fri, 22 Sep 2017 13:13:44 +0000 (13:13 +0000)]
config: follow up to r1809302.

Provide a convenient function to get module flags, and remove useless
AP_MODULE_HAS_FLAGS checks in the core, core's version is at current MMN.

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

7 years agoconfig: follow up to r1809302.
Yann Ylavic [Fri, 22 Sep 2017 12:31:54 +0000 (12:31 +0000)]
config: follow up to r1809302.
We need to check that the module itself is at the right version.

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

7 years agomod_ssl: follow up to r1809302.
Yann Ylavic [Fri, 22 Sep 2017 11:59:57 +0000 (11:59 +0000)]
mod_ssl: follow up to r1809302.

Make use of AP_MODULE_FLAG_ALWAYS_MERGE.

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

7 years agoconfig: allow to specify flags when registering modules.
Yann Ylavic [Fri, 22 Sep 2017 11:58:53 +0000 (11:58 +0000)]
config: allow to specify flags when registering modules.

First one is AP_MODULE_FLAG_ALWAYS_MERGE.

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

7 years ago* modules/ssl/ssl_private.h: Remove unused macros.
Joe Orton [Fri, 22 Sep 2017 10:33:08 +0000 (10:33 +0000)]
* modules/ssl/ssl_private.h: Remove unused macros.

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

7 years agoevent, simple, motorz: better naming, error code checking and arrangement
Yann Ylavic [Fri, 22 Sep 2017 08:07:47 +0000 (08:07 +0000)]
event, simple, motorz: better naming, error code checking and arrangement
around pending output data handing; no functional change.

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

7 years agoevent: better apr_pollset_add() failure handling to avoid an (very unlikely)
Yann Ylavic [Fri, 22 Sep 2017 07:53:56 +0000 (07:53 +0000)]
event: better apr_pollset_add() failure handling to avoid an (very unlikely)
worker vs listener race condition.

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

7 years agoFix a segmentation fault if AuthzDBDQuery is not set.
Christophe Jaillet [Thu, 21 Sep 2017 19:31:32 +0000 (19:31 +0000)]
Fix a segmentation fault if AuthzDBDQuery is not set.
PR 61546 [Lubos Uhliarik <luhliari redhat.com>]

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

7 years agoOn the trunk:
Stefan Eissing [Thu, 21 Sep 2017 09:20:14 +0000 (09:20 +0000)]
On the trunk:

mpm_common.h: guarding AP_ENABLE_EXCEPTION_HOOK against use when undefined so that -Wundef does not triggger.

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

7 years agoOn the trunk:
Stefan Eissing [Wed, 20 Sep 2017 14:41:25 +0000 (14:41 +0000)]
On the trunk:

mod_ssl: unshare SSLSrvConfigRec instances between base server and virtual hosts. This avoids
     overwrites of later initializattions (vhost_id), selective disables by "SSLEngine addr-list"
     and certificate/key pickup from mod_md.

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

7 years agomod_rewrite,core: avoid Vary:Host (part 2)
Luca Toscano [Wed, 20 Sep 2017 13:03:41 +0000 (13:03 +0000)]
mod_rewrite,core: avoid Vary:Host (part 2)

This is a follow up of r1808746 after a chat
with Yann on dev@:

- the HTTP:Host variable suffers from the same problem
- the strcasecmp should be used to allow case-sensitive
  comparisons.
- in mod_rewrite is less cumbersome and more clean to just
  make the Host header check in lookup_header, so it will
  be automatically picked up by every part of the code
  that uses it. It shouldn't be a relevant overhead for
  mod_rewrite.

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

7 years agoMinor corrections.
Lucien Gentis [Tue, 19 Sep 2017 16:47:30 +0000 (16:47 +0000)]
Minor corrections.

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

7 years agomod_speling/PR 38923: don't embed Referer in link in error page.
Nick Kew [Mon, 18 Sep 2017 21:20:51 +0000 (21:20 +0000)]
mod_speling/PR 38923: don't embed Referer in link in error page.

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

7 years agomod_rewrite/core: avoid the 'Vary: Host' header
Luca Toscano [Mon, 18 Sep 2017 17:08:54 +0000 (17:08 +0000)]
mod_rewrite/core: avoid the 'Vary: Host' header

In PR 58231 is was brought up that httpd adds the
Vary: Host header whenever a condition is set to true
in mod_rewrite or in an <If> block.

The https://tools.ietf.org/html/rfc7231#section-7.1.4
section seems to disallow this use case:

"The "Vary" header field in a response describes "
"what parts of a request message, "
"aside from the method, Host header field, [...]"

I had a chat with the folks in #traffic-server and
they don't see much point in having a Vary: Host header,
plus it was reported that Varnish doesn't like it very
much (namely it does not cache the response when
it sees the header, links of the report in the PR).

I don't see much value in this behavior of httpd so
I am inclined to remove this response header value,
but I'd be glad to get a more experienced opinion.

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

7 years agoformat typo
Jim Jagielski [Mon, 18 Sep 2017 14:17:04 +0000 (14:17 +0000)]
format typo

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

7 years ago* Correctly dump pools that have no tag
Ruediger Pluem [Mon, 18 Sep 2017 07:23:43 +0000 (07:23 +0000)]
* Correctly dump pools that have no tag

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

7 years agoRebuild.
Lucien Gentis [Sat, 16 Sep 2017 14:03:16 +0000 (14:03 +0000)]
Rebuild.

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

7 years agoXML update.
Lucien Gentis [Sat, 16 Sep 2017 14:00:43 +0000 (14:00 +0000)]
XML update.

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

7 years agoprettify.js: add highlight for MDRequireHttps
Luca Toscano [Fri, 15 Sep 2017 12:09:58 +0000 (12:09 +0000)]
prettify.js: add highlight for MDRequireHttps

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

7 years agoDocumentation rebuild
Luca Toscano [Fri, 15 Sep 2017 11:09:19 +0000 (11:09 +0000)]
Documentation rebuild

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

7 years agoOn the trunk:
Stefan Eissing [Fri, 15 Sep 2017 10:35:53 +0000 (10:35 +0000)]
On the trunk:

mod_md: v0.9.6: a "MDRequireHttps permament" configured domain automatically sends out HSTS (rfc 6797) headers in https: responses.

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

7 years agoOn the trunk:
Stefan Eissing [Thu, 14 Sep 2017 13:01:29 +0000 (13:01 +0000)]
On the trunk:

mod_ssl: adding ssl_policies.h[.in] for policy cipher/protocol definitions. Use
     update_policies.py to update manually from Mozilla JSON definitions at
     https://statics.tls.security.mozilla.org/server-side-tls-conf.json

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

7 years agoDocumentation rebuild
Luca Toscano [Wed, 13 Sep 2017 14:58:58 +0000 (14:58 +0000)]
Documentation rebuild

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

7 years agomod_md.xml: fix some typos
Luca Toscano [Wed, 13 Sep 2017 14:57:54 +0000 (14:57 +0000)]
mod_md.xml: fix some typos

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

7 years agoupdate log tag db
Stefan Eissing [Wed, 13 Sep 2017 14:20:29 +0000 (14:20 +0000)]
update log tag db

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

7 years agoupdated mod_ssl log tags
Stefan Eissing [Wed, 13 Sep 2017 14:20:16 +0000 (14:20 +0000)]
updated mod_ssl log tags

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

7 years agoupdated mod_md log tags
Stefan Eissing [Wed, 13 Sep 2017 14:20:07 +0000 (14:20 +0000)]
updated mod_md log tags

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

7 years agoadded new mod_md directives
Stefan Eissing [Wed, 13 Sep 2017 14:19:40 +0000 (14:19 +0000)]
added new mod_md directives

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

7 years agoOn the trunk:
Stefan Eissing [Wed, 13 Sep 2017 14:16:49 +0000 (14:16 +0000)]
On the trunk:

mod_md: v0.9.5:
     - New directive (srly: what do you expect at this point?) "MDMustStaple on|off" to control if
       new certificates are requested with the OCSP Must Staple extension.
     - Known limitation: when the server is configured to ditch and restart child processes, for example
       after a certain number of connections/requests, the mod_md watchdog instance might migrate
       to a new child process. Since not all its state is persisted, some messsages might appear a
       second time in the logs.
     - Adding checks when 'MDRequireHttps' is used. It is considered an error when 'MDPortMap 443:-'
       is used - which negates that a https: port exists. Also, a warning is logged if no
       VirtualHost can be found for a Managed Domain that has port 443 (or the mapped one) in
       its address list.
     - New directive 'MDRequireHttps' for redirecting http: traffic to a Managed Domain, permanently
       or temporarily.
     - Fix for using a fallback certificate on initial signup of a Managed Domain. Requires also
       a changed mod_ssl patch (v5) to take effect.
     - compatibility with libressl

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

7 years ago* server/protocol.c (ap_content_length_filter): Rewrite the content
Joe Orton [Wed, 13 Sep 2017 10:59:51 +0000 (10:59 +0000)]
* server/protocol.c (ap_content_length_filter): Rewrite the content
  length filter to avoid arbitrary memory consumption for streaming
  responses (e.g. large CGI script output).  Ensures C-L is still
  generated in common cases (static content, small CGI script output),
  but this DOES change behaviour and some responses will end up
  chunked rather than C-L computed.

PR: 61222
Submitted by: jorton, rpluem

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

7 years agodocs: allow Directive/<Directive> naming in prettify.js/css
Luca Toscano [Wed, 13 Sep 2017 09:54:37 +0000 (09:54 +0000)]
docs: allow Directive/<Directive> naming in prettify.js/css

Creditis to Humbedooh for all the work.

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

7 years agodocs: add ManagedDomain and SSLPolicy containers to prettify.js
Luca Toscano [Wed, 13 Sep 2017 07:54:28 +0000 (07:54 +0000)]
docs: add ManagedDomain and SSLPolicy containers to prettify.js

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

7 years agodocs: update the prettify.js files with new directives
Luca Toscano [Wed, 13 Sep 2017 07:28:57 +0000 (07:28 +0000)]
docs: update the prettify.js files with new directives

Procedure that I've used:

1) Copy https://httpd.apache.org/docs/trunk/mod/directives.html
   to a text file.
2) Generate a csv with something like
   cat /tmp/trunk_directives | sort | tr "\n" ","
3) Replace the content of CONFIG_KEYWORDS in prettify.js
   with the list generated in 2)
4) Run the command the MINIFY command to generate prettify.min.js

This commit should hopefully allow a better syntax highlighting
in our docs examples.

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