]> granicus.if.org Git - apache/blob - CHANGES
update after backport
[apache] / CHANGES
1                                                          -*- coding: utf-8 -*-
2 Changes with Apache 2.5.0
3
4   *) mod_http2: limiting the amount of h2 workers a HTTP/2 connection can
5      occupy at a time to make DoS life harder. Limiting this to static 6 in
6      honor of http/1.1 connection limits, considering implementing dynamic
7      adjustments based on load and throughput.
8      This does *not* limit the number of streams a client may open, rather the
9      number of server threads a connection might use.
10      [Stefan Eissing]
11      
12   *) mod_auth_digest: Fix compatibility with expression-based Authname. PR59039.
13      [Eric Covener]
14
15   *) mpm: Add a complete_connection hook that confirms whether an MPM is allowed
16      to leave the WRITE_COMPLETION phase. Move filter code out of the MPMs.
17      [Graham Leggett]
18
19   *) mod_proxy_http2: using single connection for several requests *if*
20      master connection uses HTTP/2 itself. Not yet hardened under load.
21      [Stefan Eissing]
22
23   *) core: Added support for HTTP code 451. PR58985.
24      [Yehuda Katz <yehuda ymkatz.net>, Jim Jagielski]
25
26   *) mod_ssl: Add support for OpenSSL 1.1.0. [Rainer Jung]
27  
28   *) hostname: Test and log useragent_host per-request across various modules,
29      including the scoreboard, expression and rewrite engines, setenvif,
30      authz_host, access_compat, custom logging, ssl and REMOTE_HOST variables.
31      PR55348  [William Rowe]
32  
33   *) core: Track the useragent_host per-request when mod_remoteip or similar
34      modules track a per-request useragent_ip.  Modules should be updated
35      to inquire for ap_get_useragent_host() in place of ap_get_remote_host().
36      [William Rowe]
37
38   *) mod_proxy: Play/restore the TLS-SNI on new backend connections which
39      had to be issued because the remote closed the previous/reusable one
40      during idle (keep-alive) time.  [Yann Ylavic]
41
42   *) mod_proxy_http2: new experimental http2 proxy module for h2: and h2c: proxy
43      urls. Uses, so far, one connection per request, reuses connections.
44      [Stefan Eissing]
45   
46   *) event: use pre_connection hook to properly initialize connection state for
47      slave connections. use protocol_switch hook to initialize server config
48      early based on SNI selected vhost. 
49      [Stefan Eissing]
50   
51   *) mod_http2: allowing link header to specify multiple "rel" values, 
52      space-separated inside a quoted string. Prohibiting push when Link parameter
53      "nopush" is present.
54      [Stefan Eissing]
55
56   *) core: Prevent a server crash in case of an invalid CONNECT request with
57      a custom error page for status code 400 that uses server side includes.
58      PR 58929 [Ruediger Pluem]
59
60   *) mod_ssl: Add SSLOCSPProxyURL to add the possibility to do all queries
61      to OCSP responders through a HTTP proxy. [Ruediger Pluem]
62
63   *) mod_http2: idle connections are returned to async mpms. new hook
64      "pre_close_connection" used to send GOAWAY frame when not already done.
65      Setting event mpm server config "by hand" for the main connection to
66      the correct negotiated server.
67      [Stefan Eissing]
68
69   *) mod_filter: Fix AddOutputFilterByType with non-content-level filters.
70      PR58856 [Micha Lenk <micha lenk.info>]
71
72   *) mod_cache: Consider Cache-Control: s-maxage in expiration
73      calculations.  [Eric Covener]
74
75   *) mod_cache: Allow caching of responses with an Expires header
76      in the past that also has Cache-Control: max-age or s-maxage.
77      PR55156. [Eric Covener]
78
79   *) ap_expr: expression support for variable HTTP2=on|off
80      [Stefan Eissing]
81
82   *) mod_http2: keep-alive blocking reads are done with 1 second timeouts to
83      check for MPM stopping. Will announce early GOAWAY and finish processing
84      open streams, then close.
85      [Stefan Eissing]
86
87   *) mod_proxy_hcheck: Provide for dynamic background health
88      checks on reverse proxies associated with BalancerMember
89      workers. [Jim Jagielski]
90
91   *) mod_ssl: handle TIMEOUT on empty SSL input as non-fatal, returning 
92      APR_TIMEUP and preserving connection state for later retry.
93      [Stefan Eissing]
94
95   *) mod_http2: bytes read/written on slave connections are reported via the
96      optional mod_logio functions. Fixes PR 58871.
97
98   *) Added many log numbers to log statements that had none.
99
100   *) core: Add expression support to SetHandler.
101      [Eric Covener]
102
103   *) mod_proxy_fcgi: Suppress HTTP error 503 and message 01075, 
104      "Error dispatching request", when the cause appears to be 
105      due to the client closing the connection. 
106      PR58118.  [Tobias Adolph <adolph lrz.de>]
107
108   *) mod_cgid: Message 02550, failure to flush a response to the client,
109      is now logged at TRACE1 level to match the underlying core output filter
110      severity.  [Eric Covener]
111
112   *) mod_rewrite: Avoid looping on relative substitutions that
113      result in the same filename we started with. PR 58854.
114      [Eric Covener]
115
116   *) mime.types: add common extension "m4a" for MPEG 4 Audio.
117      PR 57895 [Dylan Millikin <dylan.millikin gmail.com>]
118
119   *) mod_ssl: Save some TLS record (application data) fragmentations by
120      including the last and subsequent suitable buckets when coalescing.
121      [Yann Ylavic]
122
123   *) mod_cache_socache: Fix a possible cached entity body corruption when it
124      is received from an origin server in multiple batches and forwarded by
125      mod_proxy.  [Yann Ylavic]
126
127   *) mod_proxy_fdpass: Fix AH01153 error when using the default configuration.
128      In earlier version of httpd, you can explicitelly set the 'flusher' parameter
129      to 'flush' as a workaround. (i.e. flusher=flush)
130      Add documentation for the 'flusher' parameter when defining a proxy worker.
131      [Christophe Jaillet]
132
133   *) mod_ssl: For the "SSLStaplingReturnResponderErrors off" case, make sure
134      to only staple responses with certificate status "good". [Kaspar Brand]
135
136   *) core: Limit to ten the number of tolerated empty lines between request,
137      and consume them before the pipelining check to avoid possible response
138      delay when reading the next request without flushing.  [Yann Ylavic]
139
140   *) mod_session: Introduce SessionExpiryUpdateInterval which allows to
141      configure the session/cookie expiry's update interval. PR 57300.
142      [Paul Spangler <paul.spangler ni.com>]
143
144   *) core: Extend support for asynchronous write completion from the
145      network filter to any connection or request filter. [Graham Leggett]
146
147   *) mpm_event: Free memory earlier when shutting down processes.
148      [Stefan Fritsch]
149
150   *) mod_ssl: Make the output filter more friendly with deferred write and
151      response pipelining. [Yann Ylavic, Joe Orton]
152
153   *) core/util_script: relax alphanumeric filter of environment variable names
154      on Windows to allow '(' and ')' for passing PROGRAMFILES(X86) et.al.
155      unadulterated in 64 bit versions of Windows. PR 46751.  
156      [John <john leineweb de>]
157
158   *) mod_auth_digest: remove AuthDigestEnableQueryStringHack which is no
159      more documented since dec 2012 (r1415960). [Christophe Jaillet]
160
161   *) mod_charset_lite: On EBCDIC platforms, make sure mod_charset_lite runs
162      after other resource-level filters. [Eric Covener]
163
164   *) mod_dir: Responses that go through "FallbackResource" might appear to
165      hang due to unterminated chunked encoding. PR58292. [Eric Covener]
166
167   *) mod_substitute: Fix configuraton merge order.
168      PR 57641 [<Marc.Stern approach.be>]
169
170   *) mod_ssl: When SSLVerify is disabled (NONE), don't force a renegotiation if
171      the SSLVerifyDepth applied with the default/handshaken vhost differs from
172      the one applicable with the finally selected vhost.  [Yann Ylavic]
173
174   *) http: Don't remove the Content-Length of zero from a HEAD response if
175      it comes from an origin server, module or script.  [Yann Ylavic]
176
177   *) http: Add support for RFC2324/RFC7168. [Graham Leggett]
178
179   *) mod_rewrite: Add support for starting External Rewriting Programs
180      as non-root user on UNIX systems by specifying username and group name
181      as third argument of RewriteMap directive. [Jan Kaluza]
182
183   *) mod_authn_core: Add expression support to AuthName and AuthType.
184      [Graham Leggett]
185
186   *) suexec: Filter out the HTTP_PROXY environment variable because it is
187      treated as alias for http_proxy by some programs. [Stefan Fritsch]
188
189   *) mod_proxy_http: Don't establish or reuse a backend connection before pre-
190      fetching the request body, so to minimize the delay between it is supposed
191      to be alive and the first bytes sent: this is a best effort to prevent the
192      backend from closing because of idle or keepalive timeout in the meantime.
193      Also, handle a new "proxy-flushall" environment variable which allows to
194      flush any forwarded body data immediately. PR 56541+37920. [Yann Ylavic]
195
196   *) core: Define and UnDefine are no longer permitted in
197      directory context. Previously they would always be evaulated
198      as the configuration was read without regard for the directory
199      context. [Eric Covener]
200
201   *) config: For directives that do not expect any arguments, enforce
202      that none are specified in the configuration file. 
203      [Joachim Zobel <jzobel heute-morgen.de>, Eric Covener]
204
205   *) mod_rewrite: Improve 'bad flag delimeters' startup error by showing
206      how the input was tokenized.  PR 56528. [Edward Lu <Chaosed0 gmail.com>]
207
208   *) mod_proxy: Don't put non balancer-member workers in error state by
209      default for connection or 500/503 errors, and honor status=+I for
210      any error.  PR 48388.  [Yann Ylavic]
211
212   *) mod_socache_memcache: Pass expiration time through to memcached. PR 55445.
213      [Faidon Liambotis <paravoid debian.org>, Joe Orton]
214
215   *) ap_expr: Add filemod function for checking file modification dates
216      [Daniel Gruno]
217
218   *) mod_authnz_ldap: Resolve crashes with LDAP authz and non-LDAP authn since 
219      r1608202. [Eric Covener]
220
221   *) core: Ensure that httpd exits with an error status when the MPM fails
222      to run.  [Yann Ylavic]
223
224   *) apreq: Content-Length header should be always interpreted as a decimal.
225      Leading 0 could be erroneously considered as an octal value. PR 56598.
226      [Chris Card <ctcard hotmail com>]
227
228   *) mod_proxy: Now allow for 191 character worker names, with non-fatal
229      errors if name is truncated. PR53218. [Jim Jagielski]
230
231   *) mod_ssl: Add optional function "ssl_get_tls_cb" to allow support
232      for channel bindings.  [Simo Sorce <simo redhat.com>]
233
234   *) mod_proxy_wstunnel: Concurrent websockets messages could be 
235      lost or delayed with ProxyWebsocketAsync enabled.  
236      [Edward Lu <Chaosed0 gmail.com>]
237
238   *) core, mod_info: Add compiled and loaded PCRE versions to version
239      number display.  [Rainer Jung]
240
241   *) mod_authnz_ldap: Return LDAP connections to the pool before the handler
242      is run, instead of waiting until the end of the request. [Eric Covener]
243
244   *) mod_log_config: Add GlobalLog to allow a globally defined log to
245      be inherited by virtual hosts that define a CustomLog.
246      [Edward Lu <Chaosed0 gmail.com>]
247
248   *) mod_proxy_html: support automatic detection of doctype and processing
249      of FPIs.  PR56285 [Micha Lenk <micha lenk info>, Nick Kew]
250
251   *) mod_proxy_html: skip documents shorter than 4 bytes
252      PR 56286 [Micha Lenk <micha lenk info>]
253
254   *) mod_proxy_fdpass: Fix computation of the size of 'struct sockaddr_un'
255      when passed to 'connect()'.
256      [Graham Dumpleton <grahamd apache org>]
257
258   *) core: Add ap_mpm_resume_suspended() API to allow a suspended connection
259      to resume. PR56333 
260      [Artem <artemciy gmail.com>, Edward Lu <Chaosed0 gmail.com>]
261
262   *) core: Add ap_mpm_register_socket_callback_timeout() API. [Eric Covener]
263
264   *) mod_proxy_wstunnel: Honor ProxyWebsocketIdleTimeout in asynchronous
265      processing mode. [Eric Covener]
266
267   *) mod_authnz_ldap: Fail explicitly when the filter is too long. Remove
268      unnecessary apr_pstrdup() and strlen(). [Graham Leggett]
269
270   *) Add the ldap-search option to mod_authnz_ldap, allowing authorization
271      to be based on arbitrary expressions that do not include the username.
272      [Graham Leggett]
273
274   *) Add the ldap function to the expression API, allowing LDAP filters and
275      distinguished names based on expressions to be escaped correctly to
276      guard against LDAP injection. [Graham Leggett]
277
278   *) Add module mod_ssl_ct, which provides an implementation of Certificate
279      Transparency (RFC 6962) for httpd.  [Jeff Trawick]
280
281   *) mod_remoteip: Prevent an external proxy from presenting an internal
282      proxy. PR 55962. [Mike Rumph]
283
284   *) mod_ssl: Add hooks to allow other modules to perform processing at
285      several stages of initialization and connection handling.  See
286      mod_ssl_openssl.h.  [Jeff Trawick]
287
288   *) mod_proxy_wstunnel: Avoid sending error responses down an upgraded
289      websockets connection as it is being close down. [Eric Covener]
290
291   *) mod_proxy_wstunnel: Allow the administrator to cap the amount
292      of time a synchronous websockets connection stays idle with 
293      ProxyWebsocketIdleTimeout. [Eric Covener]
294
295   *) mod_proxy_wstunnel: Change to opt-in for asynchronous support, adding 
296      directives ProxyWebsocketAsync and ProxyWebsocketAsyncDelay. 
297      [Eric Covener]
298
299   *) mod_proxy_wstunnel: Stop leaking websockets backend connections under
300      event MPM (trunk-only). [Eric Covener]
301
302   *) mod_proxy_http: Add detach_backend hook (potentially usable
303      in other proxy scheme handlers).  [Jeff Trawick]
304
305   *) mod_deflate: Add DeflateAlterETag to control how the ETag
306      is modified. The 'NoChange' parameter mimics 2.2.x behavior.
307      PR 45023, PR 39727. [Eric Covener]
308
309   *) mod_rewrite: Add 'BNF' (backreferences-no-plus) flag to RewriteRule to 
310      allow spaces in backreferences to be encoded as %20 instead of '+'.
311      [Eric Covener]
312
313   *) mod_rewrite: Support an optional list of characters to escape in the 
314      argument for the 'B' (escape backreferences) flag. [Eric Covener]
315
316   *) mod_dir: Default to 2.2-like behavior and skip execution when method is
317      neither GET nor POST, such as for DAV requests. PR 54914. [Chris Darroch]
318
319   *) mod_rewrite: Rename the handler that does per-directory internal 
320      redirects to "rewrite-redirect-handler" from "redirect-handler" so
321      it is less ambiguous and less likely to be reused. [Eric Covener]
322
323   *) mod_rewrite: Protect against looping with the [N] flag by enforcing a 
324      default limit of 10000 iterations, and allowing each rule to change its
325      limit. [Eric Covener]
326
327   *) mod_ssl: Fix config merging of SSLOCSPEnable and SSLOCSPOverrideResponder.
328      [Jeff Trawick]
329
330   *) Add HttpContentLengthHeadZero and HttpExpectStrict directives.
331      [Yehuda Sadeh <yehuda inktank com>, Justin Erenkrantz]
332
333   *) mod_ssl: Add -t -DDUMP_CA_CERTS option which dumps the filenames of all
334      configured SSL CA certificates to stdout the same way as DUMP_CERTS does.
335      [Jan Kaluza]
336
337   *) mod_ssl: Don't flush when an EOS is received. Prepares mod_ssl
338      to support write completion. [Graham Leggett]
339
340   *) core: Add parse_errorlog_arg callback to ap_errorlog_provider
341      to allow providers to check the ErrorLog argument. [Jan Kaluza]
342
343   *) mod_cgid: Use the servers Timeout for each read from a CGI script,
344      allow override with new CGIDRequestTimeout directive. PR43494
345      [Eric Covener, Toshikuni Fukaya <toshikuni-fukaya cybozu co jp>]
346
347   *) core: ensure any abnormal exit is reported to stderr if it's a tty.
348      PR 55670 [Nick Kew]
349
350   *) mod_lua: Let the Inter-VM get/set functions work with a global 
351      shared memory pool instead of a per-process pool. [Daniel Gruno]
352
353   *) ldap: Support ldaps when using the Microsoft LDAP SDK.
354      PR 54626. [Jean-Frederic Clere]
355
356   *) mod_authnz_ldap: Change default value of AuthLDAPMaxSubGroupDepth to 0
357      to avoid performance problems when subgroups aren't in use. [Eric Covener]
358
359   *) mod_syslog: New module implementing syslog ap_error_log provider.
360      Previously, this code was part of core, now it's in separate module.
361      [Jan Kaluza]
362
363   *) core: Add ap_errorlog_provider to make ErrorLog logging modular. Move
364      syslog support from core to new mod_syslog. [Jan Kaluza]
365
366   *) mod_status, mod_echo: Fix the display of client addresses.
367      They were truncated to 31 characters which is not enough for IPv6 addresses.
368      PR 54848 [Bernhard Schmidt <berni birkenwald de>]
369
370   *) mod_unique_id: Use output of the PRNG rather than IP address and
371      pid, avoiding sleep() call and possible DNS issues at startup,
372      plus improving randomness for IPv6-only hosts.
373      [Jan Kaluza <jkaluza redhat.com>]
374
375   *) mod_file_cache: mod_file_cache should be able to serve files that
376      haven't had a Content-Type set via e.g. mod_mime. [Eric Covener]
377
378   *) core: merge AllowEncodedSlashes from the base configuration into
379      virtual hosts. [Eric Covener]
380
381   *) AIX: Install DSO's with "cp" instead of "install" in instdso.sh
382      [Eric Covener]
383
384   *) mod_ldap: Don't keep retrying if a new LDAP connection times out.
385      [Eric Covener]
386
387   *) mod_deflate: permit compilation of mod_deflate against a zlib that has
388      been configured with -D Z_PREFIX, which redefines the token "deflate".
389      [Eric Covener]
390
391   *) mod_auth_digest: Use the secret when generating nonces in all cases and
392      not only when AuthName is used in .htaccess files (this change may cause
393      problems if used with round robin load balancers). Don't regenerate the
394      secret on graceful restarts. PR 54637  [Stefan Fritsch]
395
396   *) core: Remove apr_brigade_flatten(), buffering and duplicated code
397      from the HTTP_IN filter, parse chunks in a single pass with zero copy.
398      Reduce memory usage by 48 bytes per request. [Graham Leggett]
399
400   *) core: Stop the HTTP_IN filter from attempting to write error buckets
401      to the output filters, which is bogus in the proxy case. Create a
402      clean mapping from APR codes to HTTP status codes, and use it where
403      needed. [Graham Leggett]
404
405   *) mod_proxy: Ensure network errors detected by the proxy are returned as
406      504 Gateway Timout as opposed to 502 Bad Gateway, in order to be
407      compliant with RFC2616 14.9.4 Cache Revalidation and Reload Controls.
408
409   *) mod_dav: mod_dav overrides dav_fs response on PUT failure. PR 35981
410      [Basant Kumar Kukreja <basant.kukreja sun.com>, Alejandro Alvarez
411      <alejandro.alvarez.ayllon cern.ch>]
412
413   *) mod_ldap: LDAP connections used for authentication were not respecting
414      LDAPConnectionPoolTimeout.  PR 54587
415
416   *) core: ap_rgetline_core now pulls from r->proto_input_filters.
417
418   *) mod_proxy_html: process parsed comments immediately. 
419      Fixes bug where parsed comments may be lost. [Nick Kew]
420
421   *) mod_proxy_html: introduce doctype for HTML 5 [Nick Kew]
422
423   *) mod_proxy_html: fix typo-bug processing "strict" vs "transitional"
424      HTML/XHTML [Nick Kew]
425
426   *) core: Add option to add valgrind support. Use it to reduce false positive
427      warnings in mod_ssl. [Stefan Fritsch]
428
429   *) mod_authn_file, mod_authn_dbd, mod_authn_dbm, mod_authn_socache:
430      Cache the result of the most recent password hash verification for every
431      keep-alive connection. This saves some expensive calculations.
432      [Stefan Fritsch]
433
434   *) http: Remove support for Request-Range header sent by Navigator 2-3 and
435      MSIE 3. [Stefan Fritsch]
436
437   *) core, http: Extend HttpProtocol with an option to enforce stricter HTTP
438      conformance or to only log the found problems. [Stefan Fritsch]
439
440   *) core: Correctly parse an IPv6 literal host specification in an absolute
441      URL in the request line. [Stefan Fritsch]
442
443   *) EventOpt MPM
444
445   *) core: Add LogLevelOverride directive that allows to override the
446      loglevel for clients from certain IPs. This also works for things
447      like the SSL handshake where <If> LogLevel ... </If> is evaluated
448      too late. [Stefan Fritsch]
449
450   *) core: Add new directive Warning to issue warnings from a configuration
451      file. Both Warning and Error now generate a timestamped log message.
452      [Fabien Coelho] 
453
454   *) ap_expr: Add SERVER_PROTOCOL_VERSION, ..._MAJOR, and ..._MINOR
455      variables. [Stefan Fritsch]
456
457   *) core: New directive RegisterHttpMethod for registering non-standard
458      HTTP methods. [Stefan Fritsch]
459
460   *) core: New directive HttpProtocol which allows to disable HTTP/0.9
461      support. [Stefan Fritsch]
462
463   *) mod_allowhandlers: New module to forbid specific handlers for specific
464      directories. [Stefan Fritsch]
465
466   *) mod_systemd: New module, for integration with systemd on Linux.
467      [Jan Kaluza <jkaluza redhat.com>]
468
469   *) WinNT MPM: Store pid and generation for each thread in scoreboard
470      to allow tracking of threads from exiting children via mod_status
471      or other such mechanisms.  [Jeff Trawick]
472
473   *) The following now respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR:
474      - APIs: ap_log_pid(), ap_remove_pid, ap_read_pid()
475      - mod_cache: thundering herd lock directory
476      - mod_lbmethod_heartbeat, mod_heartmonitor: heartbeat storage file
477      - mod_ldap: shared memory cache
478      - mod_socache_shmcb, mod_socache_dbm: shared memory or dbm for cache
479      [Jeff Trawick]
480
481   *) suexec: Add --enable-suexec-capabilites support on Linux, to use
482      setuid/setgid capability bits rather than a setuid root binary.
483      [Joe Orton]
484
485   *) suexec: Add support for logging to syslog as an alternative to logging
486      to a file; configure --without-suexec-logfile --with-suexec-syslog.  
487      [Joe Orton]
488
489   *) mod_ssl: Add support for TLS Next Protocol Negotiation.  PR 52210.
490      [Matthew Steele <mdsteele google.com>]
491
492   *) cross-compile: allow to provide CC_FOR_BUILD so that gen_test_char will
493      be compiled by the build compiler instead of the host compiler.
494      Also set CC_FOR_BUILD to 'cc' when cross-compilation is detected.
495      PR 51257. [Guenter Knauf]
496
497   *) core: In maintainer mode, replace apr_palloc with a version that
498      initializes the allocated memory with non-zero values, except if
499      AP_DEBUG_NO_ALLOC_POISON is defined. [Stefan Fritsch]
500
501   *) mod_policy: Add a new testing module to help server administrators
502      enforce a configurable level of protocol compliance on their
503      servers and application servers behind theirs. [Graham Leggett]
504
505   *) mod_firehose: Add a new debugging module able to record traffic
506      passing through the server in such a way that connections and/or
507      requests be reconstructed and replayed. [Graham Leggett]
508
509   *) mod_noloris
510
511   *) APREQ
512
513   *) Simple MPM
514
515   *) mod_serf
516
517   [Apache 2.5.0-dev includes those bug fixes and changes with the
518    Apache 2.4.xx tree as documented below, except as noted.]
519
520 Changes with Apache 2.4.x and later:
521
522   *) http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/CHANGES?view=markup
523
524 Changes with Apache 2.2.x and later:
525
526   *) http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/CHANGES?view=markup
527
528 Changes with Apache 2.0.x and later:
529
530   *) http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/CHANGES?view=markup
531