Apache Tomcat Changelog

What's new in Apache Tomcat 10.1.23

Apr 24, 2024
  • Improve locking strategies in Catalina core
  • Update Basic authentication to implement the requirements of RFC 7617
  • Updates to Apache Commons dependencies
  • Add OpenSSL support when FFM is available

New in Apache Tomcat 11.0.0-M19 (Apr 17, 2024)

  • Finalize update to the Jakarta EE 11 specifications.
  • Cookies header generation enhancements.
  • Fix regression when reloading TLS configuration and files.

New in Apache Tomcat 9.0.88 (Apr 16, 2024)

  • Cookies header generation enhancements.
  • Fix regression when reloading TLS configuration and files.

New in Apache Tomcat 10.1.20 (Mar 26, 2024)

  • The notable changes in this release are:
  • Fix regression when reloading TLS configuration and files.
  • When restoring a saved POST request after a successful FORM authentication, ensure that neither the URI, the query string no the protocol are corrupted when restoring the request body.
  • Align error handling for Writer and OutputStream. Ensure use of either once the response has been recycled triggers a NullPointerException provided that discardFacades is configured with the default value of true.

New in Apache Tomcat 11.0.0-M18 (Mar 15, 2024)

  • Reduce minimum Java version to Java 17
  • When restoring a saved POST request after a successful FORM authentication, ensure that neither the URI, the query string no the protocol are corrupted when restoring the request body.
  • Align error handling for Writer and OutputStream. Ensure use of either once the response has been recycled triggers a NullPointerException provided that discardFacades is configured with the default value of true.

New in Apache Tomcat 9.0.86 (Feb 19, 2024)

  • Add improvements to the CSRF prevention filter including the ability to skip adding nonces for resource name and subtree URL patterns.
  • Add support for user provided SSLContext instances configured on SSLHostConfigCertificate instances. Based on pull request #673 provided by Hakan Altındağ.
  • Review usage of debug logging and downgrade trace or data dumping operations from debug level to trace.

New in Apache Tomcat 11.0.0-M17 (Feb 19, 2024)

  • The notable changes in this release are:
  • Add improvements to the CSRF prevention filter including the ability to skip adding nonces for resource name and subtree URL patterns.
  • Add support for user provided SSLContext instances configured on SSLHostConfigCertificate instances. Based on pull request #673 provided by Hakan Altındağ.
  • Review usage of debug logging and downgrade trace or data dumping operations from debug level to trace.

New in Apache Tomcat 10.1.18 (Jan 9, 2024)

  • Fix virtual thread support for the NIO2 connector.
  • Correct a regression in the fix for 67675 that broke TLS key file parsing for PKCS#8 format keys that do not specify an explicit pseudo-random function and rely on the default. This typically affects keys generated by OpenSSL 1.0.2.
  • Allow multiple operations with the same name on introspected mbeans, fixing a regression caused by the introduction of a second addSslHostConfig() method.

New in Apache Tomcat 10.1.17 (Dec 13, 2023)

  • Background processes for a Container no longer execute while lifecycle operations are in progress for that Container.
  • Correct unintended escaping of XML in some WebDAV responses.
  • Use a 408 status code if a read timeout occurs during HTTP HTTP request processing instead of an HTTP 400 status.

New in Apache Tomcat 8.5.97 (Dec 12, 2023)

  • Background processes for a Container no longer execute while lifecycle operations are in progress for that Container.
  • Correct unintended escaping of XML in some WebDAV responses.
  • Use a 408 status code if a read timeout occurs during HTTP HTTP request processing instead of an HTTP 400 status.

New in Apache Tomcat 9.0.83 (Nov 15, 2023)

  • Fix reloading TLS configuration could cause the Connector to refuse new connections or the JVM to crash.
  • Ensure that an IOException during the reading of the request triggers always error handling, regardless of whether the application swallows the exception.

New in Apache Tomcat 11.0.0-M13 (Oct 16, 2023)

  • Correct a regression in 11.0.0-M12 that broke the Tomcat JBDC connection pool.
  • Correct a regression in 11.0.0-M12 that broke HTTP compression.

New in Apache Tomcat 9.0.82 (Oct 13, 2023)

  • Correct a regression in 9.0.81 that broke the Tomcat JBDC connection pool.
  • Correct a regression in 9.0.81 that broke HTTP compression.

New in Apache Tomcat 11.0.0-M12 (Oct 10, 2023)

  • Provide a lifecycle listener that will automatically reload TLS configurations a set time before the certificate is due to expire. This is intended to be used with third-party tools that regularly renew TLS certificates.
  • Remove support for HTTP/2 server push.
  • Update Tomcat Native to 2.0.6 to pick up Windows binaries built with OpenSSL 3.0.11.

New in Apache Tomcat 10.1.14 (Oct 10, 2023)

  • Update Tomcat Native to 1.2.39 to pick up Windows binaries built with OpenSSL 3.0.11.
  • Provide a lifecycle listener that will automatically reload TLS configurations a set time before the certificate is due to expire. This is intended to be used with third-party tools that regularly renew TLS certificates.
  • Improve performance of EL expressions in JSPs that use implicit objects.
  • Several improvements to thread safety and recycling cleanup.

New in Apache Tomcat 11.0.0-M11 (Aug 27, 2023)

  • Update the HTTP parameter handling to align with the changes in the Jakarta Servlet 6.1 API Javadoc for the ServletRequest methods used to obtain request parameters. Invalid parameters and/or exceeding parameter size and/or quantity limits now trigger exceptions. As a consequence, the FailedRequestFilter has been removed.
  • If an application or library sets both a non-500 error code and the jakarta.servlet.error.exception request attribute, use the provided error code during error page processing rather than assuming an error code of 500.
  • Fix for FORM authentication open redirect - CVE-2023-41080

New in Apache Tomcat 9.0.80 (Aug 27, 2023)

  • If an application or library sets both a non-500 error code and the jakarta.servlet.error.exception request attribute, use the provided error code during error page processing rather than assuming an error code of 500.
  • Fix for FORM authentication open redirect - CVE-2023-41080

New in Apache Tomcat 10.1.12 (Aug 15, 2023)

  • Refactor HTTP/2 implementation to reduce pinning when using virtual threads.
  • Pass through ciphers referring to an OpenSSL profile, such as PROFILE=SYSTEM instead of producing an error trying to parse it.
  • Update Tomcat Native to 2.0.5.

New in Apache Tomcat 9.0.79 (Aug 15, 2023)

  • Refactor HTTP/2 implementation to reduce pinning when using virtual threads.
  • Pass through ciphers referring to an OpenSSL profile, such as PROFILE=SYSTEM instead of producing an error trying to parse it.
  • Update Tomcat Native to 2.0.5.

New in Apache Tomcat 8.5.92 (Aug 14, 2023)

  • Refactor HTTP/2 implementation to reduce pinning when using virtual threads.
  • Fix a NullPointerException when flushing batched WebSocket messages with compression enabled using permessage-deflate.
  • Update Tomcat Native to 1.2.38 to pick up Windows binaries built with OpenSSL 1.1.1v

New in Apache Tomcat 11.0.0-M10 (Aug 14, 2023)

  • Refactor HTTP/2 implementation to reduce pinning when using virtual threads.
  • Pass through ciphers referring to an OpenSSL profile, such as PROFILE=SYSTEM instead of producing an error trying to parse it.
  • Update Tomcat Native to 2.0.5.

New in Apache Tomcat 10.1.11 (Jul 11, 2023)

  • Add ContextNamingInfoListener, a listener which creates context naming information environment entries.
  • Add PropertiesRoleMappingListener, a listener which populates the context's role mapping from a properties file.

New in Apache Tomcat 11.0.0-M9 (Jul 10, 2023)

  • Add ContextNamingInfoListener, a listener which creates context naming information environment entries.
  • Add PropertiesRoleMappingListener, a listener which populates the context's role mapping from a properties file.
  • Update the Jakarta EL and Jakarta WebSocket implementations to align with the latest changes planned for Jakarta EE 11.

New in Apache Tomcat 9.0.78 (Jul 10, 2023)

  • Add ContextNamingInfoListener, a listener which creates context naming information environment entries.
  • Add PropertiesRoleMappingListener, a listener which populates the context's role mapping from a properties file.

New in Apache Tomcat 10.1.10 (Jun 13, 2023)

  • The notable changes in this release are:
  • Add support for virtual threads. (Java 21+ only)
  • Update HTTP/2 to use the RFC-9218 prioritization scheme.
  • Deprecate the xssProtectionEnabled from HttpHeaderSecurityFilter and set the default value to false.
  • Update Tomcat Native to 2.0.4 which includes binaries for Windows built with OpenSSL 3.0.9.

New in Apache Tomcat 8.5.90 (Jun 12, 2023)

  • Add support for virtual threads. (Java 21+ only)
  • Update HTTP/2 to use the RFC-9218 prioritization scheme.
  • Deprecate the xssProtectionEnabled from HttpHeaderSecurityFilter and set the default value to false.
  • Update Tomcat Native to 1.2.37 which includes binaries for Windows built with OpenSSL 1.1.1u.

New in Apache Tomcat 8.5.89 (May 21, 2023)

  • Reduce the default value of maxParameterCount from 10,000 to 1,000.
  • Correct a regression in the fix for bug 66442 that meant that streams without a response body did not decrement the active stream count when completing, leading to ERR_HTTP2_SERVER_REFUSED_STREAM for some connections.
  • Refactor synchronization blocks locking on SocketWrapper to use ReentrantLock to support users wishing to experiment with project Loom.
  • Implement RFC 9239; note the MIME types for Javascript has changed to text/javascript.

New in Apache Tomcat 10.1.9 (May 20, 2023)

  • Many improvements to the JSON access log valve.
  • Deprecate support for the HTTP Connector settings rejectIllegalHeader and allowHostHeaderMismatch and reject HTTP headers without names.
  • Add a RateLimitFilter which can be used to mitigate DoS and Brute Force attacks.

New in Apache Tomcat 9.0.75 (May 10, 2023)

  • Many improvements to the json access log valve.
  • Deprecate support for the HTTP Connector settings rejectIllegalHeader and allowHostHeaderMismatch.

New in Apache Tomcat 11.0.0-M6 (May 10, 2023)

  • Various improvements to access logging.
  • Remove support for the HTTP Connector settings rejectIllegalHeader and allowHostHeaderMismatch. These are now hard-coded to the previous defaults.
  • Update the packaged version of the Tomcat Migration Tool for Jakarta EE to 1.0.7.

New in Apache Tomcat 10.1.8 (Apr 19, 2023)

  • Reduce the default value of maxParameterCount from 10,000 to 1,000.
  • Correct a regression in the fix for bug 66442 that meant that streams without a response body did not decrement the active stream count when completing leading to ERR_HTTP2_SERVER_REFUSED_STREAM for some connections.
  • Expand the validation of the value of the Sec-Websocket-Key header in the HTTP upgrade request that initiates a WebSocket connection. The value is not decoded but it is checked for the correct length and that only valid characters from the base64 alphabet are used.
  • Implement RFC 9239; note the MIME types for Javascript has changed to text/javascript

New in Apache Tomcat 8.5.88 (Apr 19, 2023)

  • Reduce the default value of maxParameterCount from 10,000 to 1,000.
  • Correct a regression in the fix for bug 66442 that meant that streams without a response body did not decrement the active stream count when completing, leading to ERR_HTTP2_SERVER_REFUSED_STREAM for some connections.
  • Refactor synchronization blocks locking on SocketWrapper to use ReentrantLock to support users wishing to experiment with project Loom.
  • Implement RFC 9239; note the MIME types for Javascript has changed to text/javascript.

New in Apache Tomcat 11.0.0-M5 (Apr 19, 2023)

  • Reduce the default value of maxParameterCount from 10,000 to 1,000.
  • Correct a regression in the fix for bug 66442 that meant that streams without a response body did not decrement the active stream count when completing leading to ERR_HTTP2_SERVER_REFUSED_STREAM for some connections.
  • Expand the validation of the value of the Sec-Websocket-Key header in the HTTP upgrade request that initiates a WebSocket connection. The value is not decoded but it is checked for the correct length and that only valid characters from the base64 alphabet are used.

New in Apache Tomcat 9.0.74 (Apr 18, 2023)

  • Catalina:
  • Fix: 65995: Implement RFC 9239 and use text/javascript as the media type for JavaScript rather than application/javascript. (markt)
  • Add: Add an access log valve that uses a json format. Based on pull request #539 provided by Thomas Meyer. (remm)
  • Add: Harden the FORM authentication process against DoS attacks by using a reduced session timeout if the FORM authentication process creates a session. The duration of this timeout is configured by the authenticationSessionTimeout attribute of the FORM authenticator. (markt)
  • Fix: 66527: Correct the Javadoc for the Tomcat.addWebapp() methods that incorrectly stated that the docBase parameter could be a relative path. (markt)
  • Fix: 66524 Correct eviction ordering in WebResource cache to by LRU as intended. (schultz)
  • Update: Use server.xml to reduce the default value of maxParameterCount from 10,000 to 1,000. If not configured in server.xml, the default remains 10,000. (markt)
  • Add: Update Digest authentication support to align with RFC 7616. This adds a new configuration attribute, algorithms, to the DigestAuthenticator with a default of SHA-256,MD5. (markt)
  • Update: Add support code for custom user attributes in RealmBase. Based on code from #473 by Carsten Klein. (remm)
  • Fix: Expand the set of HTTP request headers considered sensitive that should be skipped when generating a response to a TRACE request. This aligns with 11.0.x. (markt)
  • Fix: 66541: Improve handling for cached resources for resources that use custom URL schemes. The scheme specific equals() and hashcode() algorithms, if present, will now be used for URLs for these resources. This addresses a potential performance issue with some OSGi custom URL schemes that can trigger potentially slow DNS lookups in some configurations. Based on a patch provided by Tom Whitmore. (markt)
  • Fix: When using a custom session manager deployed as part of the web application, avoid ClassNotFoundExceptions when validating session IDs extracted from requests. (markt)
  • Fix: 66543: Give StandardContext#fireRequestDestroyEvent its own log message. (fschumacher)
  • Fix: 66554: Initialize Random during server initialization to avoid possible JVM thread creation in the webapp context on some platforms. (remm)
  • Update: Make the server utility executor available to webapps using a Servlet context attribute named org.apache.tomcat.util.threads.ScheduledThreadPoolExecutor. (remm)
  • Coyote:
  • Fix: JSON filter should support specific escaping for common special characters as defined in RFC 8259. Based on code submitted by Thomas Meyer. (remm)
  • Fix: 66511: Fix GzipOutputFilter (used for compressed HTTP responses) when used with direct buffers. Patch suggested by Arjen Poutsma. (markt)
  • Fix: 66512: Align AJP handling of invalid HTTP response headers (they are now removed from the response) with HTTP. (markt)
  • Fix: 66530: Correct a regression in the fix for bug 66442 that meant that streams without a response body did not decrement the active stream count when completing leading to ERR_HTTP2_SERVER_REFUSED_STREAM for some connections. (markt)
  • Code: Refactor synchronization blocks locking on SocketWrapper to use ReentrantLock to support users wishing to experiment with project Loom. (markt)
  • Jasper:
  • Fix: 66536: Fix parsing of tag files that meant that tag directives could be ignored for some tag files. (markt)
  • Cluster:
  • Fix: 66535: Redefine the maxValidTime attribute of FarmWarDeployer to be the maximum time allowed between receiving parts of a transferred file before the transfer is cancelled and the associated resources cleaned-up. A new warning message will be logged if the file transfer is cancelled. (markt)
  • WebSocket:
  • Fix: 66508: When using WebSocket with NIO2, avoid waiting for a timeout before sending the close frame if an I/O error occurs during a write. (markt)
  • Other:
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Japanese translations. Contributed by Shirayuking and tak7iji. (markt)
  • Add: Improvements to Chinese translations. Contributed by totoo. (markt)
  • Code: Refactor code using MD5Encoder to use HexUtils.toHexString(). (markt)
  • Fix: 66507: Fix a bug that $JAVA_OPTS is not passed to the jvm in catalina.sh when calling version. Patch suggested by Eric Hamilton. (lihan)
  • Update: Update the internal fork of Commons DBCP to f131286 (2023-03-08, 2.10.0-SNAPSHOT). This corrects a regression introduced in 9.0.71. (markt)
  • Fix: Improve the error messages if JRE_HOME or JAVA_HOME are not set correctly. On windows, align the handling of JRE_HOME and JAVA_HOME for the start-up scripts and the service install script. (markt)
  • Update: Update UnboundID to 6.0.8. (markt)
  • Update: Update Checkstyle to 10.9.3. (markt)
  • Update: Update Jacoco to 0.8.9. (markt)

New in Apache Tomcat 11.0.0-M4 (Mar 7, 2023)

  • The notable changes in this release are:
  • Revert the switch to using the ServiceLoader mechanism to load the custom URL protocol handlers that Tomcat uses. The original system property based approach has been restored.
  • Provide an implementation of the sub-set of JavaBeans support that does not depend on the java.beans package. This for use by Expression Language when the java.desktop module (which is where the java.beans package resides) is not available.
  • Restore inline state after async operation in NIO2, to account the fact that unexpected exceptions are sometimes thrown by the implementation. Patch submitted by zhougang.

New in Apache Tomcat 10.1.7 (Mar 4, 2023)

  • Correct a regression introduced in the fix for bug 66196 that meant that the HTTP headers and/or request line could get corrupted (one part overwriting another part) within a single request.
  • Revert the switch to using the ServiceLoader mechanism to load the custom URL protocol handlers that Tomcat uses. The original system property based approach has been restored.
  • Restore inline state after async operation in NIO2, to account the fact that unexpected exceptions are sometimes thrown by the implementation. Patch submitted by zhougang.
  • Provide a more appropriate response (501 rather than 400) when rejecting an HTTP request using the CONNECT method.
  • Add support for txt: and rnd: rewrite map types from mod_rewrite. Based on a pull request provided by Dimitrios Soumis.
  • Full details of these changes, and all the other changes, are available in the Tomcat 10.1 changelog.

New in Apache Tomcat 9.0.73 (Mar 3, 2023)

  • Correct a regression introduced in the fix for bug 66196 that meant that the HTTP headers and/or request line could get corrupted (one part overwriting another part) within a single request.
  • Provide a more appropriate response (501 rather than 400) when rejecting an HTTP request using the CONNECT method.
  • Add support for txt: and rnd: rewrite map types from mod_rewrite. Based on a pull request provided by Dimitrios Soumis.

New in Apache Tomcat 10.1.6 (Feb 25, 2023)

  • Switch to using the ServiceLoader mechanism to load the custom URL protocol handlers that Tomcat uses.
  • Update the packaged version of the Apache Tomcat Native Library to 2.0.3 to pick up the Windows binaries built with with OpenSSL 3.0.8.
  • Add the shared address space specified by RFC 6598 (100.64.0.0/10) to the list of trusted proxies for RemoteIPValve/Filter.
  • Limit access to examples web application to localhost by default .

New in Apache Tomcat 11.0.0-M3 (Feb 24, 2023)

  • Increase the minimum supported Java version to Java 17.
  • Remove support for starting Tomcat under a SecurityManager.
  • Remove JAX-RPC support which was removed from the Jakarta EE platform for Jakarta EE 9

New in Apache Tomcat 9.0.72 (Feb 23, 2023)

  • Add an error report valve that allows redirecting to or proxying from an external web server.
  • Log basic information for each configured TLS certificate when Tomcat starts.
  • Add the shared address space specified by RFC 6598 (100.64.0.0/10) to the list of trusted proxies for RemoteIPValve/Filter.
  • Limit access to examples web application to localhost by default.

New in Apache Tomcat 8.5.85 (Jan 19, 2023)

  • The default value of AccessLogValve's file encoding is now UTF-8.
  • Correct a regression in the refactoring that replaced the use of the URL constructors. The regression broke lookups for resources that contained one or more characters in their name that required escaping when used in a URI path.
  • When an HTTP/2 stream was reset, the current active stream count was not reduced. If enough resets occurred on a connection, the current active stream count limit was reached and no new streams could be created on that connection.
  • Change the default of the org.apache.el.GET_CLASSLOADER_USE_PRIVILEGED system property to true unless the EL library is running on Tomcat in which case the default remains false as the EL library is already called from within a privileged block and skipping the unnecessary privileged block improves performance.

New in Apache Tomcat 10.1.5 (Jan 13, 2023)

  • Correct a regression in the refactoring that replaced the use of the URL constructors. The regression broke lookups for resources that contained one or more characters in their name that required escaping when used in a URI path.
  • When resetting an HTTP/2 stream because the final response has been generated before the request has been fully read, use the HTTP/2 error code NO_ERROR so that client does not discard the response. Based on a suggestion by Lorenzo Dalla Vecchia.
  • Change the default of the org.apache.el.GET_CLASSLOADER_USE_PRIVILEGED system property to true unless the EL library is running on Tomcat in which case the default remains false as the EL library is already called from within a privileged block and skipping the unnecessary privileged block improves performance.

New in Apache Tomcat 9.0.71 (Jan 13, 2023)

  • Catalina:
  • Fix: 66388: Correct a regression in the refactoring that replaced the use of the URL constructors. The regression broke lookups for resources that contained one or more characters in their name that required escaping when used in a URI path. (markt)
  • Fix: 66392: Change the default value of AccessLogValue's file encoding to UTF-8 and update documentation. (lihan)
  • Fix: 66393: Align ExtendedAccessLogValve's x-P(XXX) with the documentation. (lihan)
  • Coyote:
  • Fix: When resetting an HTTP/2 stream because the final response has been generated before the request has been fully read, use the HTTP/2 error code NO_ERROR so that client does not discard the response. Based on a suggestion by Lorenzo Dalla Vecchia. (markt)
  • Fix: 66196: Align HTTP/1.1 with HTTP/2 and throw an exception when attempting to commit a response with an header value that includes one or more characters with a code point above 255. (markt)
  • Fix: 66385: Correct a bug in HTTP/2 where a non-blocking read for a new frame with the NIO2 connector was incorrectly made using the read timeout leading to unexpected stream closure. (markt)
  • Jasper:
  • Fix: 66370: Change the default of the org.apache.el.GET_CLASSLOADER_USE_PRIVILEGED system property to true unless the EL library is running on Tomcat in which case the default remains false as the EL library is already called from within a privileged block and skipping the unnecessary privileged block improves performance. (markt)
  • Add: Add support for specifying Java 21 (with the value 21) as the compiler source and/or compiler target for JSP compilation. If used with an Eclipse JDT compiler version that does not support these values, a warning will be logged and the default will used. (markt)
  • Other:
  • Update: Update the internal fork of Apache Commons BCEL to 2ee2bff (2023-01-03, 6.7.1-SNAPSHOT). (markt)
  • Update: Update the internal fork of Apache Commons Codec to 3eafd6c (2023-01-03, 1.16-SNAPSHOT). (markt)
  • Update: Update the internal fork of Apache Commons FileUpload to 34eb241 (2023-01-03, 2.0-SNAPSHOT). (markt)
  • Update: Update the internal fork of Apache Commons DBCP to f131286 (2023-01-03, 2.10.0-SNAPSHOT). (markt)
  • Add: Improvements to Japanese translations. Contributed by Shirayuking. (markt)
  • Add: Improvements to Portuguese translations. Contributed by Guilherme Custódio. (markt)
  • Update: Update Checkstyle to 10.6.0. (markt)
  • Update: Update Unboundid to 6.0.7. (markt)
  • Update: Update SpotBugs to 4.7.3. (markt)

New in Apache Tomcat 10.1.4 (Dec 9, 2022)

  • Refactor WebappLoader so it only has a runtime dependency on the migration tool for Jakarta EE if configured to use the converter as classes are loaded.
  • When an HTTP/2 stream was reset, the current active stream count was not reduced. If enough resets occurred on a connection, the current active stream count limit was reached and no new streams could be created on that connection.
  • Update to Commons Daemon 1.3.3.

New in Apache Tomcat 8.5.84 (Nov 22, 2022)

  • Fix concurrency issue in evaluation of expression language containing lambda expressions.
  • Correct the date format used with the expires attribute of HTTP cookies. A single space rather than a single dash should be used to separate the day, month and year components to be compliant with RFC 6265.
  • Update to Commons Daemon 1.3.2.

New in Apache Tomcat 10.1.2 (Nov 14, 2022)

  • Fix concurrency issue in evaluation of expression language containing lambda expressions.
  • Update the packaged version of the Apache Tomcat Native Library to 2.0.2 to pick up the Windows binaries built with with OpenSSL 3.0.7.
  • Correct the date format used with the expires attribute of HTTP cookies. A single space rather than a single dash should be used to separate the day, month and year components to be compliant with RFC 6265.

New in Apache Tomcat 10.1.1 (Oct 11, 2022)

  • Fix bug 66277, a refactoring regression that broke JSP includes amongst other functionality
  • Fix unexpected timeouts that may appear as client disconnections when using HTTP/2 and NIO2
  • Enforce the requirement of RFC 7230 onwards that a request with a malformed content-length header should always be rejected with a 400 response.

New in Apache Tomcat 8.5.83 (Oct 11, 2022)

  • Add support for authenticating WebSocket clients with an HTTP forward proxy when establishing a connection to a WebSocket endpoint via a forward proxy that requires authentication. Based on a patch provided by Joe Mokos.
  • Various fixes for edge case bugs in EL processing.
  • Enforce the requirement of RFC 7230 onwards that a request with a malformed content-length header should always be rejected with a 400 response.

New in Apache Tomcat 10.0.27 (Oct 10, 2022)

  • The Apache Tomcat Project is proud to announce the release of version 10.0.27 of Apache Tomcat. This release implements specifications that are part of the Jakarta EE 9 platform.

New in Apache Tomcat 9.0.68 (Oct 7, 2022)

  • Fix bug 66277, a refactoring regression that broke JSP includes amongst other functionality
  • Fix unexpected timeouts that may appear as client disconnections when using HTTP/2 and NIO2
  • Enforce the requirement of RFC 7230 onwards that a request with a malformed content-length header should always be rejected with a 400 response.

New in Apache Tomcat 10.1.0 (Sep 27, 2022)

  • Add support for authenticating WebSocket clients with an HTTP forward proxy when establishing a connection to a WebSocket endpoint via a forward proxy that requires authentication. Based on a patch provided by Joe Mokos.
  • Various fixes for edge case bugs in EL processing.
  • Improve host header handling for HTTP/2 requests.

New in Apache Tomcat 8.5.82 (Aug 14, 2022)

  • Update the packaged version of the Tomcat Native Library to 1.2.35 to pick up Windows binaries built with OpenSSL 1.1.1q.
  • Enable the use of the FIPS provider for TLS enabled Connectors when using Tomcat Native 1.2.34 onwards built with OpenSSL 3.0.x onwards.
  • Improvements to HTTP/2 header handling.
  • Fix CVE-2022-34305, a low severity XSS vulnerability in the Form authentication example.

New in Apache Tomcat 10.0.23 (Jul 26, 2022)

  • Implement support for repeatable builds
  • Update the packaged version of the Tomcat Native Library to 1.2.35. This includes Windows binaries built with with OpenSSL 1.1.1q.
  • Fix CVE-2022-34305, a low severity XSS vulnerability in the Form authentication example

New in Apache Tomcat 10.0.22 (Jun 13, 2022)

  • Correct a regression in the support added for encrypted PKCS#1 formatted private keys in the previous release that broke support for unencrypted PKCS#1 formatted private keys.
  • Increase the default buffer size for cluster messages from 43800 to 65536 bytes. This is expected to improve performance for large messages when running on Linux based systems.
  • When using TLS with non-blocking writes and the NIO connector, ensure that flushing the buffers attempts to empty all of the output buffers.

New in Apache Tomcat 8.5.81 (Jun 13, 2022)

  • Ensure that changes made to a request by the RemoteIPValve persist after the request is put into asynchronous mode.
  • Correct a regression in the support added for encrypted PKCS#1 formatted private keys in the previous release that broke support for unencrypted PKCS#1 formatted private keys.
  • Increase the default buffer size for cluster messages from 43800 to 65536 bytes. This is expected to improve performance for large messages when running on Linux based systems.
  • When using TLS with non-blocking writes and the NIO connector, ensure that flushing the buffers attempts to empty all of the output buffers.

New in Apache Tomcat 9.0.64 (Jun 9, 2022)

  • Correct a regression in the support added for encrypted PKCS#1 formatted private keys in the previous release that broke support for unencrypted PKCS#1 formatted private keys.
  • Increase the default buffer size for cluster messages from 43800 to 65536 bytes. This is expected to improve performance for large messages when running on Linux based systems.
  • When using TLS with non-blocking writes and the NIO connector, ensure that flushing the buffers attempts to empty all of the output buffers.

New in Apache Tomcat 8.5.79 (May 24, 2022)

  • This release implements specifications that are part of the Java EE 7 platform. The notable changes compared to 8.5.78 include:
  • Provide a property source that sources values from Kubernetes service bindings. Provided by Sumit Kulhadia and Gareth Evans.
  • The root cause of the Linux kernel duplicate accept bug has been identified along with the version of the kernel that includes the fix. The error message displayed when this bug occurs has been updated to reflect this new information and to advise users to update to a version of the OS that uses kernel 5.10 or later. Thanks to Christopher Gual for the research into this issue.
  • Update the packaged version of the Tomcat Native Library to 1.2.33 to pick up Windows binaries built with OpenSSL 1.1.1o.
  • Add support for encrypted PKCS#1 formatted private keys when configuring the internal, in memory key store.

New in Apache Tomcat 8.5.77 (Mar 17, 2022)

  • Fix a potential thread-safety issue that could cause HTTP/1.1 request processing to pause, and potentially timeout, waiting for additional data when the full request has been received.
  • Fix a regression introduced with 65757 bugfix which better identified non-request threads but which introduced a similar problem when user code was doing sequential operations in a single thread.
  • When resolving methods in EL expressions that use beans and/or static fields, ensure that any custom type conversion is considered when identifying the method to call.

New in Apache Tomcat 8.5.76 (Mar 1, 2022)

  • Correct a regression in the fix for 65454 that meant that minSpareThreads and maxThreads settings were ignored when the Connector used an internal executor.
  • Improve the detection of the Linux duplicate accept bug and reduce (hopefully avoid) instances of false positives.
  • Back-port fixes for BZ 65408 to refactor socket-close operations to improve resilience when objects are re-used by applications.

New in Apache Tomcat 9.0.59 (Feb 28, 2022)

  • Add support for additional user attributes to TomcatPrincipal and GenericPrincipal
  • Correct a regression in the fix for 65454 that meant that minSpareThreads and maxThreads settings were ignored when the Connector used an internal executor
  • Improve the detection of the Linux duplicate accept bug and reduce (hopefully avoid) instances of false positives.

New in Apache Tomcat 10.0.17 (Feb 28, 2022)

  • Add support for additional user attributes to TomcatPrincipal and GenericPrincipal.
  • Correct a regression in the fix for 65454 that meant that minSpareThreads and maxThreads settings were ignored when the Connector used an internal executor.
  • Improve the detection of the Linux duplicate accept bug and reduce (hopefully avoid) instances of false positives.

New in Apache Tomcat 9.0.58 (Jan 20, 2022)

  • Add recycling check in the input and output stream isReady to try togive a more informative ISE when the facade has been recycled.
  • Implement support for HTTP/1.1 upgrade when the request includes abody. The maximum permitted size of the body is controlled bymaxSavePostSize.
  • Improve handling of various cases where one request/responseprocessing thread attempts to manage the asynchronous IO for adifferent request/response.

New in Apache Tomcat 8.5.75 (Jan 20, 2022)

  • Changes:
  • Provide protection against a known OS bug that causes the acceptor to report an incoming connection more than once.
  • Implement a workaround for a JVM bug that can trigger a file descriptor leak when using multi-part upload and the application does not explicitly close an input stream for an uploaded file that was cached on disk.
  • Fix several potential JVM crashes when using the APR connector.
  • Add support for HTTP/1.1 upgrade when the request includes a body. The maximum permitted size of the body is controlled by maxSavePostSize.
  • Improve handling of various cases where one request/response processing thread attempts to manage the asynchronous IO for a different request/response.

New in Apache Tomcat 10.1.0-M8 Alpha (Dec 9, 2021)

  • Limit cookie support to RFC 6265 to align with recent updates to the Servlet specification.
  • Update the WebSocket API packaging to remove the copy of the client API from the server API and replace it with a dependency on the client API. This aligns Tomcat with changes in the WebSocket 2.1 specification.
  • Provide protection against a known OS bug that causes the acceptor to report an incoming connection more than once.

New in Apache Tomcat 10.0.14 (Dec 9, 2021)

  • Provide protection against a known OS bug that causes the acceptor to reportan incoming connection more than once
  • Implement a workaround for a JVM bug that can trigger a file descriptor leakwhen using multi-part upload and the application does not explicitly closean input stream for an uploaded file that was cached on disk
  • Fix exceptions when the security manager is enabled and the first requestreceived after starting is an HTTP request to a TLS enabled NIO2connector

New in Apache Tomcat 9.0.56 (Dec 8, 2021)

  • Provide protection against a known OS bug that causes the acceptor to report an incoming connection more than once.
  • Implement a workaround for a JVM bug that can trigger a file descriptor leak when using multi-part upload and the application does not explicitly close an input stream for an uploaded file that was cached on disk.
  • Fix exceptions when the security manager is enabled and the first request received after starting is an HTTP request to a TLS enabled NIO2 connector.

New in Apache Tomcat 10.1.0-M7 Alpha (Nov 16, 2021)

  • Catalina:
  • Code: Refactor HttpServlet so the default doHead() implementation now calls doGet() and relies on the container to ensure that the response body is not sent. The previous behaviour (wrapping the response) may be enabled per Servlet by setting the jakarta.servlet.http.legacyDoHead Servlet initialisation parameter to true. This aligns Tomcat with recent changes updates for Servlet 6.0 in the Jakarta Servlet specification project. (markt)
  • Add: Add support for setting generic attributes for session cookies. This aligns Apache Tomcat with recent changes in the Jakarta Servlet specification project. (markt)
  • Fix: Do not add a trailing / to a request URI during canonicalization. (markt)
  • Fix: Invalid byte sequences (typically in %nn form) in a request URi that are not valid for the given URI encoding now trigger a 400 response. (markt)
  • Fix: Ensure that a request URI starts with a /. (markt)
  • Add: Add a new Connector option, rejectSuspiciousURIs that will causes 'suspicious' (see the Servlet 6.0 specification) URIs to be rejected with a 400 response. (markt)
  • Fix: Improve robustness of JNDIRealm for exceptions occurring when getting the connection. Also add missing close when running into issues getting the passord of a user. (remm)
  • Docs: Add Javadoc comment which listeners must be nested whithin Server elements only. (michaelo)
  • Add: Add support for custom caching strategies for web application resources. This initial implementation allows control over whether or not a resource is cached. (markt)
  • Coyote:
  • Code: Improve performance of Connector shutdown - primarily to reduce the time it takes to run the test suite. (markt)
  • Add: #457: Add a toString() method to MimeHeader to aid debugging. (dblevins)
  • Jasper:
  • Update: Regenerate the EL parser using JavaCC 7.0.10. (markt)
  • Fix: Fix a bug that prevented the EL parser correctly parsing a literal Map that used variables rather than literals for both keys and values. (markt)
  • Update: Ensure that the getType() method of any ELResolver implementation returns null if either the ELResolver or the resolved property is read-only to align Tomcat with recent updates in the Jakarta EL specification project. (markt)
  • Fix: Implement an alternative solution to support the JSP page directive attribute isThreadSafe now that the SingleThreadModel interface has been removed from the Servlet API. The new approach synchronizes the service() method.
  • Add: Add experimental OpenSSL support through the Panama API incubating in Java 17, with support for OpenSSL 1.1+. This no longer requires tomcat-native or APR. Please refer to the openssl-java17 module for more details. (remm)
  • WebSocket:
  • Update: Add a new method ServerEndpointConfig.Configurator.getContainerDefaultConfigurator() to align with recent updates in the WebSocket specification project. (markt)
  • Update: Add a new method ServerContainer.upgradeHttpToWebSocket() to align with recent updates in the WebSocket specification project. (markt)
  • Tribes:
  • Fix: #454: Differentiate warning messages in KubernetesMembershipProvider so that the missing attribute is clear to the user. PR provided by Hal Deadman. (markt)
  • Other:
  • Fix: Switch from Cobertura to JaCoCo for code coverage as Cobertura does not support code coverage for code compiled for Java 11 onwards. It also removes the need to use a single thread to run the tests. (markt)

New in Apache Tomcat 10.0.13 (Nov 16, 2021)

  • Experimental OpenSSL support through the Panama API incubating in Java 17,with support for OpenSSL 1.1+
  • Add support for custom caching strategies for web application resources.This initial implementation allows control over whether or not a resource iscached
  • Improve robustness of JNDIRealm for exceptions occurring when getting theconnection

New in Apache Tomcat 9.0.55 (Nov 16, 2021)

  • Experimental OpenSSL support through the Panama API incubating in Java 17, with support for OpenSSL 1.1+.
  • Add support for custom caching strategies for web application resources. This initial implementation allows control over whether or not a resource is cached.
  • Improve robustness of JNDIRealm for exceptions occurring when getting the connection.

New in Apache Tomcat 8.5.72 (Oct 10, 2021)

  • Further robustness improvements to HTTP/2 flow control window management
  • Fix an issue that caused some Servlet non-blocking API reads of the HTTP request body to incorrectly use blocking IO

New in Apache Tomcat 9.0.54 (Oct 4, 2021)

  • Further robustness improvements to HTTP/2 flow control windowmanagement
  • Improvements to the DataSourceUserDatabase
  • Fix an issue that caused some Servlet non-blocking API reads of theHTTP request body to incorrectly use blocking IO

New in Apache Tomcat 10.1.0-M6 Alpha (Oct 4, 2021)

  • Servlet API updates for Servlet 6 including removal of all deprecatedcode, updated schemas and a new API for connection and request IDs
  • EL API updates for EL 5.0 including deprecation of the use ofFeatureDescriptor, improvements to BeanELResolver and the addition ofMethodReference
  • Further robustness improvements to HTTP/2 flow control windowmanagement

New in Apache Tomcat 8.5.71 (Sep 14, 2021)

  • Update the internal fork of Apache Commons DBCP to 2.9.0, Apache Commons Pool to 2.9.1, Apache Commons FileUpload to 2.0, and Apache Commons Codec to 1.16.
  • Update the packaged version of the Tomcat Native Library to 1.2.31 to pick up Windows binaries built with OpenSSL 1.1.1l.
  • Correct parsing of Content-Range headers

New in Apache Tomcat 9.0.53 (Sep 13, 2021)

  • Add a UserDatabase implementation as a superset of the DataSourceRealm functionality
  • Update the internal fork of Apache Commons DBCP to 2.9.0 and Apache Commons Pool to 2.11.1
  • Update the packaged version of the Tomcat Native Library to 1.2.31 to pick up Windows binaries built with OpenSSL 1.1.1l

New in Apache Tomcat 10.0.11 (Sep 13, 2021)

  • Add a UserDatabase implementation as a superset of the DataSourceRealm functionality.
  • Update the internal fork of Apache Commons DBCP to 2.9.0 and Apache Commons Pool to 2.11.1
  • Update the packaged version of the Tomcat Native Library to 1.2.31 to pick up Windows binaries built with OpenSSL 1.1.1l.

New in Apache Tomcat 8.5.70 (Aug 17, 2021)

  • The notable changes compared to 8.5.69 include:
  • Correct a regression in the previous release in the HTTP/2 flow controlwindow management along with additional improvements to HTTP/2 flow control
  • Make the CorsFilter simpler to extend
  • To avoid unnecessary cache revalidation, do not add an HTTP Expires headerwhen setting adding an HTTP header of CacheControl: private

New in Apache Tomcat 8.5.69 (Jul 7, 2021)

  • Re-work the HTTP/2 overhead protection to reduce the likelihood offalse positives. Note that the default overheadCountFactor has changedfrom 1 to 10 and that the useful range is now 0 to ~20
  • Fix regressions in JSP compilation in the previous release
  • Improve HTTP header parsing to ignore empty elements in 1#tokenvalues, as per RFC 7230 section 7

New in Apache Tomcat 10.1.0-M2 Alpha (Jul 5, 2021)

  • Catalina:
  • Code: Refactor the RemoteIpValve to use the common utility method for list to comma separated string conversion. (markt)
  • Code: Refactor JNDIRealm$JNDIConnection so its fields are accessible to sub-classes of JNDIRealm. (markt)
  • Fix: Fix serialization warnings in UserDatabasePrincipal reported by SpotBugs. (markt)
  • Fix: 65397: Calls to ServletContext.getResourcePaths() no longer include symbolic links in the results unless allowLinking has been set to true. If a resource is skipped because of this change, a warning will be logged as this typically indicates a configuration issue. (markt)
  • Coyote:
  • Fix: 65368: Improve handling of clean closes of inbound TLS connections. Treat them the same way as clean closes of non-TLS connections rather than as unknown errors. (markt)
  • Fix: Modify the HTTP/2 connector not to sent small updates for stream flow control windows to the user agent as, depending on how the user agent is written, this may trigger small writes from the user agent that in turn trigger the overhead protection. Small updates for stream flow control windows are now combined with subsequent flow control window updates for that stream to ensure that all stream flow control window updates sent from Tomcat are larger than overheadWindowUpdateThreshold. (markt)
  • Add: Add additional debug logging to track the current state of the HTTP/2 overhead count that Tomcat uses to detect and close potentially malicious connections. (markt)
  • Update: Many HTTP/2 requests from browsers will trigger one overhead frame and one non-overhead frame. Change the overhead calculation so that a non-overhead frame reduces the current overhead count by 2 rather than 1. This means that, over time, the overhead count for a well-behaved connection will trend downwards. (markt)
  • Update: Change the initial HTTP/2 overhead count from -10 to -10 * overheadCountFactor. This means that, regardless of the value chosen for overheadCountFactor, when a connection opens 10 overhead frames in a row will be required to trigger the overhead protection. (markt)
  • Update: Increase the default overheadCountFactor from 1 to 10 and change the reduction in overhead count for a non-overhead frame from -2 to -20. This allows for a larger range (0-20) to be used for overheadCountFactor providing for finer-grained control. (markt)
  • Fix: Modify the parsing of HTTP header values that use the 1#token to ignore empty elements as per RFC 7230 section 7 instead of treating the presence of empty elements as an error. (markt)
  • Fix: Expand the unit tests for HttpServlet.doHead() and correct the flushing of the response buffer. The buffer used to behave as if it was one byte smaller than the configured size. The buffer was flushed (and the response committed if required) when the buffer was full. The buffer is now flushed (and the response committed if required) if the buffer is full and there is more data to write. (markt)
  • Fix: Fix an issue where concurrent HTTP/2 writes (or concurrent reads) to the same connection could hang and eventually timeout when async IO was enabled (it is enabled by default). (markt)
  • Jasper:
  • Fix: 65387: Correct a regression in the fix for 65124 and restore the local definition of out for tags that implement TryCatchFinally. (markt)
  • Fix: 65390: Correct a regression in the fix for 65124 and restore code that was removed in error leading to JSP compilation failures in some circumstances. (markt)
  • Update: Update to the Eclipse JDT compiler 4.20. (markt)
  • Add: Add support for specifying Java 17 (with the value 17) as the compiler source and/or compiler target for JSP compilation. If used with an Eclipse JDT compiler version that does not support these values, a warning will be logged and the latest supported version will used. (markt)
  • Fix: 65377: Update the Java code generation for JSPs not to use the boxed primitive constructors as they have been deprecated in Java 9 and marked for future removal in Java 16. valueOf() is now used instead. (markt)
  • WebSocket:
  • Code: Refactor the DigestAuthenticator to reuse a shared SecureRandom instance rather than create a new one to generate the cnonce if required. (markt)
  • Web applications:
  • Fix: 65385: Correct the link in the documentation web application the Maven Central repository. (markt)
  • Other:
  • Add: Use JSign to integrate the build script with the code signing service to enable release builds to be created on Linux as well as Windows. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.23. (remm)
  • Update: Update the CXF module to Apache CXF 3.4.4. (remm)
  • Fix: 65369 / #422: Add the additional --add-opens=... options required for running Tomcat on Java 16 onwards to the service.bat script to align it with the other start-up scripts. PR provided by MCMicS. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)
  • Update: Update JUnit to version 4.13.2. (markt)
  • Update: Update EasyMock to 4.3. (markt)
  • Update: Update Objenesis to 3.2. (markt)
  • Update: Update UnboundID to 6.0.0. (markt)
  • Update: Update CheckStyle to 8.43. (markt)
  • Update: Update SpotBugs to 4.2.3. (markt)
  • Update: Update OSGi annotations to 1.1.0. (markt)

New in Apache Tomcat 9.0.48 (Jun 17, 2021)

  • Improve robustness of HTTP/2 HPACK decoding.
  • Improvements to the handling of the Transfer-Encoding header.
  • Review code used to generate Java source from JSPs and tags and remove code found to be unnecessary.
  • Backport the updated blocking NIO code and optimizations from Tomcat 10.0.

New in Apache Tomcat 8.5.68 (Jun 15, 2021)

  • Improve robustness of HTTP/2 HPACK decoding
  • Improvements to the handling of the Transfer-Encoding header
  • Review code used to generate Java source from JSPs and tags and remove code found to be unnecessary.

New in Apache Tomcat 8.5.66 (May 13, 2021)

  • Catalina:
  • Code: Expand coverage of unit tests for JNDIRealm using the UnboundID LDAP SDK for Java. (markt)
  • Fix: 65224: Ensure the correct escaping of attribute values and search filters in the JNDIRealm. (markt)
  • Fix: 65235: Add missing attributes to the MBean descriptor file for the RemoteIpValve. (markt)
  • Fix: 65244: HandlesTypes should include classes that use the specified annotation types on fields or methods. (remm)
  • Fix: 65251: Correct a regression introduced in 8.5.64 that meant that the auto-deployment process may attempt a second, concurrent deployment of a web application that is being deployed by the Manager resulting in one of the deployments failing and errors being reported. (markt)
  • Coyote:
  • Fix: Ensure that all HTTP requests that contain an invalid character in the protocol component of the request line are rejected with a 400 response rather than some requests being rejected with a 505 response. (markt)
  • Fix: When generating the error message for an HTTP request with an invalid request line, ensure that all the available data is included in the error message. (markt)
  • Fix: 65272: Restore the optional HTTP feature that allows LF to be treated as a line terminator for the request line and/or HTTP headers lines as well as the standard CRLF. This behaviour was previously removed as a side-effect of the fix for CVE-2020-1935. (markt)
  • Jasper:
  • Code: Review code used to generate Java source from JSPs and tags and remove code found to be unnecessary. (markt)
  • Update: <servlet> entries in web.xml that include a <jsp-file> element and a negative <load-no-startup> element that is not the default value of -1 will no longer be loaded at start-up. This makes it possible to define a <jsp-file> that will not be loaded at start-up. (markt)
  • Fix: Allow the JSP configuration option useInstanceManagerForTags to be used with Tags that are implemented as inner classes. (markt)
  • WebSocket:
  • Code: Refactor the way Tomcat passes path parameters to POJO end points to simplify the code. (markt)
  • Fix: 65262: Refactor the creation of WebSocket end point, decoder and encoder instances to be more IoC friendly. Instances are now created via the InstanceManager where possible. (markt)
  • Web applications:
  • Fix: 65235: Correct name of changeLocalName in the documentation for the RemoteIpValve. (markt)
  • Fix: 65265: Avoid getting the boot classpath when it is not available in the Manager diagnostics. (remm)
  • Other:
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.28. (markt)
  • Fix: Move SystemPropertySource to be a regular class to allow more precise configuration if needed. The system property source will still always be enabled. (remm)
  • Add: Improvements to Chinese translations. Provided by bytesgo. (mark)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)

New in Apache Tomcat 9.0.46 (May 13, 2021)

  • The Apache Tomcat Project is proud to announce the release of version 9.0.46 of Apache Tomcat. This release implements specifications that are part of the Java EE 8 platform. The notable changes compared to 9.0.45 include:
  • Ensure the correct escaping of attribute values and search filters in the JNDIRealm.
  • HandlesTypes should include classes that use the specified annotation types on fields or methods.
  • Refactor the creation of WebSocket end point, decoder and encoder instances to be more IoC friendly. Instances are now created via the InstanceManager where possible.

New in Apache Tomcat 10.0.6 (May 13, 2021)

  • Ensure the correct escaping of attribute values and search filters in the JNDIRealm.
  • HandlesTypes should include classes that use the specified annotation types on fields or methods.
  • Refactor the creation of WebSocket end point, decoder and encoder instances to be more IoC friendly. Instances are now created via the InstanceManager where possible.

New in Apache Tomcat 7.0.109 (Apr 28, 2021)

  • Catalina:
  • Ensure the correct escaping of attribute values and search filters in the JNDIRealm. (markt)
  • Fix extraction of JAR name in some cases in StandardJarScanner. Submitted by Lynx. (remm)
  • Add missing attributes to the MBean descriptor file for the RemoteIpValve. (markt)
  • Web applications:
  • Correct name of changeLocalName in the documentation for the RemoteIpValve. (markt)
  • Other:
  • Improvements to Korean translations.
  • Improvements to Russian translations.
  • Improvements to Chinese translations.
  • Improvements to Japanese translations.
  • Update the packaged version of the Tomcat Native Library to 1.2.28.

New in Apache Tomcat 10.0.5 (Apr 8, 2021)

  • Catalina:
  • Fix: Avoid NPE when a JNDI reference cannot be resolved in favor of a NamingException. (remm)
  • Fix: Avoid using reflection for setting properties on the webapp classloader. Based on a patch submitted by Romain Manni-Bucau. (remm)
  • Coyote:
  • Fix: Improve consistency of OpenSSL error stack handling in the TLS engine, and log all errors found as debug. (remm)
  • Fix: Ensure that HTTP/2 streams are only recycled once as multiple attempts to recycle an HTTP/2 stream may result in NullPointerExceptions. (markt)
  • Code: Simplify the closing on an HTTP/2 stream when an error condition is present. (markt)
  • Fix: 64771: Prevent concurrent calls to ServletInputStream.isReady() corrupting the input buffer. (markt)
  • Fix: 65179: Ensure that the connection level flow control window from the client to the server is updated when handling DATA frames received for completed streams else the flow control window may become exhausted. (markt)
  • Fix: 65203: Fix a regression introduced in 10.0.4 that meant that an error during an asynchronous read broke all future asynchronous reads associated with the same request instance. (markt)
  • Fix: Disable keep-alive when inconsistent content delimitation is present in a request. (remm)
  • Jasper:
  • Fix: Include the new org.apache.jasper.optimizations package in the list of OSGi exported packages for the Jasper embedded JAR. Patch provided by Sokratis Zappis. (markt)
  • Add: Add a new option for the trimSpaces configuration. extended will attempt to remove leading and trailing whitespace from template text and collapse sequences of whitespace and newlines within template text into a single new line. Based on a pull request by kamnani. (markt)
  • Other:
  • Add: Implement the first phase of reproducible builds. Sequential builds on the same machine now produce identical output provided that the Ant property ant.tstamp.now.iso is set. The minimum required Ant version is now 1.9.10. (markt)
  • Add: Improvements to Chinese translations. Provided by Ruan Wenjun. (mark)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Japanese translations. Provided by kfujino and Shirayuking. (markt)
  • Add: Improvements to Korean translations. (woonsan)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.27. (markt)

New in Apache Tomcat 7.0.108 (Feb 8, 2021)

  • Fix a potential file descriptor leak when WebSocket connections are attempted and fail. Patch provided by Maurizio Adami.

New in Apache Tomcat 8.5.63 (Feb 3, 2021)

  • Add a new StringInterpreter interface that allows applications to provide customised string attribute value to type conversion within JSPs. This allows applications to provide a conversion implementation that is optimised for the application.
  • Add peerAddress to coyote request, which contains the IP address of the direct connection peer. If a reverse proxy sits in front of Tomcat and the RemoteIp(Valve|Filter) is used, the peerAddress is likely to differ from the remoteAddress. The remoteAddress is likely to contain the address of the client in front of the reverse proxy, not the address of the proxy itself.
  • Escape elements in the access log that need to be escaped for the access log to be parsed unambiguously.

New in Apache Tomcat 8.5.61 (Dec 9, 2020)

  • Catalina:
  • Update the RemoteIpValve and RemoteIpFilter so that calls to ServletRequest.getRemoteHost() are consistent with the return value of ServletRequest.getRemoteAddr() rather than always returning a value for the proxy.
  • Align the behaviour of ServletContext.getRealPath(String path) with the recent clarification from the Servlet specification project. If the path parameter does not start with / then Tomcat processes the call as if / is appended to the beginning of the provided path.
  • Ensure that the LoadBalancerDrainingValve uses the correct setting for the secure attribute for any session cookies it creates. Based on a pull request by Andreas Kurth.
  • Don't assume that the Upgrade header has been set on the HttpServletResponse before any call is made to HttpServletRequest.upgrade().
  • Ensure that values are not duplicated when manipulating the vary header. Based on a pull request by Fredrik Fall.
  • Coyote:
  • Ensure that the bytesSent metric is correctly updated when compression is enabled.
  • WebSocket:
  • Fix a potential file descriptor leak when WebSocket connections are attempted and fail. Patch provided by Maurizio Adami.
  • Web applications:
  • Correct a regression in the addition of the HTTP header security filter to the examples web application that prevented the Servlet examples that depend on the asynchronous API from functioning correctly.
  • Tribes:
  • Start all core threads when starting the receiver and dispatch interceptor.
  • Other:
  • Implement validation of changelog.xml file at build time.
  • Update: Update to Maven Ant Resolver Tasks 1.3.0.
  • Provide SHA-256 and SHA-512 checksums for files published via Maven.

New in Apache Tomcat 9.0.40 (Nov 18, 2020)

  • Statistics are now available (via JMX) for HTTP/2, WebSocket and HTTP/1.1 upgraded connections
  • Stability improvements for HTTP/2
  • Stability improvements for the NIO connector

New in Apache Tomcat 8.5.60 (Nov 18, 2020)

  • Statistics are now available (via JMX) for HTTP/2, WebSocket and HTTP/1.1 upgraded connections
  • Stability improvements for HTTP/2
  • Improvements to error handling in the connection pool used by the JNDI Realm

New in Apache Tomcat 10.0.0-M9 Alpha (Oct 12, 2020)

  • The notable changes in this release are:
  • Refactor the handling of closed HTTP/2 streams to reduce the heap usage associated with used streams and to retain information for more streams in the priority tree.
  • Allow using the utility executor for annotation scanning. Patch provided by Jatin Kamnani.
  • Add a bloom filter to speed up archive lookup and improve deployment speed of applications with a large number of JARs. Patch provided by Jatin Kamnani.

New in Apache Tomcat 10.0.0-M8 Alpha (Sep 16, 2020)

  • or requests containing the Expect: 100-continue header, optional support has been added to delay sending an intermediate 100 status response until the servlet reads the request body, allowing the servlet the opportunity to respond without asking for the request body. Based on a pull request by malaysf.
  • Add support for a read idle timeout and a write idle timeout to the WebSocket session via custom properties in the user properties instance associated with the session. Based on a pull request by sakshamverma.
  • Update the packaged version of the Tomcat Native Library to 1.2.25

New in Apache Tomcat 9.0.38 (Sep 16, 2020)

  • For requests containing the Expect: 100-continue header, optional support has been added to delay sending an intermediate 100 status response until the servlet reads the request body, allowing the servlet the opportunity to respond without asking for the request body. Based on a pull request by malaysf.
  • Add support for a read idle timeout and a write idle timeout to the WebSocket session via custom properties in the user properties instance associated with the session. Based on a pull request by sakshamverma.
  • Update the packaged version of the Tomcat Native Library to 1.2.25

New in Apache Tomcat 8.5.58 (Sep 16, 2020)

  • For requests containing the Expect: 100-continue header, optional support has been added to delay sending an intermediate 100 status response until the servlet reads the request body, allowing the servlet the opportunity to respond without asking for the request body. Based on a pull request by malaysf.
  • Add support for a read idle timeout and a write idle timeout to the WebSocket session via custom properties in the user properties instance associated with the session. Based on a pull request by sakshamverma.
  • Update the packaged version of the Tomcat Native Library to 1.2.25

New in Apache Tomcat 7.0.105 (Jul 9, 2020)

  • Add support for the CATALINA_OUT_CMD environment variable that defines a command to which captured stdout and stderr will be redirected. For use with, for example, rotatelogs.

New in Apache Tomcat 9.0.37 (Jul 6, 2020)

  • Implement a significant portion of the TLS environment variables for the rewrite valve.
  • Improvements to the creation of OSGi manifests.
  • Reduce the memory footprint of closed HTTP/2 streams
  • Improve parsing of RFC 2109 cookies

New in Apache Tomcat 8.5.57 (Jul 6, 2020)

  • Improvements to the creation of OSGi manifests.
  • Reduce the memory footprint of closed HTTP/2 streams

New in Apache Tomcat 7.0.104 (Jul 6, 2020)

  • Add support for default values when using ${...} property replacement in configuration files. Based on a pull request provided by Bernd Bohmann.
  • When configuring an HTTP Connector, warn if the encoding specified for URIEncoding is not a superset of US-ASCII as required by RFC 7230.
  • Replace the system property org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH with the Connector attribute encodedSolidusHandling that adds an additional option to pass the %2f sequence through to the application without decoding it in addition to rejecting such sequences and decoding such sequences.
  • Change default value separator for property replacement to ":-" due to possible conflicts. The syntax is now "${name:-default}".
  • Update the packaged version of the Tomcat Native Library to 1.2.24.

New in Apache Tomcat 10.0.0-M7 Alpha (Jul 6, 2020)

  • The notable changes in this release are:
  • Implement a significant portion of the TLS environment variables for the rewrite valve.
  • Add the Jakarta EE 9 schema.
  • Improvements to the creation of OSGi manifests.

New in Apache Tomcat 9.0.36 (Jun 8, 2020)

  • Add support for ALPN on recent OpenJDK 8 releases.
  • Add support for the CATALINA_OUT_CMD environment variable that defines a command to which captured stdout and stderr will be redirected. For use with, for example, rotatelogs. Patch provided by Harald Dunkel.
  • Be more flexible with respect to the ordering of groups, roles and users in the tomcat-users.xml file

New in Apache Tomcat 10.0.0-M4 Alpha (Apr 25, 2020)

  • Catalina:
  • Fix: Ensure all URL patterns provided via web.xml are %nn decoded consistently using the encoding of the web.xml file where specified and UTF-8 where no explicit encoding is specified. (markt)
  • Update: Allow a comma separated list of class names for the org.apache.tomcat.util.digester.PROPERTY_SOURCE system property. (remm)
  • Fix: 64149: Avoid NPE when using the access log valve without a pattern. (remm)
  • Fix: 64226: Reset timezone after parsing a date since the date format is reused. Test case submitted by Gary Thomas. (remm)
  • Fix: 64247: Using a wildcard for jarsToSkip should not override a possibly present jarsToScan. Based on code submitted by Iridias. (remm)
  • Update: Refactor DefaultServlet to avoid using an internal Range structure that is duplicated from the parsing result. (remm)
  • Update: Remove org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH system property, replaced by the allowBackslash attribute on the Connector. (remm)
  • Update: Remove org.apache.catalina.connector.Response.ENFORCE_ENCODING_IN_GET_WRITER system property, replaced by the enforceEncodingInGetWriter attribute on the Connector. (remm)
  • Update: Remove org.apache.catalina.session.StandardSession.ACTIVITY_CHECK system property, replaced by the sessionActivityCheck attribute on the Manager. (remm)
  • Update: Remove org.apache.catalina.session.StandardSession.LAST_ACCESS_AT_START system property, replaced by the sessionLastAccessAtStart attribute on the Manager. (remm)
  • Update: Remove org.apache.catalina.core.StandardHostValve.ACCESS_SESSION system property, replaced by the alwaysAccessSession attribute on the Context. (remm)
  • Update: Remove org.apache.catalina.core.ApplicationContext.GET_RESOURCE_REQUIRE_SLASH system property, replaced by the contextGetResourceRequiresSlash attribute on the Context. (remm)
  • Update: Remove org.apache.catalina.core.ApplicationDispatcher.WRAP_SAME_OBJECT system property, replaced by the dispatcherWrapsSameObject attribute on the Context. (remm)
  • Fix: 64265: Fix ETag comparison performed by the default servlet. The default servley always uses weak comparison. (markt)
  • Update: Remove org.apache.catalina.authenticator.Constants.SSO_SESSION_COOKIE_NAME system property, replaced by the cookieName attribute on the SSO valve. (remm)
  • Fix: Add support for default values when using ${...} property replacement in configuration files. Based on a pull request provided by Bernd Bohmann. (markt)
  • Coyote:
  • Fix: When closing a NIO channel, avoid canceling keys as a workaround for deadlocks when running on Java 11. Excessive internal NIO synchronization on channel close is resolved starting with this Java version. (remm)
  • Add: When configuring an HTTP Connector, ensure that the encoding specified for URIEncoding is a superset of US-ASCII as required by RFC7230. (markt)
  • Fix: Avoid always retrieving the NIO poller selection key when processing to reduce sync. (remm)
  • Fix: 64240: Ensure that HTTP/0.9 requests that contain additional data on the request line after the URI are treated consistently. Such requests will now always be treated as HTTP/1.1. (markt)
  • Add: Expose the HTTP/2 connection ID and stream ID to applications via the request attributes org.apache.coyote.connectionID and org.apache.coyote.streamID respectively. (markt)
  • Add: Replace the system property org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH with the Connector attribute encodedSolidusHandling that adds an additional option to pass the %2f sequence through to the application without decoding it in addition to rejecting such sequences and decoding such sequences. (markt)
  • Add: Expose the associated HttpServletRequest to the CookieProcessor when generating a cookie header so the header can be tailored based on the properties of the request, such as the user agent, if required. Based on a patch by Lazar Kirchev. (markt)
  • Jasper:
  • Update: Update to the Eclipse JDT compiler 4.15. (markt)
  • Add: Add support for specifying Java 14 (with the value 14) and Java 15 (with the value 15) as the compiler source and/or compiler target for JSP compilation. If used with an ECJ version that does not support these values, a warning will be logged and the latest supported version will used. (markt)
  • Update: Remove Jasper configuration using system properties and replace them by a new set of JSP Servlet init parameters. (remm)
  • Web applications:
  • Fix: Correct the documentation web application to remove references to the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property changing the default for the URIEncoding attribute of the Connector. (markt)
  • Fix: Correct the documentation web application to remove references to the org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH system property changing how the sequence %5c is interpretted in a URI. (markt)
  • Tribes:
  • Code: Remove support for the deprecated system property org.apache.catalina.tribes.dns_lookups. The default value of false will now always be used. (markt)
  • Other:
  • Add: Improve the quality and expand the coverage of the French translations provided with Apache Tomcat. Contribution provided by Tom Bens. (remm)
  • Add: Expand the coverage of the Chinese translations provided with Apache Tomcat. Contribution provided by Lee Yazhou. (markt)
  • Fix: 64270: Set the documented default umask of 0027 when using jsvc via daemon.sh and allow the umask used to be configured via the UMASK environment variable as it is when using catalina.sh. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.16. (remm)
  • Update: Update the CXF module to Apache CXF 3.3.6. (remm)
  • Fix: Remove the LOGGING_CONFIG environment variable and replace it with the CATALINA_LOGGING_CONFIG environment variable to avoid clashes with other components that use LOGGING_CONFIG. (markt)

New in Apache Tomcat 9.0.34 (Apr 9, 2020)

  • Add support for default values when using ${...} property replacement in configuration files. Based on a pull request provided by Bernd Bohmann.
  • When configuring an HTTP Connector, warn if the encoding specified for URIEncoding is not a superset of US-ASCII as required by RFC 7230.
  • Replace the system property org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH with the Connector attribute encodedSolidusHandling that adds an additional option to pass the %2f sequence through to the application without decoding it in addition to rejecting such sequences and decoding such sequences.

New in Apache Tomcat 9.0.33 (Mar 17, 2020)

  • Add new attribute persistAuthentication to both StandardManager and PersistentManager to support authentication persistence. Patch provided by Carsten Klein
  • A zero length AJP secret will now behave as if it has not been specified.
  • Add the TLS request attributes used by IIS to the attributes that an AJP Connector will always accept.

New in Apache Tomcat 7.0.100 (Feb 24, 2020)

  • AJP defaults changed to listen the loopback address, require a secret and to be disabled in the sample server.xml file. If you are using the AJP protocol, please refer to the Migration Guide and update your configuration.
  • The JmxRemoteLifecycleListener is now deprecated
  • The HTTP Connector attribute rejectIllegalHeaderName is renamed to rejectIllegalHeader and expanded to include header values as well as names

New in Apache Tomcat 9.0.31 (Feb 12, 2020)

  • Catalina:
  • Update: Do not store username and password as session notes during authentication if they are not needed. (kkolinko)
  • Fix: Avoid useless environment restore when not using GSSCredential in JNDIRealm. (remm)
  • Fix: 58577: Respect the argument-count when searching for MBean operations to invoke via the JMXProxyServlet. (schultz)
  • Update: 63691: Skip all jar and directory scanning when the wildcard pattern "*" or "*.jar" is set or added to tomcat.util.scan.StandardJarScanFilter.jarsToSkip. (isapir)
  • Fix: 64005: Correct a regression in the static resource caching changes introduced in 9.0.28. Avoid a NullPointerException when working with the URL provided for the root of a packed WAR. (markt)
  • Fix: 64006: Provide default configuration source based on the current directory if none has been set, for full compatibility with existing code. (remm)
  • Fix: 64008: Clarify/expand the Javadoc for the Tomcat#addWebapp() and related methods. (markt)
  • Code: Deprecate the JmxRemoteLifecycleListener as the features it provides are now available in the remote JMX capability included with the JRE. This listener will be removed in Tomcat 10 and may be removed from Tomcat 9.0.x some time after 2020-12-31. (markt)
  • Fix: 64011: JNDIRealm no longer authenticates to LDAP. (michaelo)
  • Fix: 64021: Ensure that container provided SCIs are always loaded before application provided SCIs. Note that where both the container and the application provide the same SCI, it is the application provided SCI that will be used. (markt)
  • Fix: SCI definitions from JARs unpacked into WEB-INF/classes are now handled consistently and will always be found irrespective of whether the web application defines a JAR ordering or not. (markt)
  • Fix: 64023: Skip null-valued session attributes when deserializing sessions. (schultz)
  • Fix: Do not throw a NullPointerException when an MBean or operation cannot be found by the JMXProxyServlet. (schultz)
  • Update: 64067: Allow more than one parameter when defining RewriteMaps. (fschumacher)
  • Fix: 64074: InputStreams for directories obtained from resource URLs now return a directory listing consistent with the behaviour of FileURLConnection. In addition to restoring the behaviour that was lost as a result of the introduction of CachedResourceURLConnection, it expands the feature to include packedWARs and to take account of resource JARs. (markt)
  • Update: Refactor recycle facade system property into a new connector attribute named discardFacades. (remm)
  • Fix: 64089: Add ${...} property replacement support to XML external entity definitions. (markt)
  • Code: Deprecate MappingData.contextPath as it is unused. (markt)
  • Fix: Fix a problem that meant that remote host, address and port information could be missing in the access log for an HTTP/2 request where the connection was closed unexpectely.
  • Coyote:
  • Update: Simplify NIO blocking read and write. (remm)
  • Fix: Ensure that Servlet Asynchronous processing timeouts fire when requests are made using HTTP/2. (markt)
  • Fix: Fix the corrupton of the TLS configuration when using the deprecated TLS attributes on the Connector if the configuration has already been set via the new SSLHostConfig and SSLHostConfigCertificate elements. (markt)
  • Fix: 63966: Switch the message shown when using HTTP to connect to an HTTPS port from ISO-8859-1 to UTF-8. (markt)
  • Fix: 64007: Cancel selection key in poller before wrapper close to avoid possible deadlock. (remm)
  • Add: Add support for RFC 5915 formatted, unencrypted EC key files when using a JSSE based TLS connector. (markt)
  • Fix: Correct a regression introduced in 9.0.28 that meant invalid tokens in the Transfer-Encoding header were ignored rather than treated as an error. (markt)
  • Fix: Rename the HTTP Connector attribute rejectIllegalHeaderName to rejectIllegalHeader and expand the underlying implementation to include header values as well as names. (markt)
  • Update: Disable (comment out in server.xml) the AJP/1.3 connector by default. (markt)
  • Update: Change the default bind address for the AJP/1.3 connector to be the loopback address. (markt)
  • Add: Rename the requiredSecret attribute of the AJP/1.3 Connector to secret and add a new attribute secretRequired that defaults to true. When secretRequired is true the AJP/1.3 Connector will not start unless the secret attribute is configured to a non-null, non-zero length String. (markt)
  • Add: Add a new attribute, allowedRequestAttributesPattern to the AJP/1.3 Connector. Requests with unrecognised attributes will be blocked with a 403. (markt)
  • Jasper:
  • Fix: Update the performance optimisation for using expressions in tags that depend on uninitialised tag attributes with implied scope to make the performance optimisation aware of the new public class (java.lang.Record) added in Java 14. (markt)
  • Fix: 64097: Replace the faulty custom services lookup used for ExpressionFactory implementations with ServiceLoader. (markt)
  • Add: Add a META-INF/services entry to jasper-el.jar so that the Expression Language implementation can be discovered via the services API. (markt)
  • Cluster:
  • Fix: 64043: Ensure that session ID changes are replicated during form-authentication. (kfujino)
  • Web applications:
  • Fix: 64000: In the examples web application, where a Servlet example includes ii18n support, the Locale used should be based on the request locale and not the server locale. (markt)
  • Add: Add additional information on securing AJP/1.3 Connectors. (markt)
  • Other:
  • Fix: 63995: Ensure statements are closed when a pooled JDBC connection is passivated in Tomcat's fork of Commons DBCP2. (markt)

New in Apache Tomcat 8.5.50 (Dec 13, 2019)

  • Correct multiple regressions in the static resource caching related to using URLs provided for cached resources
  • Improvements to the Realm interface and implementations
  • Bug fixes and improvements to the CORS filter

New in Apache Tomcat 8.5.46 (Sep 20, 2019)

  • Update to Commons Daemon 1.2.1 to pick up fixes for regressions in Commons Daemon 1.2.0, most notably a failure to start when using a 32-bit JVM on Windows.
  • Avoid an NPE when accessing an https port using http.
  • Fix a potential hang when using HTTP/2 with the asynchronous Servlet API.

New in Apache Tomcat 9.0.26 (Sep 20, 2019)

  • Update to Commons Daemon 1.2.1 to pick up fixes for regressions in Commons Daemon 1.2.0, most notably a failure to start when using a 32-bit JVM on Windows.
  • Avoid an NPE when accessing an https port using http.
  • Correct the invalid automatic module names for the embedded JARs.
  • Fix a potential hang when using HTTP/2 with the asynchronous Servlet API.

New in Apache Tomcat 9.0.24 (Aug 19, 2019)

  • Expand Graal native image support to include JNDI, JSPs and JULI
  • Expand the HTTP/2 excessive overhead protection to cover various forms of abusive client behaviour and close the connection if any such behaviour is detected.
  • Security improvements to the Windows installer including a change in the default user from Local System to Local Service.

New in Apache Tomcat 9.0.22 (Jul 10, 2019)

  • Add user buildable optional modules for easier CDI 2 and JAX-RS support. Also include a new documentation page describing how to use it.
  • Update to Tomcat Native 1.2.23 including Windows binaries built with OpenSSL 1.1.1c.
  • Update to Eclipse Complier for Java 4.12.

New in Apache Tomcat 8.5.43 (Jul 10, 2019)

  • Add the ability for a UserDatabase to monitor the backing XML file for changes and reload the source file if a change in the last modified time is detected. This is enabled by default meaning that changes to $CATALINA_BASE/conf/tomcat-users.xml will now take effect a short time after the file is saved.
  • Update to Tomcat Native 1.2.23 including Windows binaries built with OpenSSL 1.1.1c.

New in Apache Tomcat 7.0.94 (May 29, 2019)

  • Fix for CVE-2019-0232, an RCE vulnerability on Windows
  • Add support for Java 11 to the JSP compiler. Java 12 and 13 are also now supported if used with a ECJ version with support for those Java versions
  • Update Tomcat's packaged-renamed copy of Apache Commons DBCP to the latest DBCP 1.4.x and Pool 1.6.x source (as of 2019-03-15) to pick up various bug fixes

New in Apache Tomcat 9.0.20 / 8.5.41 / 7.0.93 (May 29, 2019)

  • The useAsyncIO boolean attribute on the Connector element value now defaults to true.
  • Stack traces written by the OneLineFormatter are fully indented. The entire stack trace is now indented by an additional TAB character.
  • Various HTTP/2 improvements and stability fixes.

New in Apache Tomcat 9.0.19 (Apr 15, 2019)

  • Catalina:
  • Fix: Fix wrong JMX registration regression in 9.0.18. (remm)
  • Coyote:
  • Update: Add vectoring for NIO in the base and SSL channels. (remm)
  • Add: Add asynchronous IO from NIO2 to the NIO connector, with support for the async IO implementations for HTTP/2 and Websockets. The useAsyncIO boolean attribute on the Connector element allows enabling use of the asynchronous IO API. (remm)
  • Other:
  • Fix: Ensure that the correct files are included in the source distribution for javacc based parsers depending on whether jjtree is used or not. (markt)
  • Fix: Ensure that text files in the source distribution have the correct line endings for the target platform. (markt)

New in Apache Tomcat 8.5.39 (Mar 20, 2019)

  • Catalina:
  • Fix: Minor HTTP/2 push fixes. (remm)
  • Fix: Refactor how cookies are transferred from the base request to a PushBuilder so that they are accessible, and may be edited, via the standard PushBuilder methods for working with HTTP headers. (markt)
  • Add: Refactor error handling to enable errors that occur before processing is passed to the application to be handled by the application provided error handling and/or the container provided error handling (ErrorReportValve) as appropriate. (markt)
  • Add: Pass 404 errors triggered by a missing ROOT web application to the container error handling to generate the response body. (markt)
  • Add: Pass 400 errors triggered by invalid request targets to the container error handling to generate the response body. (markt)
  • Add: Pass errors triggered by invalid requests or unavailable services to the application provided error handling and/or the container provided error handling (ErrorReportValve) as appropriate. (markt)
  • Code: Refactor the MBean implementations for the internal Tomcat components to reduce code duplication. (markt)
  • Update: Simplify the value of jarsToSkip property in catalina.properties file for tomcat-i18n jar files. Use prefix pattern instead of listing each language. (kkolinko)
  • Fix: Restore the getter and setter for the access log valve attribute maxLogMessageBufferSize that were accidentally removed. (markt)
  • Add: 63206: Add a new attribute to Context - createUploadTargets which, if true enables Tomcat to create the temporary upload location used by a Servlet if the location specified by the Servlet does not already exist. The deafult value is false. (markt)
  • Fix: 63210: Ensure that the Apache Commons DBCP 2 based default connection pool is correctly shutdown when it is no longer required. This ensures that a non-daemon thread is not left running that will prevent Tomcat from shutting down cleanly. (markt)
  • Fix: 63213: Ensure the correct escaping of group names when searching for nested groups when the JNDIRealm is configured with roleNested set to true. (markt)
  • Fix: 63236: Use String.intern() as suggested by Phillip Webb to reduce memory wasted due to String duplication. This changes saves ~245k when starting a clean installation. With additional thanks to YourKit Java profiler for helping to track down the wasted memory and the root causes. (markt)
  • Fix: 63246: Fix a potential NullPointerException when calling AsyncContext.dispatch(). (markt)
  • Coyote:
  • Fix: Ensure that the toString(), toBytes() and toChars() methods of MessageBytes behave consistently and do not throw a NullPointerException both on newly created objects and immediately after a call to recycle(). This should not impact typical Tomcat users. It may impact users who use these classes directly in their own code. (markt)
  • Fix: When performing an HTTP/1.1 upgrade to HTTP/2 (h2c) ensure that the hostname and port from the HTTP/1.1 Host header of the upgraded request are made available via the standard methods ServletRequest.getServerName() and ServletRequest.getServerPort(). (markt)
  • Fix: Make PEM file parser a public utility class. (remm)
  • Fix: Refactor the APR/Native endpoint TLS configuration code to enable JSSE style configuration - including JKS keystores - to be used with the APR/Native connector. (markt)
  • Add: With the TLS configuration refactoring, the configuration attributes sessionCacheSize and sessionTimeout are no longer limited to JSSE implementations. They may now be used with OpenSSL implementations as well. (markt)
  • Fix: Refactor NIO2 read pending strategy for the classic IO API. (remm)
  • Fix: 63182: Avoid extra read notifications for HTTP/1.1 with NIO2 when using asynchronous threads. (remm)
  • Add: 63205: Add a work-around for a known JRE KeyStore loading bug. (markt)
  • Update: Sync with NIO2 async API from Tomcat 9 branch. (remm)
  • Fix: NIO2 should try to use SocketTimeoutException everywhere rather than a mix of it and InterruptedByTimeout. (remm)
  • Fix: Correct an error in the request validation that meant that HTTP/2 push requests always resulted in a 400 response. (markt)
  • Fix: 63223: Correctly account for push requests when tracking currently active HTTP/2 streams. (markt)
  • Fix: Verify HTTP/2 stream is still writable before assuming a timeout occurred. (remm)
  • Fix: Avoid some overflow cases with OpenSSL to improve efficiency, as the OpenSSL engine has an internal buffer. (remm)
  • Fix: Harmonize HTTP/1.1 NIO2 keepalive code. (remm)
  • WebSocket:
  • Code: Remove the STREAMS_DROP_EMPTY_MESSAGES system property that was introduced to work-around four failing TCK tests. An alternative solution has been implemented. Sending messages via getSendStream() and getSendWriter() will now only result in messages on the wire if data is written to the OutputStream or Writer. Writing zero length data will result in an empty message. Note that sending a message via an Encoder may result in the message being send via getSendStream() or getSendWriter(). (markt)
  • Web applications:
  • Fix: Use client's preferred language for the Server Status page of the Manager web application. Review and fix several cases when the client's language preference was not respected in Manager and Host Manager web applications. (kkolinko)
  • Fix: Fix messages used by Manager and Host Manager web applications. Disambiguate message keys used when adding or removing a host. Improve display of summary values on the status page: separate terms and values with a whitespace. Improve wording of messages for expire sessions command. (kkolinko)
  • Fix: Do not add CSRF nonce parameter and suppress Referer header for external links in Manager and Host Manager web applications. (kkolinko)
  • Tribes:
  • Fix: Ensure that members registered in the addSuspects list are static members. (kfujino)
  • Other:
  • Add: Expand the coverage and quality of the Russian translations provided with Apache Tomcat. (kkolinko)
  • Fix: 63041: Revert the changes for 53930 that added support for the CATALINA_OUT_CMD environment variable as they prevented correct operation with systemd configurations that did not explicitly specify a PID file. (markt)

New in Apache Tomcat 9.0.17 (Mar 19, 2019)

  • The APR/Native connector now supports both OpenSSL and JSSE TLS configuration syntax (NIO and NIO2 already support this)
  • Various improvements to NIO2
  • Various fixes for HTTP/2 push requests

New in Apache Tomcat 7.0.93 (Feb 22, 2019)

  • Catalina:
  • fix 54741: Add a new method, Tomcat.addWebapp(String,URL), that allows a web application to be deployed from a URL when using Tomcat in embedded mode. (markt)
  • add 62897: Provide a property (clearReferencesThreadLocals) on the standard Context implementation that enables the check for memory leaks via ThreadLocals to be disabled because this check depends on the use of an API that has been deprecated in later versions of Java. (markt)
  • fix 62978: Update the RemoteIpValve to handle multiple values in the x-forwarded-proto header. Patch provided by Tom Groot. (markt)
  • fix Update the RemoteIpFilter to handle multiple values in the x-forwarded-proto header. Based on a patch provided by Tom Groot. (markt)
  • code 62986: Refactor the code that performs class scanning during web application start to make integration simpler for downstream users. Based on a patch provided by rmannibucau. (markt)
  • fix Implement the requirements of section 8.2.2 2c of the Servlet specification and prevent a web application from deploying if it has fragments with duplicate names and is configured to use relative ordering of fragments. (markt)
  • update Update the recommended minimum Tomcat Native version to 1.2.19. (markt)
  • fix Ensure that the ServletOutputStream implementation is consistent with the requirements of asynchronous I/O and that all of the write methods use a single write rather than multiple writes. (markt)
  • fix Correct the Javadoc for Context.getDocBase() and Context.setDocBase() and remove text that indicates that a URL may be used for the docBase as this has not been the case for quite some time. (markt)
  • add Ensure that Tomcat is fully terminated when running as a service. (markt)
  • fix 63003: Extend the unloadDelay attribute on a Context to include in-flight asynchronous requests. (markt)
  • add 63026: Add a new attribute, forceDnHexEscape, to the JNDIRealm that forces escaping in the String representation of a distinguished name to use the nn form. This may avoid issues with realms using Active Directory which appears to be more tolerant of optional escaping when the nn form is used. (markt)
  • update Update the recommended minimum Tomcat Native version to 1.2.21. (markt)
  • update Simplify the value of jarsToSkip property in catalina.properties file for tomcat-i18n jar files. Use prefix pattern instead of listing each language. (kkolinko)
  • WebSocket:
  • fix 57974: Ensure implementation of Session.getOpenSessions() returns correct value for both client-side and server-side calls. (markt)
  • fix 63019: Use payload remaining bytes rather than limit when writing. Submitted by Benoit Courtilly. (remm)
  • fix When running under a SecurityManager, ensure that the ServiceLoader look-up for the default javax.websocket.server.ServerEndpointConfig.Configurator implementation completes correctly rather than silently using the hard-coded fall-back. (markt)
  • fix Ensure that the network connection is closed if the client receives an I/O error trying to communicate with the server. (markt)
  • fix Ignore synthetic methods when scanning POJO methods. (markt)
  • fix Implement the requirements of section 5.2.1 of the WebSocket 1.1 specification and ensure that if the deployment of one Endpoint fails, no Endpoints are deployed for that web application. (markt)
  • fix Implement the requirements of section 4.3 of the WebSocket 1.1 specification and ensure that the deployment of an Endpoint fails if @PathParam is used with an invalid parameter type. (markt)
  • fix Ensure a DeploymentException rather than an IllegalArgumentException is thrown if a method annotated with @OnMessage does not conform to the requirements set out in the Javadoc. (markt)
  • fix Improve algorithm that determines if two @OnMessage annotations have been added for the same message type. Prior to this change some matches were missed. (markt)
  • code Remove the STREAMS_DROP_EMPTY_MESSAGES system property that was introduced to work-around four failing TCK tests. An alternative solution has been implemented. Sending messages via getSendStream() and getSendWriter() will now only result in messages on the wire if data is written to the OutputStream or Writer. Writing zero length data will result in an empty message. Note that sending a message via an Encoder may result in the message being send via getSendStream() or getSendWriter(). (markt)
  • Web applications:
  • fix 63103: Remove the unused source.jsp file and associated tag from the examples web application as it is no longer used. (markt)
  • fix 63143: Ensure that the Manager web application respects the language preferences of the user as configured in the browser when the language of the default system locale is not English. (markt)
  • fix Use client's preferred language for the Server Status page of the Manager web application. Review and fix several cases when the client's language preference was not respected in Manager and Host Manager web applications. (kkolinko)
  • fix Fix messages used by Manager and Host Manager web applications. Disambiguate message keys used when adding or removing a host. Improve display of summary values on the status page: separate terms and values with a whitespace. Improve wording of messages for expire sessions command. (kkolinko)
  • fix Do not add CSRF nonce parameter and suppress Referer header for external links in Manager and Host Manager web applications. (kkolinko)
  • Other:
  • fix Prevent an error when running in a Cygwin shell and the JAVA_ENDORSED_DIRS system property is empty. Patch provided by Zemian Deng. (markt)
  • update Update the packaged version of the Tomcat Native Library to 1.2.19 to pick up the latest Windows binaries built with APR 1.6.5 and OpenSSL 1.1.1a. (markt)
  • fix Correct AsyncFileHandler to FileHandler in logging.properties. (huxing)
  • update Update the packaged version of the Tomcat Native Library to 1.2.21 to pick up the memory leak fixes when using NIO/NIO2 with OpenSSL. (markt)
  • fix Enable compilation and test execution with Java 11. Note that the deprecated class org.apache.catalina.util.Base64 will be excluded from the build in this case as it depends on JRE classes that have been removed in Java 11 onwards. (markt)
  • update Update the NSIS Installer used to build the Windows installer to version 3.04. (markt)
  • add Expand the coverage and quality of the Russian translations provided with Apache Tomcat. (kkolinko)

New in Apache Tomcat 8.5.38 (Feb 11, 2019)

  • Catalina:
  • Fix: 54741: Add a new method, Tomcat.addWebapp(String,URL), that allows a web application to be deployed from a URL when using Tomcat in embedded mode. (markt)
  • Fix: Ensure that the ServletOutputStream implementation is consistent with the requirements of asynchronous I/O and that all of the write methods use a single write rather than multiple writes. (markt)
  • Fix: Correct the Javadoc for Context.getDocBase() and Context.setDocBase() and remove text that indicates that a URL may be used for the docBase as this has not been the case for quite some time. (markt)
  • Add: Ensure that Tomcat is fully terminated when running as a service. (markt)
  • Code: Treat I/O errors during request body reads the same way as I/O errors during response body writes. The errors are treated as client side errors rather than server side errors and only logged at debug level. (markt)
  • Fix: 63038: Ensure that a ClassNotFoundException is thrown when attempting to load a class from a corrupted JAR file. (markt)
  • Add: Make the removal of leading and trailing whitespace from credentials passed to BASIC authentication configurable via a new attribute, trimCredentials on the BasicAuthenticator. (markt)
  • Fix: 63003: Extend the unloadDelay attribute on a Context to include in-flight asynchronous requests. (markt)
  • Add: 63026: Add a new attribute, forceDnHexEscape, to the JNDIRealm that forces escaping in the String representation of a distinguished name to use the nn form. This may avoid issues with realms using Active Directory which appears to be more tolerant of optional escaping when the nn form is used. (markt)
  • Fix: Avoid a swallowed (and therefore ignored) access failure during web application class loading when running under a SecurityManager. (markt)
  • Update: Update the recommended minimum Tomcat Native version to 1.2.21. (markt)
  • Fix: 63137: If the resources for a web application have been configured with multiple locations mapped to /WEB-INF/classes, ensure that all of those locations are used when building the web application class path. Patch provided by Marcin Gołębski. (markt)
  • Coyote:
  • Add: 63009: Include the optional content-length header in HTTP/2 responses where an appropriate value is available. (markt)
  • Fix: 63022: Do not use the socket open state when using the wrapper isClosed method for NIO and NIO2, as it will disable all further processing. (remm)
  • Fix: Fix socket close discrepancies for NIO2, now the wrapper close is used everywhere except for socket accept problems. (remm)
  • Jasper:
  • 63056: Correct a regression in the fix for 53737 that did not correctly scan the web application directory structure for JSPs. (markt)
  • Fix: Update the performance optimisation for using expressions in tags that depend on uninitialised tag attributes with implied scope to make the performance optimisation aware of the new public class (java.lang.Enum$EnumDesc) added in Java 12. (markt)
  • WebSocket:
  • Fix: 57974: Ensure implementation of Session.getOpenSessions() returns correct value for both client-side and server-side calls. (markt)
  • Fix: 63019: Use payload remaining bytes rather than limit when writing. Submitted by Benoit Courtilly. (remm)
  • Fix: When running under a SecurityManager, ensure that the ServiceLoader look-up for the default javax.websocket.server.ServerEndpointConfig.Configurator implementation completes correctly rather than silently using the hard-coded fall-back. (markt)
  • Fix: Ensure that the network connection is closed if the client receives an I/O error trying to communicate with the server. (markt)
  • Fix: Ignore synthetic methods when scanning POJO methods. (markt)
  • Fix: Implement the requirements of section 5.2.1 of the WebSocket 1.1 specification and ensure that if the deployment of one Endpoint fails, no Endpoints are deployed for that web application. (markt)
  • Fix: Implement the requirements of section 4.3 of the WebSocket 1.1 specification and ensure that the deployment of an Endpoint fails if @PathParam is used with an invalid parameter type. (markt)
  • Fix: Ensure a DeploymentException rather than an IllegalArgumentException is thrown if a method annotated with @OnMessage does not conform to the requirements set out in the Javadoc. (markt)
  • Fix: Improve algorithm that determines if two @OnMessage annotations have been added for the same message type. Prior to this change some matches were missed. (markt)
  • Web applications:
  • Fix: 63103: Remove the unused source.jsp file and associated tag from the examples web application as it is no longer used. (markt)
  • Fix: 63143: Ensure that the Manager web application respects the language preferences of the user as configured in the browser when the language of the default system locale is not English. (markt)
  • Tribes:
  • Add EncryptInterceptor to the portfolio of available clustering interceptors. This adds symmetric encryption of session data to Tomcat clustering regardless of the type of cluster manager or membership being used. (schultz)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.21 to pick up the memory leak fixes when using NIO/NIO2 with OpenSSL. (markt)
  • Other:
  • Fix: 63041: Correct a regression in the fix for 53930 that prevented Tomcat from working correctly with systemd. Patch provided by Patrik S. (markt)
  • Update: Update the NSIS Installer used to build the Windows installer to version 3.04. (markt)

New in Apache Tomcat 9.0.16 (Feb 8, 2019)

  • Web applications:
  • Fix: Use client's preferred language for the Server Status page of the Manager web application. Review and fix several cases when the client's language preference was not respected in Manager and Host Manager web applications. (kkolinko)
  • Fix: 63141: Ensure that translated manager response strings still start with OK - where expected by the associated Ant tasks. (markt)
  • Fix: 63143: Ensure that the Manager web application respects the language preferences of the user as configured in the browser when the language of the default system locale is not English. (markt)
  • Tribes:
  • Fix: Remove unnecessary shutdown for executor. (kfujino)
  • Other:
  • Update: Update the NSIS Installer used to build the Windows installer to version 3.04. (markt)
  • Add: Add Czech translations to Apache Tomcat. Includes contributions from Arnošt Havelka and Alice. (markt)
  • Add: Expand the coverage and quality of the Spanish translations provided with Apache Tomcat. Includes contributions from Ulises Gonzalez Horta. (markt)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage and quality of the Korean translations provided with Apache Tomcat. (woonsan)
  • Add: Expand the coverage and quality of the Japanese translations provided with Apache Tomcat. Includes contributions from Yujiorama. (markt)
  • Add: Expand the coverage and quality of the Chinese translations provided with Apache Tomcat. Includes contributions from zheng. (markt)
  • Add: Expand the coverage and quality of the Russian translations provided with Apache Tomcat. (kkolinko)

New in Apache Tomcat 8.5.37 (Dec 20, 2018)

  • Implement the requirements of section 8.2.2 2.c of the Servlet specification and prevent a web application from deploying if it has fragments with duplicate names and is configured to use relative ordering of fragments.
  • The default Servlet no longer overrides a previously set content-type.
  • Update the packaged version of the Tomcat Native Library to 1.2.19 to pick up the latest Windows binaries built with APR 1.6.5 and OpenSSL 1.1.1a.

New in Apache Tomcat 9.0.14 (Dec 14, 2018)

  • Significant expansion of localisation support with the addition of Brazilian Portuguese, Korean and Chinese (simplified) as well as the expansion of coverage for existing languages.
  • Refactor back ground processing and various independent thread pools to use a common executor.
  • Update the packaged version of the Tomcat Native Library to 1.2.19 to pick up the latest Windows binaries built with APR 1.6.5 and OpenSSL 1.1.1a.

New in Apache Tomcat 7.0.92 (Nov 19, 2018)

  • Fix:
  • Add documentation about the files context.xml.default and web.xml.default that can be used to customize conf/context.xml and conf/web.xml on a per host basis. (fschumacher)
  • Ensure that a canonical path is always used for the docBase of a Context to ensure consistent behaviour. (markt)
  • 62788: Add explicit logging configuration to write log files using UTF-8 to align with Tomcat's use of UTF-8 by default elsewhere. (markt)
  • 62797: Pass throwable to keep client aborts with status 200 rather than 500. Patch submitted by zikfat. (remm)
  • 62809: Correct a regression in the implementation of DIGEST authentication support for the Deployer Ant tasks (bug 45832) that prevented the DeployTask from working when authentication was required. (markt)
  • Update Update the recommended minimum Tomcat Native version to 1.2.18. (markt)
  • Added:
  • Ignore an attribute named source on Context elements provided by StandardContext. This is to suppress warnings generated by the Eclipse / Tomcat integration provided by Eclipse. Based on a patch by mdfst13. (markt)
  • 62830: Added JniLifeCycleListener and static methods Library.loadLibrary(libraryName) and Library.load(filename) to load a native library by a shared class loader so that more than one Webapp can use it. (isapir)
  • Correct a typo in the Spanish resource files. Patch provided by Diego Agulló. (markt)
  • 62868: Order the Enumeration<URL> provided by WebappClassLoaderBase.getResources(String) according to the setting of the delegate flag. (markt)
  • Add TLSv1.3 to the default protocols and to the all alias for JSSE based TLS connectors when running on a JVM that supports TLS version 1.3. One such JVM is OpenJDK version 11. (rjung)
  • 62739: Do not reject requests with an empty HTTP Host header. Such requests are unusual but not invalid. Patch provided by Michael Orr. (markt)
  • 62748: Add TLS 1.3 support for the APR/Native connector. (schultz/markt)
  • 62791: Remove an unnecessary check in the NIO TLS implementation that prevented from secure WebSocket connections from being established. (markt)
  • Jasper:
  • 62674: Correct a regression in the stand-alone JSP compiler utility, JspC, caused by the fix for 53492, that caused the JSP compiler to hang. (markt)
  • 62721: Correct generation of web.xml header when using JspC. (markt)
  • Fix a regression in the TLD whitespace parsing fix that broke parsing when whitespace was present between the method name and the parameters. (markt)
  • 62757: Correct a regression in the fix for 62603 that caused NullPointerExceptions when compiling tag files on first access when development mode was disabled and background compilation was enabled. Based on a patch by Jordi Llach. (markt)
  • 62808: Fix a regression in the TLD whitespace parsing fix that broke parsing when new lines were present in the method signature. (markt)
  • WebSocket
  • 62731: Make the URI returned by HandshakeRequest.getRequestURI() and Session.getRequestURI() absolute so that the scheme, host and port are accessible. (markt)
  • Web applications
  • 62761: Correct the advanced CORS example in the Filter documentation to use a valid configuration. (markt)
  • 62786: Add a note to the Context documentation to explain that, by default, settings for a Context element defined in server.xml will be overwritten by settings specified in a default context file such as conf/context.xml. (markt)
  • Create a little visual separation between the Undeploy button and the other buttons in the Manager application. Patch provided by Łukasz Jąder. (markt)
  • Other:
  • Update the packaged version of the Tomcat Native Library to 1.2.18 to pick up the latest Windows binaries built with APR 1.6.5 and OpenSSL 1.1.1. (markt)

New in Apache Tomcat 8.5.35 (Nov 9, 2018)

  • The Apache Tomcat Project is proud to announce the release of version 8.5.35 of Apache Tomcat. Apache Tomcat 8.5.x replaces 8.0.x and includes new features pulled forward from Tomcat 9.0.x. The minimum Java version and implemented specification versions remain unchanged. The notable changes compared to 8.5.34 include:
  • support for TLSv1.3 when used with a JRE or OpenSSl version that supports it
  • multiple improvements to the RewriteValve
  • correct several regressions in the JSP compiler

New in Apache Tomcat 7.0.91 (Sep 21, 2018)

  • Catalina:
  • Add 61692: Add the ability to control which HTTP methods are handled by the CGI Servlet via a new initialization parameter cgiMethods. (markt)
  • Fix Ensure that the HTTP Vary header is set correctly when using the CORS filter and improve the cacheability of requests that pass through the COPRS filter. (markt)
  • Fix 62527: Revert restriction of JNDI to the java: namespace. (remm)
  • Add Introduce a new class - MultiThrowable - to report exceptions when multiple actions are taken where each action may throw an exception but all actions are taken before any errors are reported. Use this new class when reporting multiple container (e.g. web application) failures during start. (markt)
  • Fix Correctly decode URL paths (+ should not be decoded to a space in the path) in the RequestDispatcher and the web application class loader. (markt)
  • Add 62559: Add jaxb-*.jar to the list of JARs ignored by StandardJarScanner. (markt)
  • Add 62560: Add oraclepki.jar to the list of JARs ignored by StandardJarScanner. (markt)
  • Add 62607: Return a non-zero exit code from catalina.[bat|sh] run if Tomcat fails to start. (markt)
  • Code Remove ServletException from declaration of Tomcat.addWebapp(String,String) since it is never thrown. Patch provided by Tzafrir. (markt)
  • Fix Use short circuit logic to prevent potential NPE in CorsFilter. (fschumacher)
  • Code Simplify construction of appName from container name in JAASRealm. (fschumacher)
  • Fix Improve the handling of path parameters when working with RequestDispatcher objects. (markt)
  • Fix 62664: Process requests with content type multipart/form-data to servlets with a @MultipartConfig annotation regardless of HTTP method. (markt)
  • Fix 62669: When using the SSIFilter and a resource does not specify a content type, do not force the content type to application/x-octet-stream. (markt)
  • Fix When generating a redirect to a directory in the Default Servlet, avoid generating a protocol relative redirect. (markt)
  • Coyote:
  • Fix Refactor code that adds an additional header name to the Vary HTTP response header to use a common utility method that addresses several additional edge cases. (markt)
  • Fix 62526: Correctly handle PKCS12 format key stores when the key store password is configured to be the empty string. Note that Java 6 does not support PKCS12 key stores configured to use a store password of the empty string. (markt)
  • Fix 62670: Adjust the memory leak protection for the DriverManager so that JDBC drivers located in $CATALINA_HOME/lib and $CATALINA_BASE/lib are loaded via the service loader mechanism when the protection is enabled. (markt)
  • Fix 62685: Correct an error in host name validation parsing that did not allow a fully qualified domain name to terminate with a period. Patch provided by AG. (markt)
  • Jasper:
  • Fix 53011: When pre-compiling with JspC, report all compilation errors rather than stopping after the first error. A new option -failFast can be used to restore the previous behaviour of stopping after the first error. Based on a patch provided by Marc Pompl. (markt)
  • Add 53492: Make the Java file generation process multi-threaded. By default, one thread will be used per core. Based on a patch by Dan Fabulich. (markt)
  • Fix 62603: Fix a potential race condition when development mode is disabled and background compilation checks are enabled. It was possible that some updates would not take effect and/or ClassNotFoundExceptions would occur. (markt)
  • Fix Correct the JSP version in the X-PoweredBy HTTP header generated when the xpoweredBy option is enabled. (markt)
  • Fix 62662: Fix the corruption of web.xml output during JSP compilation caused by the fix for 53492. Patch provided by Bernhard Frauendienst. (markt)
  • Fix Correct parsing of XML whitespace in TLD function signatures that incorrectly only looked for the space character. (markt)
  • WebSocket:
  • Fix 62596: Remove the limit on the size of the initial HTTP upgrade request used to establish the web socket connection. (markt)
  • Web applications:
  • Add 62558: Add Russian translations for the Manager and Host Manager web applications. Based on a patch by Ivan Krasnov. (markt)
  • Add 62561: Add advanced class loader configuration information regarding the use of the Server and Shared class loaders to the documentation web application. (markt)
  • Add Expand the information in the documentation web application regarding the use of CATALINA_HOME and CATALINA_BASE. Patch provided by Marek Czernek. (markt)
  • Fix 62652: Make it clearer that the version of DBCP that is packaged in Tomcat 7.0.x is DBCP 1. (markt)
  • Add 62666: Expand internationalisation support in the Manager application to include the server status page and provide Russian translations in addition to English. Patch provided by Artem Chebykin. (markt)
  • Fix 62676: Expand the CORS filter documentation to make it clear that explicit configuration is required to enable support for cross-origin requests. (markt)
  • Tribes:
  • Fix Ensures that the specified rxBufSize is correctly set to receiver buffer size. (kfujino)
  • Other:
  • Fix Fixed spelling. Patch provided by Jimmy Casey via GitHub. (violetagg)
  • Fix Correct various spelling errors throughout the source code and documentation. Patch provided by Kazuhiro Sera. (markt)

New in Apache Tomcat 8.5.34 (Sep 12, 2018)

  • Fix multiple issues associated with using the asynchronous Servlet API in combination with HTTP/2.
  • Add recursion to rewrite substitution parsing.
  • Expand the information in the documentation web application regarding the use of CATALINA_HOME and CATALINA_BASE. Patch provided by Marek Czernek.

New in Apache Tomcat 7.0.90 (Jul 7, 2018)

  • Add the RemoteCIDRFilter and RemoteCIDRValve that can be used to allow/deny requests based on IPv4 and/or IPv6 client address where the IP ranges are defined using CIDR notation. Based on a patch by Francis Galiegue.
  • Update the packaged version of the Tomcat Native Library to 1.2.17 to pick up the latest Windows binaries built with APR 1.6.3 and OpenSSL 1.0.2o.

New in Apache Tomcat 9.0.10 (Jun 27, 2018)

  • Add the RemoteCIDRFilter and RemoteCIDRValve that can be used to allow/deny requests based on IPv4 and/or IPv6 client address where the IP ranges are defined using CIDR notation. Based on a patch by Francis Galiegue.
  • Use NIO2 API for websockets writes.
  • Update the packaged version of the Tomcat Native Library to 1.2.17 to pick up the latest Windows binaries built with APR 1.6.3 and OpenSSL 1.0.2o.
  • Correct a regression in the Host validation by removing the requirement that the final component of a FQDN must be alphabetic.

New in Apache Tomcat 8.5.32 (Jun 27, 2018)

  • Add the RemoteCIDRFilter and RemoteCIDRValve that can be used to allow/deny requests based on IPv4 and/or IPv6 client address where the IP ranges are defined using CIDR notation. Based on a patch by Francis Galiegue.
  • Update the packaged version of the Tomcat Native Library to 1.2.17 to pick up the latest Windows binaries built with APR 1.6.3 and OpenSSL 1.0.2o.
  • Correct a regression in the Host validation by removing the requirement that the final component of a FQDN must be alphabetic.

New in Apache Tomcat 7.0.88 (May 12, 2018)

  • Catalina:
  • Fix Treat the <mapped-name> element of a <env-entry> in web.xml in the same way as the mappedName element of the equivalent @Resource annotation. Both now attempt to set the mappedName property of the resource. (markt)
  • Fix Correct the processing of resources with <injection-target>s defined in web.xml. First look for a match using JavaBean property names and then, only if a match is not found, look for a match using fields. (markt)
  • Fix When restoring a saved request with a request body after FORM authentication, ensure that calls to the HttpServletRequest methods getRequestURI(), getQueryString() and getProtocol() are not corrupted by the processing of the saved request body. (markt)
  • Fix Fix startup failure when running under SecurityManager, a regression from the fix for bug 62273. (kkolinko)
  • Fix 62353: Correct a regression introduced in Tomcat 7.0.86. Restore the ability for Tomcat 7 to run on Java 6 where Common Annotations 1.0 is available. Document the requirement to use the Java endorsed mechanism to use Common Annotations 1.1. (markt)
  • Jasper:
  • Fix 62350: Refactor org.apache.jasper.runtime.BodyContentImpl so a SecurityException is not thrown when running under a SecurityManger and additional permissions are not required in the catalina.policy file. This is a follow-up to the fix for 43925. (kkolinko/markt)
  • Tribes:
  • Fix Ensure that the correct default value is returned when retrieve unset properties in McastService. (kfujino)
  • Other:
  • Fix Add a .gitattributes file to make sure that Git handles test data files for bug 52121 as binary. (kkolinko)

New in Apache Tomcat 8.5.31 (May 5, 2018)

  • Catalina:
  • Fix: 62263: Avoid a NullPointerException when the RemoteIpValve processes a request for which no Context can be found. (markt)
  • Fix: Fix a rare edge case that is unlikely to occur in real usage. This edge case meant that writing long streams of UTF-8 characters to the HTTP response that consisted almost entirely of surrogate pairs could result in one surrogate pair being dropped. (markt)
  • Fix: Register MBean when DataSource Resource type="javax.sql.XADataSource". Patch provided by Masafumi Miura. (csutherl)
  • Add: Update the internal fork of Apache Commons BCEL to r1829827 to add early access Java 11 support to the annotation scanning code. (markt)
  • Fix: 62297: Enable the CrawlerSessionManagerValve to correctly handle bots that crawl multiple hosts and/or web applications when the Valve is configured on a Host or an Engine. (fschumacher)
  • Fix: 62309: Fix a SecurityException when using JASPIC under a SecurityManager when authentication is not mandatory. (markt)
  • Fix: 62329: Correctly list resources in JAR files when directories do not have dedicated entries. Patch provided by Meelis Müür. (markt)
  • Add: Collapse multiple leading / characters to a single / in the return value of HttpServletRequest#getContextPath() to avoid issues if the value is used with HttpServletResponse#sendRedirect(). This behaviour is enabled by default and configurable via the new Context attribute allowMultipleLeadingForwardSlashInPath. (markt)
  • Fix: Improve handing of overflow in the UTF-8 decoder with supplementary characters. (markt)
  • Coyote:
  • Fix: Correct off-by-one error in thread pool that allowed thread pools to increase in size to one more than the configured limit. Patch provided by usc. (markt)
  • Fix: Prevent unexpected TLS handshake failures caused by errors during a previous handshake that were not correctly cleaned-up when using the NIO or NIO2 connector with the OpenSSLImplementation. (markt)
  • Add: Enable strict validation of the provided host name and port for all connectors. Requests with invalid host names and/or ports will be rejected with a 400 response. (markt)
  • Add: 62273: Implement configuration options to work-around specification non-compliant user agents (including all the major browsers) that do not correctly %nn encode URI paths and query strings as required by RFC 7230 and RFC 3986. (markt)
  • Jasper:
  • Enable ECJ version 4.7 and later to be used as a drop in replacement for the ECJ version that ships with Apache Tomcat. (markt)
  • Fix: Enable Java 10 to be specified as a JSP source and/or target if a newer ECJ version is used. (markt)
  • Fix: 62287: Do not rely on hash codes to test instances of ValueExpressionImpl for equality. Patch provided by Mark Struberg. (markt)
  • WebSocket:
  • 62301: Correct a regression in the fix for 61491 that didn't correctly handle a final empty message part in all circumstances when using PerMessageDeflate. (markt)
  • Fix: 62332: Ensure WebSocket connections are closed after an I/O error is experienced reading from the client. (markt)
  • Other:
  • Fix: Avoid warning when running under Cygwin when the JAVA_ENDORSED_DIRS environment variable is not set. Patch provided by Zemian Deng. (markt)

New in Apache Tomcat 9.0.8 (May 5, 2018)

  • Catalina:
  • Fix: 62263: Avoid a NullPointerException when the RemoteIpValve processes a request for which no Context can be found. (markt)
  • Add: 62258: Don't trigger the standard error page mechanism when the error has caused the connection to the client to be closed as no-one will ever see the error page. (markt)
  • Fix: Register MBean when DataSource Resource type="javax.sql.XADataSource". Patch provided by Masafumi Miura. (csutherl)
  • Fix: Fix a rare edge case that is unlikely to occur in real usage. This edge case meant that writing long streams of UTF-8 characters to the HTTP response that consisted almost entirely of surrogate pairs could result in one surrogate pair being dropped. (markt)
  • Add: Update the internal fork of Apache Commons BCEL to r1829827 to add early access Java 11 support to the annotation scanning code. (markt)
  • Fix: 62297: Enable the CrawlerSessionManagerValve to correctly handle bots that crawl multiple hosts and/or web applications when the Valve is configured on a Host or an Engine. (fschumacher)
  • Fix: 62309: Fix a SecurityException when using JASPIC under a SecurityManager when authentication is not mandatory. (markt)
  • Fix: 62329: Correctly list resources in JAR files when directories do not have dedicated entries. Patch provided by Meelis Müür. (markt)
  • Add: Collapse multiple leading / characters to a single / in the return value of HttpServletRequest#getContextPath() to avoid issues if the value is used with HttpServletResponse#sendRedirect(). This behaviour is enabled by default and configurable via the new Context attribute allowMultipleLeadingForwardSlashInPath. (markt)
  • Fix: Improve handing of overflow in the UTF-8 decoder with supplementary characters. (markt)
  • Coyote:
  • Fix: Correct off-by-one error in thread pool that allowed thread pools to increase in size to one more than the configured limit. Patch provided by usc. (markt)
  • Fix: Prevent unexpected TLS handshake failures caused by errors during a previous handshake that were not correctly cleaned-up when using the NIO or NIO2 connector with the OpenSSLImplementation. (markt)
  • Add: 62273: Implement configuration options to work-around specification non-compliant user agents (including all the major browsers) that do not correctly %nn encode URI paths and query strings as required by RFC 7230 and RFC 3986. (markt)
  • Fix: Fix sync for NIO2 async IO blocking read/writes. (remm)
  • Jasper:
  • Update: Update the Eclipse Compiler for Java to 4.7.3a. (markt)
  • Update: Allow 9 to be used to specify Java 9 as the compiler source and/or compiler target for JSP compilation. The Early Access value of 1.9 is still supported. (markt)
  • Add: Add support for specifing Java 10 (with the value 10) as the compiler source and/or compiler target for JSP compilation. (markt)
  • Fix: 62287: Do not rely on hash codes to test instances of ValueExpressionImpl for equality. Patch provided by Mark Struberg. (markt)
  • WebSocket:
  • Fix: 62301: Correct a regression in the fix for 61491 that didn't correctly handle a final empty message part in all circumstances when using PerMessageDeflate. (markt)
  • Fix: 62332: Ensure WebSocket connections are closed after an I/O error is experienced reading from the client. (markt)
  • Other:
  • Fix: Avoid warning when running under Cygwin when the JAVA_ENDORSED_DIRS environment variable is not set. Patch provided by Zemian Deng. (markt)

New in Apache Tomcat 7.0.86 (Apr 16, 2018)

  • Add support for the maxDays attribute to the AccessLogValve and ExtendedAccessLogValve. This allows the maximum number of days for which rotated access logs should be retained before deletion to be defined.
  • Avoid infinite recursion, when trying to validate a session while loading it with PersistentManager.

New in Apache Tomcat 9.0.7 (Apr 9, 2018)

  • Add support for the maxDays attribute to the AccessLogValve and ExtendedAccessLogValve. This allows the maximum number of days for which rotated access logs should be retained before deletion to be defined.
  • Avoid infinite recursion, when trying to validate a session while loading it with PersistentManager.
  • Correct two protocol errors with HTTP/2 PUSH_PROMISE frames.
  • The OpenSSL engine SSL session will now ignore invalid accesses.

New in Apache Tomcat 8.5.29 (Mar 12, 2018)

  • TLS stability improvements.
  • Correct a regression in the fix for 60276 that meant compression was applied to all MIME types. Patch provided by Stefan Knoblich.
  • Add documentation for the Host Manager web application.

New in Apache Tomcat 9.0.6 (Mar 9, 2018)

  • TLS stability improvements.
  • Add the ability to specify static HTML responses for specific error codes and/or exception types with the ErrorReportValve.
  • Add async HTTP/2 parser for NIO2.
  • Add documentation for the Host Manager web application. Patch provided by Marek Czernek.

New in Apache Tomcat 7.0.84 (Feb 13, 2018)

  • Java 9 is fully supported
  • Updated the packaged version of the Tomcat Native Library to 1.2.16 to pick up the latest Windows binaries built with APR 1.6.3 and OpenSSL 1.0.2m
  • Add a new system property (org.apache.jasper.runtime.BodyContentImpl.BUFFER_SIZE) to control the size of the buffer used by Jasper when buffering tag bodies.

New in Apache Tomcat 8.5.28 (Feb 13, 2018)

  • Fix truncated request input streams when using NIO2 with TLS.
  • Improved error handling and reporting for TLS configuration.
  • Enhance the JMX support for jdbc-pool in order to expose PooledConnection and JdbcInterceptors.

New in Apache Tomcat 9.0.5 (Feb 13, 2018)

  • Refactor error handling to enable errors that occur before processing is passed to the application to be handled by the application provided error handling and/or the container provided error handling (ErrorReportValve) as appropriate.
  • Enable strict validation of the provided host name and port for all connectors. Requests with invalid host names and/or ports will be rejected with a 400 response.
  • Enhance the JMX support for jdbc-pool in order to expose PooledConnection and JdbcInterceptors.

New in Apache Tomcat 8.5.27 (Jan 23, 2018)

  • The notable changes compared to 8.5.24 include:
  • Add support for GZIP compression with HTTP/2
  • Expand the TLS functionality exposed via the Manager application
  • Return a simple, plain text error message if a client attempts to make a plain text HTTP connection to a TLS enabled NIO or NIO2 Connector.
  • Add a new system property (org.apache.jasper.runtime.BodyContentImpl.BUFFER_SIZE) to control the size of the buffer used by Jasper when buffering tag bodies.

New in Apache Tomcat 9.0.4 Beta (Jan 23, 2018)

  • Modify the Default and WebDAV Servlets so that a 405 status code is returned for PUT and DELETE requests when disabled via the readonly initialisation parameter.
  • Add support for GZIP compression with HTTP/2
  • Expand the TLS functionality exposed via the Manager application
  • Return a simple, plain text error message if a client attempts to make a plain text HTTP connection to a TLS enabled NIO or NIO2 Connector.

New in Apache Tomcat 8.5.24 (Dec 1, 2017)

  • The notable changes compared to 8.5.23 include:
  • Java 9 is fully supported
  • Fixed a number of HTTP/2 issues
  • Fixed numerous JASPIC issues with patches from Lazar
  • Updated the packaged version of the Tomcat Native Library to 1.2.16 to pick up the latest Windows binaries built with APR 1.6.3 and OpenSSL 1.0.2m

New in Apache Tomcat 8.5.23 (Oct 2, 2017)

  • A fix for CVE-2017-12617.
  • Stricter validation of the HTTP Host header.
  • Add ExtractingRoot, a new WebResourceRoot implementation that extracts JARs to the work directory for improved performance when deploying packed WAR files.
  • Added support for the OpenSSL SSL_CONF API. To support this the minimum required Tomcat Native version is 1.2.14.

New in Apache Tomcat 9.0.1 Beta (Oct 2, 2017)

  • This is the first release after the publication of the Servlet 4.0 specification and fully implements the new specification.
  • A fix for CVE-2017-12617.
  • The ability to update the TLS configuration without restarting Tomcat or the TLS connector.
  • Stricter validation of the HTTP Host header.

New in Apache Tomcat 9.0.0 M26 (alpha) (Aug 10, 2017)

  • When generating JSP runtime error messages that quote the relevant JSP source code, switch from using the results of the JSP page parsing process to using the JSR 045 source map data to identify the correct part of the JSP source from the stack trace. This significantly reduces the memory footprint of Jasper in development mode, provides a small performance improvement for error page generation and enables source quotes to continue to be provided after a Tomcat restart.
  • Add LoadBalancerDrainingValve, a Valve designed to reduce the amount of time required for a node to drain its authenticated users
  • Improve the Default Servlet's handling of static files when the file encoding is not compatible with the required response encoding.
  • Add support for a Tomcat specific deployment descriptor, /WEB-INF/tomcat-web.xml. This descriptor has an identical format to /WEB-INF/web.xml. The Tomcat descriptor takes precedence over any settings in conf/web.xml but does not take precedence over any settings in /WEB-INF/web.xml.
  • Add ExtractingRoot, a new WebResourceRoot implementation that extracts JARs to the work directory for improved performance when deploying packed WAR files.
  • Add support to the WebSocket client for following redirects when attempting to establish a WebSocket connection. Patch provided by J Fernandez.
  • Add support for the %X pattern in the AccessLogValve that reports the connection status at the end of the request. Patch provided by Zemian Deng.

New in Apache Tomcat 8.5.20 (Aug 10, 2017)

  • Add the ability to set the defaults used by the Windows installer from a configuration file. Patch provided by Sandra Madden.
  • Add support to the WebSocket client for following redirects when attempting to establish a WebSocket connection. Patch provided by J Fernandez.
  • Add support for the %X pattern in the AccessLogValve that reports the connection status at the end of the request. Patch provided by Zemian Deng.

New in Apache Tomcat 8.5.16 (Jun 27, 2017)

  • Add a new JULI FileHandler configuration for specifying the maximum number of days to keep the log files. By default the log files will be kept indefinitely.
  • Improvements to enable the Manager and HostManager to work in the default configuration when working under a security manager.
  • Introduce new API o.a.tomcat.websocket.WsSession#suspend / o.a.tomcat.websocket.WsSession#resume that can be used to suspend / resume reading of the incoming messages.

New in Apache Tomcat 9.0.0 M22 (alpha) (Jun 27, 2017)

  • Add a new JULI FileHandler configuration for specifying the maximum number of days to keep the log files. By default the log files will be kept for 90 days.
  • Update the Servlet 4.0 implementation to add support for setting trailer fields for HTTP responses.
  • When pre-compiling with JspC, report all compilation errors rather than stopping after the first error.

New in Apache Tomcat 8.5.15 (May 11, 2017)

  • General:
  • Add: Allow to exclude JUnit test classes using the build property test.exclude and document the property in BUILDING.txt. (rjung)
  • Catalina:
  • Fix: Review those places where Tomcat re-encodes a URI or URI component and ensure that that correct encoding (path differs from query string) is applied and that the encoding is applied consistently. (markt)
  • Fix: Avoid a NullPointerException when reading attributes for a initialised HTTP connector where TLS is enabled. (markt)
  • Fix: Always quote the hostName of an SSLHostConfig element when using it as part of the JMX object name to avoid errors that prevent the associated TLS connector from starting if a wild card hostName is configured (because * is a reserved character for JMX object names). (markt)
  • Code: Start to switch to using Charset rather than String to store encoding configuration settings to reduce the number of places the associated Charset needs to be looked up. (markt)
  • Fix: Use a more reliable mechanism for the DefaultServlet when determining if the current request is for custom error page or not. (markt)
  • Fix: Ensure that when the Default or WebDAV servlets process an error dispatch that the error resource is processed via the doGet() method irrespective of the method used for the original request that triggered the error. (markt)
  • Fix: If a static custom error page is specified that does not exist or cannot be read, ensure that the intended error status is returned rather than a 404 or 403. (markt)
  • Fix: When the WebDAV servlet is configured and an error dispatch is made to a custom error page located below WEB-INF, ensure that the target error page is displayed rather than a 404 response. (markt)
  • Add: 61047: Add MIME mapping for woff2 fonts in the default web.xml. Patch provided by Justin Williamson. (violetagg)
  • Fix: Correct the logic that selects the encoding to use to decode the query string in the SSIServletExternalResolver so that the useBodyEncodingForURI attribute of the Connector is correctly taken into account. (markt)
  • Fix: Within the Expires filter, make the content type value specified with the ExpiresByType parameter, case insensitive. (markt)
  • Coyote:
  • Fix: When a TrustManager is configured that does not support certificateVerificationDepth only log a warning about that lack of support when certificateVerificationDepth has been explicitly set. (markt)
  • Fix: 60970: Extend the fix for large headers to push requests. (markt)
  • Fix: Do not include a Date header in HTTP/2 responses with status codes less than 200. (markt)
  • Jasper:
  • Fix: When no BOM is present and an encoding is detected, do not skip the bytes used to detect the encoding since they are not part of a BOM. (markt)
  • Update: 61057: Update to Eclipse JDT Compiler 4.6.3. (violetagg)
  • Fix: 61065: Ensure that once the class is resolved by javax.el.ImportHandler#resolveClass it will be cached with the proper name. (violetagg)
  • WebSocket:
  • Fix: 61003: Ensure the flags for reading/writing in o.a.t.websocket.AsyncChannelWrapperSecure are correctly reset even if some exceptions occurred during processing. (markt/violetagg)
  • Web Applications:
  • Add: Add documents for maxIdleTime attribute to Channel Receiver docs. (kfujino)
  • Other:
  • Add: Modify the Ant build script used to publish to a Maven repository so that it no longer requires artifacts to be GPG signed. This is make it possible for the CI system to upload snapshot builds to the ASF Maven repository. (markt)
  • Code: Review i18n property files, remove unnecessary escaping and consistently use [...] to delimit inserted values. (markt)

New in Apache Tomcat 9.0.0 M21 (alpha) (May 11, 2017)

  • General:
  • Add: Allow to exclude JUnit test classes using the build property test.exclude and document the property in BUILDING.txt. (rjung)
  • Catalina:
  • Fix: Review those places where Tomcat re-encodes a URI or URI component and ensure that that correct encoding (path differs from query string) is applied and that the encoding is applied consistently. (markt)
  • Fix: Avoid a NullPointerException when reading attributes for a initialised HTTP connector where TLS is enabled. (markt)
  • Fix: Always quote the hostName of an SSLHostConfig element when using it as part of the JMX object name to avoid errors that prevent the associated TLS connector from starting if a wild card hostName is configured (because * is a reserved character for JMX object names). (markt)
  • Update: Update the default URIEncoding for a Connector to UTF-8 as required by the Servlet 4.0 specification. (markt)
  • Code: Start to switch to using Charset rather than String to store encoding configuration settings to reduce the number of places the associated Charset needs to be looked up. (markt)
  • Fix: Use a more reliable mechanism for the DefaultServlet when determining if the current request is for custom error page or not. (markt)
  • Fix: Ensure that when the Default or WebDAV servlets process an error dispatch that the error resource is processed via the doGet() method irrespective of the method used for the original request that triggered the error. (markt)
  • Fix: If a static custom error page is specified that does not exist or cannot be read, ensure that the intended error status is returned rather than a 404 or 403. (markt)
  • Fix: When the WebDAV servlet is configured and an error dispatch is made to a custom error page located below WEB-INF, ensure that the target error page is displayed rather than a 404 response. (markt)
  • Update: Update the Servlet 4.0 implementation to add support for obtaining trailer fields from chunked HTTP requests. (markt)
  • Add: 61047: Add MIME mapping for woff2 fonts in the default web.xml. Patch provided by Justin Williamson. (violetagg)
  • Fix: Correct the logic that selects the encoding to use to decode the query string in the SSIServletExternalResolver so that the useBodyEncodingForURI attribute of the Connector is correctly taken into account. (markt)
  • Fix: Within the Expires filter, make the content type value specified with the ExpiresByType parameter, case insensitive. (markt)
  • Coyote:
  • Fix: When a TrustManager is configured that does not support certificateVerificationDepth only log a warning about that lack of support when certificateVerificationDepth has been explicitly set. (markt)
  • Fix: 60970: Extend the fix for large headers to push requests. (markt)
  • Fix: Do not include a Date header in HTTP/2 responses with status codes less than 200. (markt)
  • Fix: When sending an HTTP/2 push promise with the NIO2 connector, the pushed stream ID should only be included with the initial push promise frame and not any subsequent continuation frames. (markt)
  • Jasper:
  • When no BOM is present and an encoding is detected, do not skip the bytes used to detect the encoding since they are not part of a BOM. (markt)
  • Update: 61057: Update to Eclipse JDT Compiler 4.6.3. (violetagg)
  • Fix: 61065: Ensure that once the class is resolved by javax.el.ImportHandler#resolveClass it will be cached with the proper name. (violetagg)
  • WebSocket:
  • Introduce new API o.a.tomcat.websocket.WsSession#suspend/ o.a.tomcat.websocket.WsSession#resume that can be used to suspend/resume reading of the incoming messages. (violetagg)
  • Fix: 61003: Ensure the flags for reading/writing in o.a.t.websocket.AsyncChannelWrapperSecure are correctly reset even if some exceptions occurred during processing. (markt/violetagg)
  • Web Applications:
  • Add: Add documents for maxIdleTime attribute to Channel Receiver docs. (kfujino)
  • Tribes:
  • Add: Add features to get the statistics of the thread pool of the Receiver component and MessageDispatchInterceptor. These statistics information can be acquired via JMX. (kfujino)
  • Add: Add maxIdleTime attribute to NioReceiverMBean in order to expose to JMX. (kfujino)
  • Add: Add JMX support for Channel Interceptors. The Interceptors that implement jmx support are TcpFailureDetector, ThroughputInterceptor, TcpPingInterceptor, StaticMembershipInterceptor, MessageDispatchInterceptor and DomainFilterInterceptor. (kfujino)
  • Other:
  • Add: Modify the Ant build script used to publish to a Maven repository so that it no longer requires artifacts to be GPG signed. This is make it possible for the CI system to upload snapshot builds to the ASF Maven repository. (markt)

New in Apache Tomcat 8.5.14 (Apr 19, 2017)

  • Correct a regression that broke JMX operations (including the Manager web application) if the operation took parameters
  • Calls to isReady() no longer throw exceptions after timeouts for async servlets

New in Apache Tomcat 9.0.0 M20 (alpha) (Apr 19, 2017)

  • Correct a regression that broke JMX operations (including the Manager web application) if the operation took parameters
  • Add JMX support for Tribes components
  • Calls to isReady() no longer throw exceptions after timeouts for async servlets

New in Apache Tomcat 8.5.13 (Apr 2, 2017)

  • Catalina:
  • Add: 54618: Add support to the HttpHeaderSecurityFilter for the HSTS preload parameter. (markt)
  • Fix: 60853: Expose the SSLHostConfig and SSLHostConfigCertificate objects via JMX. (markt)
  • Fix: 60876: Ensure that Set-Cookie headers generated by the Rfc6265CookieProcessor are aligned with the specification. Patch provided by Jim Griswold. (markt)
  • Fix: 60882: Fix a NullPointerException when obtaining a RequestDispatcher for a request that will not have any pathInfo associated with it. This was a regression in the changes in 8.5.12 for the Servlet 4.0 API early preview changes. (markt)
  • Update: Align PushBuilder API with changes from Servlet expert group. (markt)
  • Code: Refactor the various implementations of X to comma separated list to a single utility class and update the code to use the new utility class. (markt)
  • Fix: 60911: Ensure NPE will not be thrown when looking for SSL session ID. Based on a patch by Didier Gutacker. (violetagg)
  • Coyote:
  • Add: 60362: Add a new Connector configuration sendReasonPhrase. When this attribute is set to true, a reason phrase will be sent with the response. By default a reason phrase will not be sent. This option is deprecated and is not available in Tomcat 9. (violetagg)
  • Fix: Fix HTTP/2 incorrect input unblocking on EOF. (remm)
  • Fix: Close the connection sooner if an event occurs for a current connection that is not consistent with the current state of that connection. (markt)
  • Fix: Speed up shutdown when using multiple acceptor threads by ensuring that the code that unlocks the acceptor threads correctly handles the case where there are multiple threads. (markt)
  • Fix: 60852: Correctly spell compressible when used in configuration attributes and internal code. Based on a patch by Michael Osipov. (markt)
  • Fix: 60900: Avoid a NullPointerException in the APR Poller if a connection is closed at the same time as new data arrives on that connection. (markt)
  • Fix: Improve HPACK specification compliance by fixing some test failures reported by the h2spec tool written by Moto Ishizawa. (markt)
  • Fix: Improve HTTP/2 specification compliance by fixing some test failures reported by the h2spec tool written by Moto Ishizawa. (markt)
  • Fix: 60918: Fix sendfile processing error that could lead to subsequent requests experiencing an IllegalStateException. (markt)
  • Fix: Improve sendfile handling when requests are pipelined. (markt)
  • Jasper:
  • Fix: Improve the error handling for simple tags to ensure that the tag is released and destroyed once used. (remm, violetagg)
  • Fix: 60844: Correctly handle the error when fewer parameter values than required by the method are used to invoke an EL method expression. Patch provided by Daniel Gray. (markt)
  • jdbc-pool:
  • Fix: 60764: Implement equals() and hashCode() in the StatementFacade in order to enable these methods to be called on the closed statements if any statement proxy is set. This behavior can be changed with useStatementFacade attribute. (kfujino)
  • Other:
  • Fix: Refactor the build script and the NSIS installer script so that either NSIS 2.x or NSIS 3.x can be used to build the installer. This is primarily to re-enable building the installer on the Linux based CI system where the combination of NSIS 3.x and wine leads to failed installer builds. (markt)

New in Apache Tomcat 9.0.0 M19 (alpha) (Mar 31, 2017)

  • Catalina:
  • Add: 54618: Add support to the HttpHeaderSecurityFilter for the HSTS preload parameter. (markt)
  • Fix: Correct a bug in the implementation of the Servlet 4.0 feature that allows specifying a default request and/or response character encoding per web application. null values passed via the programmatic interface no longer trigger a NullPointerException. (markt)
  • Fix: Correct a potential exception during shutdown when one or more Containers are configured with a value of 1 for startStopThreads. (markt)
  • Fix: 60853: Expose the SSLHostConfig and SSLHostConfigCertificate objects via JMX. (markt)
  • Fix: 60876: Ensure that Set-Cookie headers generated by the Rfc6265CookieProcessor are aligned with the specification. Patch provided by Jim Griswold. (markt)
  • Fix: 60882: Fix a NullPointerException when obtaining a RequestDispatcher for a request that will not have any pathInfo associated with it. This was a regression in the changes in 9.0.0.M18 for the Servlet 4.0 API changes. (markt)
  • Update: Align PushBuilder API with changes from the Servlet expert group. (markt)
  • Update: Align web.xml parsing rules with changes from the Servlet expert group for <request-character-encoding> and <response-character-encoding>. (markt)
  • Code: Refactor the various implementations of X to comma separated list to a single utility class and update the code to use the new utility class. (markt)
  • Fix: 60911: Ensure NPE will not be thrown when looking for SSL session ID. Based on a patch by Didier Gutacker. (violetagg)
  • Coyote:
  • Fix: Add async based IO groundwork for HTTP/2. (remm)
  • Fix: Fix HTTP/2 incorrect input unblocking on EOF. (remm)
  • Fix: Close the connection sooner if an event occurs for a current connection that is not consistent with the current state of that connection. (markt)
  • Fix: Speed up shutdown when using multiple acceptor threads by ensuring that the code that unlocks the acceptor threads correctly handles the case where there are multiple threads. (markt)
  • Fix: 60851: Add application/xml and application/json to the default list of compressible MIME types. Patch by Michael Osipov. (markt)
  • Fix: 60852: Correctly spell compressible when used in configuration attributes and internal code. Based on a patch by Michael Osipov. (markt)
  • Fix: 60900: Avoid a NullPointerException in the APR Poller if a connection is closed at the same time as new data arrives on that connection. (markt)
  • Fix: Improve HPACK specification compliance by fixing some test failures reported by the h2spec tool written by Moto Ishizawa. (markt)
  • Fix: Improve HTTP/2 specification compliance by fixing some test failures reported by the h2spec tool written by Moto Ishizawa. (markt)
  • Fix: 60918: Fix sendfile processing error that could lead to subsequent requests experiencing an IllegalStateException. (markt)
  • Fix: Improve sendfile handling when requests are pipelined. (markt)
  • Jasper:
  • Fix: 60844: Correctly handle the error when fewer parameter values than required by the method are used to invoke an EL method expression. Patch provided by Daniel Gray. (markt)
  • jdbc-pool:
  • Fix: 60764: Implement equals() and hashCode() in the StatementFacade in order to enable these methods to be called on the closed statements if any statement proxy is set. This behavior can be changed with useStatementFacade attribute. (kfujino)
  • Other:
  • Fix: Refactor the build script and the NSIS installer script so that either NSIS 2.x or NSIS 3.x can be used to build the installer. This is primarily to re-enable building the installer on the Linux based CI system where the combination of NSIS 3.x and wine leads to failed installer builds. (markt)

New in Apache Tomcat 9.0.0.M18 (alpha) (Mar 14, 2017)

  • Catalina:
  • Fix: 60469: Refactor RealmBase for better code re-use when implementing Realms that use a custom Principal. (markt)
  • Fix: 60490: Various formatting and layout improvements for the ErrorReportValve. Patch provided by Michael Osipov. (markt)
  • Fix: 60573: Remove the reason phrase when sending a 100 response status for consistency with other response status lines. Patch provided by Michael Osipov. (markt)
  • Update: 60596: Improve performance of DefaultServlet when sendfile feature is disabled on connector. (kkolinko)
  • Code: Make it easier for sub-classes of Tomcat to modify the default web.xml settings by over-riding getDefaultWebXmlListener(). Patch provided by Aaron Anderson. (markt)
  • Fix: Reduce the contention in the default InstanceManager implementation when multiple threads are managing objects and need to reference the annotation cache. (markt)
  • Fix: 60623: When startStopThreads is 1 (or a special value that is equivalent to 1) then rather than using an ExecutorService to start the children of the current component, the children will be started on the current thread. (markt)
  • Code: 60674: Remove final marker from CorsFilter to enable sub-classing. (markt)
  • Fix: 60683: Security manager failure causing NPEs when doing IO on some JVMs. (csutherl)
  • Fix: 60688: Update the internal fork of Apache Commons BCEL to r1782855 to add early access Java 9 support to the annotation scanning code. (markt)
  • Fix: 60694: Prevent NPE during authentication when no JASPIC AuthConfigFactory is available. (markt)
  • Fix: 60697: When HTTP TRACE requests are disabled on the Connector, ensure that the HTTP OPTIONS response from custom servlets does not include TRACE in the returned Allow header. (markt)
  • Fix: 60718: Improve error handling for asynchronous processing and correct a number of cases where the requestDestroyed() event was not being fired and an entry wasn't being made in the access logs. (markt)
  • Fix: 60720: Replace "WWW-Authenticate" literal with static final AUTH_HEADER_NAME in SpnegoAuthenticator. Patch provided by Michael Osipov. (violetagg)
  • Fix: The default JASPIC AuthConfigFactory now correctly notifies registered RegistrationListeners when a new AuthConfigProvider is registered. (markt)
  • Code: Improve the performance of AuthenticatorBase when there is no JASPIC configuration available. (violetagg)
  • Fix: When HTTP TRACE requests are disabled on the Connector, ensure that the HTTP OPTIONS response from custom the WebDAV servlet does not include TRACE in the returned Allow header. (markt)
  • Fix: 60722: Take account of the dispatchersUseEncodedPaths setting on the current Context when generating paths for dispatches triggered by AsyncContext.dispatch(). (markt)
  • Fix: 60728: Make the separator Tomcat uses in the Tomcat specific war:file:... URL protocol customizable via a system property. The separator is equivalent to the use of the ! character in jar:file:... URLs. The default separator of * remains unchanged. (markt)
  • Update: Update the Servlet 4.0 API implementation to align with the latest proposals from the Servlet 4.0 expert group. This includes updates to the new Servlet mapping API, new methods on the ServletContext to make the available API more equivalent to the deployment descriptor, updates to the HTTP push API and the ability to set default request and response character encoding per web application. Note that the Servlet 4.0 API is still a work in progress and further changes are likely. (markt)
  • Fix: 60798: Correct a bug in the handling of JARs in unpacked WARs that meant multiple attempts to read the same entry from a JAR in succession would fail for the second and subsequent attempts. (markt)
  • Fix: 60808: Ensure that the Map returned by ServletRequest.getParameterMap() is fully immutable. Based on a patch provided by woosan. (markt)
  • Fix: 60824: Correctly cache the Subject in the session - if there is a session - when running under a SecurityManager. Patch provided by Jan Engehausen. (markt)
  • Fix: Ensure request and response facades are used when firing application listeners. (markt/remm)
  • Coyote:
  • Fix: Improve handling of case when an HTTP/2 client sends more data that is subject to flow control than the current window size allows. (markt)
  • Fix: Improve NIO2 look-ahead parsing of TLS client hello for SNI with large client hello messages. (markt)
  • Add: Enable ALPN and also, therefore, HTTP/2 for the NIO and NIO2 HTTP connectors when using the JSSE implementation for TLS when running on Java 9. (markt)
  • Fix: Restore Java 9 direct byte buffer compatibility. (remm)
  • Fix: 59807: Provide a better error message when there is no SSLHostConfig defined with a hostName that matches the defaultSSLHostConfigName for the associated Connector. (markt)
  • Fix: 60627: Modify the Rfc6265CookieProcessor so that in addition to cookie headers that start with an explicit RFC 2109 $Version=1, cookies that start with $Version=0 are also parsed as RFC 2109 cookies. (markt)
  • Fix: Include the value of SslHostConfig.truststoreAlgorithm when warning that the algorithm does not support the certificateVerificationDepth configuration option. (markt)
  • Fix: Ensure that executor thread pools used with connectors pre-start the configured minimum number of idle threads. (markt)
  • Fix: 60716: Add a new JSSE specific attribute, revocationEnabled, to SSLHostConfig to permit JSSE provider revocation checks to be enabled when no certificateRevocationListFile has been configured. The expectation is that configuration will be performed via a JSSE provider specific mechanisms. (markt)
  • Fix: Modify the cookie header generated by the Rfc6265CookieProcessor so it always sends an Expires attribute as well as a Max-Age attribute to avoid problems with Microsoft browsers that do not support the Max-Age attribute. (markt)
  • Fix: 60761: Expose a protected getter and setter for NioEndpoint.stopLatch to make the class easier to extend. (markt)
  • Fix: Prevent blocking reads after a stream exception occurs with HTTP/2. (remm)
  • Jasper:
  • Fix: Follow up to the fix for 58178. When creating the ELContext for a tag file, ensure that any registered ELContextListeners are fired. (markt)
  • Fix: Refactor code generated for JSPs to reduce the size of the code required for tags. (markt)
  • Fix: Improve the error handling for simple tags to ensure that the tag is released and destroyed once used. (remm, violetagg)
  • Fix: 60769: Correct a regression in the XML encoding detection refactoring carried out for 9.0.0.M16 that incorrectly always used the detected BOM encoding in preference to any encoding specified in the prolog. (markt)
  • Cluster:
  • Add: Make the accessTimeout configurable in BackupManager and ClusterSingleSignOn. The accessTimeout is used as a timeout period for PING in replication map. (kfujino)
  • Fix: 60806: To avoid ClassNotFoundException, make sure that the web application class loader is passed to ReplicatedContext. (kfujino)
  • WebSocket:
  • Fix: 60617: Correctly create a CONNECT request when establishing a WebSocket connection via a proxy. Patch provided by Svetlin Zarev. (markt)
  • Tribes:
  • Add: Add log message that PING message has received beyond the timeout period. (kfujino)
  • Fix: When a PING message that beyond the time-out period has been received, make sure that valid member is added to the map membership. (kfujino)
  • Fix: Ensure that NoRpcChannelReply messages are not received on RpcCallback. (kfujino)
  • Web Applications:
  • Fix: Add Specification and Javadoc references for JASPIC to the Docs application. (csutherl)
  • Other:
  • Fix: Spelling corrections provided by Josh Soref. (violetagg)
  • Code: Remove local definition of web service annotations since these are provided by the JRE. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.12 to pick up the latest Windows binaries built with OpenSSL 1.0.2k. (violetagg)
  • Add: 60784: Update all unit tests that test the HTTP status line to check for the required space after the status code. Patch provided by Michael Osipov. (markt)

New in Apache Tomcat 8.5.12 (Mar 14, 2017)

  • Catalina:
  • Fix: 60469: Refactor RealmBase for better code re-use when implementing Realms that use a custom Principal. (markt)
  • Fix: 60490: Various formatting and layout improvements for the ErrorReportValve. Patch provided by Michael Osipov. (markt)
  • Update: 60596: Improve performance of DefaultServlet when sendfile feature is disabled on connector. (kkolinko)
  • Code: Make it easier for sub-classes of Tomcat to modify the default web.xml settings by over-riding getDefaultWebXmlListener(). Patch provided by Aaron Anderson. (markt)
  • Fix: Reduce the contention in the default InstanceManager implementation when multiple threads are managing objects and need to reference the annotation cache. (markt)
  • Code: 60674: Remove final marker from CorsFilter to enable sub-classing. (markt)
  • Fix: 60683: Security manager failure causing NPEs when doing IO on some JVMs. (coty)
  • Fix: 60688: Update the internal fork of Apache Commons BCEL to r1782855 to add early access Java 9 support to the annotation scanning code. (markt)
  • Fix: 60694: Prevent NPE during authentication when no JASPIC AuthConfigFactory is available. (markt)
  • Fix: 60697: When HTTP TRACE requests are disabled on the Connector, ensure that the HTTP OPTIONS response from custom servlets does not include TRACE in the returned Allow header. (markt)
  • Fix: 60718: Improve error handling for asynchronous processing and correct a number of cases where the requestDestroyed() event was not being fired and an entry wasn't being made in the access logs. (markt)
  • Fix: 60720: Replace "WWW-Authenticate" literal with static final AUTH_HEADER_NAME in SpnegoAuthenticator. Patch provided by Michael Osipov. (violetagg)
  • Fix: The default JASPIC AuthConfigFactory now correctly notifies registered RegistrationListeners when a new AuthConfigProvider is registered. (markt)
  • Code: Improve the performance of AuthenticatorBase when there is no JASPIC configuration available. (violetagg)
  • Fix: When HTTP TRACE requests are disabled on the Connector, ensure that the HTTP OPTIONS response from custom the WebDAV servlet does not include TRACE in the returned Allow header. (markt)
  • Fix: 60722: Take account of the dispatchersUseEncodedPaths setting on the current Context when generating paths for dispatches triggered by AsyncContext.dispatch(). (markt)
  • Fix: 60728: Make the separator Tomcat uses in the Tomcat specific war:file:... URL protocol customizable via a system property. The separator is equivalent to the use of the ! character in jar:file:... URLs. The default separator of * remains unchanged. (markt)
  • Update: Update the org.apache.catalina.servlet4preview package that can be used to gain early access to Servlet 4.0 features to align with the latest proposals from the Servlet 4.0 expert group. This includes updates to the new Servlet mapping API, new methods on the ServletContext to make the available API more equivalent to the deployment descriptor, updates to the HTTP push API and the ability to set default request and response character encoding per web application. Note that the Servlet 4.0 API is still a work in progress and further changes are likely. (markt)
  • Fix: 60798: Correct a bug in the handling of JARs in unpacked WARs that meant multiple attempts to read the same entry from a JAR in succession would fail for the second and subsequent attempts. (markt)
  • Fix: 60808: Ensure that the Map returned by ServletRequest.getParameterMap() is fully immutable. Based on a patch provided by woosan. (markt)
  • Fix: 60824: Correctly cache the Subject in the session - if there is a session - when running under a SecurityManager. Patch provided by Jan Engehausen. (markt)
  • Fix: Ensure request and response facades are used when firing application listeners. (markt/remm)
  • Coyote:
  • Fix: Improve handling of case when an HTTP/2 client sends more data that is subject to flow control than the current window size allows. (markt)
  • Fix: Improve NIO2 look-ahead parsing of TLS client hello for SNI with large client hello messages. (markt)
  • Fix: 59807: Provide a better error message when there is no SSLHostConfig defined with a hostName that matches the defaultSSLHostConfigName for the associated Connector. (markt)
  • Fix: 60627: Modify the Rfc6265CookieProcessor so that in addition to cookie headers that start with an explicit RFC 2109 $Version=1, cookies that start with $Version=0 are also parsed as RFC 2109 cookies. (markt)
  • Fix: Include the value of SslHostConfig.truststoreAlgorithm when warning that the algorithm does not support the certificateVerificationDepth configuration option. (markt)
  • Fix: Ensure that executor thread pools used with connectors pre-start the configured minimum number of idle threads. (markt)
  • Add: 60594: Allow some invalid characters that were recently restricted to be processed in requests by using the system property tomcat.util.http.parser.HttpParser.requestTargetAllow. (csutherl)
  • Fix: 60716: Add a new JSSE specific attribute, revocationEnabled, to SSLHostConfig to permit JSSE provider revocation checks to be enabled when no certificateRevocationListFile has been configured. The expectation is that configuration will be performed via a JSSE provider specific mechanisms. (markt)
  • Fix: Modify the cookie header generated by the Rfc6265CookieProcessor so it always sends an Expires attribute as well as a Max-Age attribute to avoid problems with Microsoft browsers that do not support the Max-Age attribute. (markt)
  • Fix: 60761: Expose a protected getter and setter for NioEndpoint.stopLatch to make the class easier to extend. (markt)
  • Fix: Prevent blocking reads after a stream exception occurs with HTTP/2. (remm)
  • Jasper:
  • Fix: Follow up to the fix for 58178. When creating the ELContext for a tag file, ensure that any registered ELContextListeners are fired. (markt)
  • Fix: Refactor code generated for JSPs to reduce the size of the code required for tags. (markt)
  • Fix: 60769: Correct a regression in the XML encoding detection refactoring carried out for 8.5.10 that incorrectly always used the detected BOM encoding in preference to any encoding specified in the prolog. (markt)
  • Update: Update to the Eclipse JDT Compiler 4.6.1. (markt)
  • Cluster:
  • Add: Make the accessTimeout configurable in BackupManager and ClusterSingleSignOn. The accessTimeout is used as a timeout period for PING in replication map. (kfujino)
  • Fix: 60806: To avoid ClassNotFoundException, make sure that the web application class loader is passed to ReplicatedContext. (kfujino)
  • WebSocket:
  • Fix: 60617: Correctly create a CONNECT request when establishing a WebSocket connection via a proxy. Patch provided by Svetlin Zarev. (markt)
  • Tribes
  • Add: Add log message that PING message has received beyond the timeout period. (kfujino)
  • Fix: When a PING message that beyond the time-out period has been received, make sure that valid member is added to the map membership. (kfujino)
  • Fix: Ensure that NoRpcChannelReply messages are not received on RpcCallback. (kfujino)
  • Web Applications:
  • Fix: Add Specification and Javadoc references for JASPIC to the Docs application. (csutherl)
  • Other:
  • Fix: Spelling corrections provided by Josh Soref. (violetagg)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.12 to pick up the latest Windows binaries built with OpenSSL 1.0.2k. (violetagg)
  • Add: 60784: Update all unit tests that test the HTTP status line to check for the required space after the status code. Patch provided by Michael Osipov. (markt)
  • Update: Update the NSIS Installer used to build the Windows installer to version 3.01. (markt)

New in Apache Tomcat 9.0.0 M17 (Mar 9, 2017)

  • Catalina:
  • Add: Extend the JreMemoryLeakPreventionListener to provide protection against ForkJoinPool.commonPool() related memory leaks. (markt)
  • Coyote:
  • Fix: Ensure UpgradeProcessor instances associated with closed connections are removed from the map of current connections to Processors. (markt)
  • Fix: Remove a workaround for a problem previously reported with WebSocket, TLS and APR that treated some error conditions as not errors. The original problem cannot be reproduced with the current code and the work-around is now causing problems. (markt)
  • Jasper:
  • Fix: 60497: Follow up fix using a better variable name for the tag reuse flag. (remm)
  • Fix: Revert use of try/finally for simple tags. (remm)
  • WebSocket:
  • Fix: Prevent potential processing loop on unexpected WebSocket connection closure. (markt)
  • jdbc-pool
  • Add: Enable reset the statistics without restarting the pool. (kfujino)
  • Other
  • Update: Update the NSIS Installer used to build the Windows installer to version 3.01. (markt)
  • Fix: Spelling corrections provided by Josh Soref. (violetagg)

New in Apache Tomcat 8.5.11 (Mar 9, 2017)

  • Catalina:
  • Add: Extend the JreMemoryLeakPreventionListener to provide protection against ForkJoinPool.commonPool() related memory leaks. (markt)
  • Coyote:
  • Fix: Ensure UpgradeProcessor instances associated with closed connections are removed from the map of current connections to Processors. (markt)
  • Fix: Remove a workaround for a problem previously reported with WebSocket, TLS and APR that treated some error conditions as not errors. The original problem cannot be reproduced with the current code and the work-around is now causing problems. (markt)
  • Jasper:
  • Fix: 60497: Follow up fix using a better variable name for the tag reuse flag. (remm)
  • Fix: Revert use of try/finally for simple tags. (remm)
  • WebSocket:
  • Fix: Prevent potential processing loop on unexpected WebSocket connection closure. (markt)
  • jdbc-pool
  • Add: Enable reset the statistics without restarting the pool. (kfujino)
  • Other
  • Fix: Spelling corrections provided by Josh Soref. (violetagg)

New in Apache Tomcat 8.5.8 (Dec 4, 2016)

  • Coyote:
  • Fix: Check that threadPriority values used in AbstractProtocol are valid. (fschumacher)

New in Apache Tomcat 8.5.7 (Dec 4, 2016)

  • Catalina:
  • Fix: When creating a new Connector via JMX, ensure that both HTTP/1.1 and AJP/1.3 connectors can be created. (markt)
  • Fix: Include the Context name in the log message when an item cannot be added to the cache. (markt)
  • Fix: Exclude JAR files in /WEB-INF/lib from the static resource cache. (markt)
  • Fix: When calling getResourceAsStream() on a directory, ensure that null is returned. (markt)
  • Fix: 60161: Allow creating subcategories of the container logger, and use it for the rewrite valve. (remm)
  • Fix: Correctly test for control characters when reading the provided shutdown password. (markt)
  • Fix: 60297: Simplify connector creation in embedded mode. (remm)
  • Fix: Refactor creation of containers in embedded mode for more consistency and flexibility. (remm)
  • Add: Introduce new methods read(ByteBuffer)/ write(ByteBuffer) in o.a.catalina.connector.CoyoteInputStream/ o.a.catalina.connector.CoyoteOutputStream. (violetagg)
  • Fix: When configuring the JMX remote listener, specify the allowed types for the credentials. (markt)
  • Coyote:
  • Fix: Correct the HPACK header table size configuration that transposed the client and server table sizes when creating the encoder and decoder. (markt)
  • Fix: Don't continue to process an HTTP/2 stream if it is reset during header parsing. (markt)
  • Fix: HTTP/2 uses separate headers for each Cookie. As required by RFC 7540, merge these into a single Cookie header before processing continues. (markt)
  • Fix: Align the HTTP/2 implementation with the HTTP/1.1 implementation and return a 500 response when an unhandled exception occurs during request processing. (markt)
  • Fix: Correct the HTTP header parser so that DEL is not treated as a valid token character. (markt)
  • Add: Add checks around the handling of HTTP/2 pseudo headers. (markt)
  • Add: Add support for trailer headers to the HTTP/2 implementation. (markt)
  • Fix: 60232: When processing headers for an HTTP/2 stream, ensure that the read buffer is large enough for the header being processed. (markt)
  • Add: Add configuration options to the HTTP/2 implementation to control the maximum number of headers allowed, the maximum size of headers allowed, the maximum number of trailer headers allowed, the maximum size of trailer headers allowed and the maximum number of cookies allowed. (markt)
  • Fix: Correctly differentiate between sending and receiving a reset frame when tracking the state of an HTTP/2 stream. (markt)
  • Fix: 60319: When using an Executor, disconnect it from the Connector attributes maxThreads, minSpareThreads and threadPriority to enable the configuration settings to be consistently reported. These Connector attributes will be reported as -1 when an Executor is in use. The values used by the executor may be set and obtained via the Executor. (markt)
  • Fix: If an I/O error occurs during async processing on a non-container thread, ensure that the onError() event is triggered. (markt)
  • Fix: Improve detection of I/O errors during async processing on non-container threads and trigger async error handling when they are detected. (markt)
  • Add: Add additional checks for valid characters to the HTTP request line parsing so invalid request lines are rejected sooner. (markt)
  • Jasper:
  • Update: Update to the Eclipse JDT Compiler 4.6.1. (markt)
  • Web applications:
  • Add: Add HTTP/2 configuration information to the documentation web application. (markt)
  • Fix: Fix default value of validationInterval attribute in jdbc-pool. (kfujino)
  • Fix: Correct a typo in CGI How-To. Issue reported via comments.apache.org. (violetagg)
  • Tribes:
  • Fix: When the proxy node sends a backup retrieve message, ensure that using the channelSendOptions that has been set rather than the default channelSendOptions. (kfujino)
  • Other:
  • Add: Add the JASPIC API jar to the Maven Central publication script. (markt)
  • Fix: Remove classes from tomcat-util-scan.jar that are duplicates of those in tomcat-util.jar. (markt)

New in Apache Tomcat 9.0.0 M11 (Oct 12, 2016)

  • Catalina:
  • Add: 59961: Add an option to the StandardJarScanner to control whether or not JAR Manifests are scanned for additional class path entries. (markt)
  • Fix: 60013: Refactor the previous fix to align the behaviour of the Rewrite Valve with mod_rewrite. As part of this, provide an implementation for the B and NE flags and improve the handling for the QSA flag. Includes multiple test cases by Santhana Preethiand a patch by Tiago Oliveira. (markt)
  • Fix: 60087: Refactor the web resources handling to use the Tomcat specific war:file:... URL protocol to refer to WAR files and their contents rather than the standard jar:file:... form since some components of the JRE, such as JAR verification, give unexpected results when the standard form is used. A side-effect of the refactoring is that when using packed WARs, it is now possible to reference a WAR and/or specific JARs within a WAR in the security policy file used when running under a SecurityManager. (markt)
  • Fix: 60116: Fix a problem with the rewrite valve that caused back references evaluated in conditions to be forced to lower case when using the NC flag. (markt)
  • Fix: Ensure Digester.useContextClassLoader is considered in case the class loader is used. (violetagg)
  • Fix: 60117: Ensure that the name of LogLevel is localized when using OneLineFormatter. Patch provided by Tatsuya Bessho. (kfujino)
  • Fix: 60138: Fix the SSLHostConfig so that the protocols attribute is limited to the protocols supported by the current JSSE implementation rather than the default protocols used by the implementation. (markt)
  • Fix: 60146: Improve performance for resource retrieval by making calls to WebResource.getInputStream() trigger caching if the resource is small enough. Patch provided by mohitchugh. (markt)
  • Add: 60151: Improve the exception error messages when a ResourceLink fails to specify the type, specifies an unknown type or specifies the wrong type. (markt)
  • Fix: 60167: Ignore empty lines in /etc/passwd files when using the PasswdUserDatabase. (markt)
  • Fix: 60170: Exclude the compressed test file index.html.br from RAT analysis. Patch provided by Gavin McDonald. (markt)
  • Fix: When starting web resources, ensure that class resources are only started once. (markt)
  • Fix: Improve the access checks for linked global resources to handle the case where the current class loader is a child of the web application class loader. (markt)
  • Fix: 60196: Ensure that the isMandatory flag is correctly set when using JASPIC authentication. (markt)
  • Fix: 60199: Log a warning if deserialization issues prevent a session attribute from being loaded. (markt)
  • Fix: 60208: When using RFC6265 compliant cookies, the / character should not be allowed in a cookie name since the RFC6265 will drop such cookies as invalid. (markt)
  • Coyote:
  • Add: Refactor the code that implements the requirement that a call to complete() or dispatch() made from a non-container thread before the container initiated thread that called startAsync() completes must be delayed until the container initiated thread has completed. Rather than implementing this by blocking the non-container thread, extend the internal state machine to track this. This removes the possibility that blocking the non-container thread could trigger a deadlock. (markt)
  • Fix: Fail earlier if the client closes the connection during SNI processing. (markt)
  • Fix: 60123: Avoid potential threading issues that could cause excessively large vales to be returned for the processing time of a current request. (markt)
  • Fix: 60174: Log instances of HeadersTooLargeException during request processing. (markt)
  • Fix: 60173: Allow up to 64kB HTTP/2 header table size limit. (remm)
  • Fix: Java 9 compatibility of direct ByteBuffer cleaner. (remm)
  • Jasper:
  • Fix: 60101: Remove preloading of the class that was deleted. (violetagg)
  • Web applications:
  • Add: Expand the documentation for the nested elements within a Resources element to clarify the behaviour of different configuration options with respect to the order in which resources are searched. (markt)
  • Add: Add an example of using the classesToInitialize attribute of the JreMemoryLeakPreventionListener to the documentation web application. Based on a patch by Cris Berneburg. (markt)
  • Fix: 60192: Correct a typo in the status output of the Manager application. Patch provided by Radhakrishna Pemmasani. (markt)
  • jdbc-pool:
  • Fix: Notify jmx when returning the connection that has been marked suspect. (kfujino)
  • Fix: Ensure that the POOL_EMPTY notification has been added to the jmx notification types. (kfujino)
  • Fix: 60099: Ensure that use all method arguments as a cache key when using StatementCache. (kfujino)
  • Other:
  • Fix: Update the download location for Objenesis. (violetagg)
  • Fix: 60164: Replace log4j-core*.jar with log4j-web*.jar since it is log4j-web*.jar that contains the ServletContainerInitializer. (markt)
  • Add: Add documentation to the bin/catalina.bat script to remind users that environment variables don't affect the configuration of Tomcat when run as a Windows Service. Based upon a documentation patch by James H.H. Lampert. (schultz)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.10 to pick up the latest Windows binaries built with OpenSSL 1.0.2j. (markt)

New in Apache Tomcat 8.5.6 (Oct 12, 2016)

  • Catalina:
  • Add: 59961: Add an option to the StandardJarScanner to control whether or not JAR Manifests are scanned for additional class path entries. (markt)
  • Fix: 60013: Refactor the previous fix to align the behaviour of the Rewrite Valve with mod_rewite. As part of this, provide an implementation for the B and NE flags and improve the handling for the QSA flag. Includes multiple test cases by Santhana Preethiand a patch by Tiago Oliveira. (markt)
  • Fix: 60087: Refactor the web resources handling to use the Tomcat specific war:file:... URL protocol to refer to WAR files and their contents rather than the standard jar:file:... form since some components of the JRE, such as JAR verification, give unexpected results when the standard form is used. A side-effect of the refactoring is that when using packed WARs, it is now possible to reference a WAR and/or specific JARs within a WAR in the security policy file used when running under a SecurityManager. (markt)
  • Fix: 60116: Fix a problem with the rewrite valve that caused back references evaluated in conditions to be forced to lower case when using the NC flag. (markt)
  • Fix: Ensure Digester.useContextClassLoader is considered in case the class loader is used. (violetagg)
  • Fix: 60117: Ensure that the name of LogLevel is localized when using OneLineFormatter. Patch provided by Tatsuya Bessho. (kfujino)
  • Fix: 60138: Fix the SSLHostConfig so that the protocols attribute is limited to the protocols supported by the current JSSE implementation rather than the default protocols used by the implementation. (markt)
  • Fix: 60146: Improve performance for resource retrieval by making calls to WebResource.getInputStream() trigger caching if the resource is small enough. Patch provided by mohitchugh. (markt)
  • Add: 60151: Improve the exception error messages when a ResourceLink fails to specify the type, specifies an unknown type or specifies the wrong type. (markt)
  • Fix: 60167: Ignore empty lines in /etc/passwd files when using the PasswdUserDatabase. (markt)
  • Fix: 60170: Exclude the compressed test file index.html.br from RAT analysis. Patch provided by Gavin McDonald. (markt)
  • Fix: When starting web resources, ensure that class resources are only started once. (markt)
  • Fix: Improve the access checks for linked global resources to handle the case where the current class loader is a child of the web application class loader. (markt)
  • Fix: 60196: Ensure that the isMandatory flag is correctly set when using JASPIC authentication. (markt)
  • Fix: 60199: Log a warning if deserialization issues prevent a session attribute from being loaded. (markt)
  • Fix: 60208: When using RFC6265 compliant cookies, the / character should not be allowed in a cookie name since the RFC6265 will drop such cookies as invalid. (markt)
  • Coyote:
  • Add: Refactor the code that implements the requirement that a call to complete() or dispatch() made from a non-container thread before the container initiated thread that called startAsync() completes must be delayed until the container initiated thread has completed. Rather than implementing this by blocking the non-container thread, extend the internal state machine to track this. This removes the possibility that blocking the non-container thread could trigger a deadlock. (markt)
  • Fix: Fail earlier if the client closes the connection during SNI processing. (markt)
  • Fix: 60123: Avoid potential threading issues that could cause excessively large vales to be returned for the processing time of a current request. (markt)
  • Fix: 60174: Log instances of HeadersTooLargeException during request processing. (markt)
  • Fix: 60173: Allow up to 64kB HTTP/2 header table size limit. (remm)
  • Fix: Java 9 compatibility of direct ByteBuffer cleaner. (remm)
  • Jasper:
  • Fix: 60101: Remove preloading of the class that was deleted. (violetagg)
  • Web applications:
  • Add: Expand the documentation for the nested elements within a Resources element to clarify the behaviour of different configuration options with respect to the order in which resources are searched. (markt)
  • Add: Add an example of using the classesToInitialize attribute of the JreMemoryLeakPreventionListener to the documentation web application. Based on a patch by Cris Berneburg. (markt)
  • Fix: 60192: Correct a typo in the status output of the Manager application. Patch provided by Radhakrishna Pemmasani. (markt)
  • jdbc-pool:
  • Fix: Notify jmx when returning the connection that has been marked suspect. (kfujino)
  • Fix: Ensure that the POOL_EMPTY notification has been added to the jmx notification types. (kfujino)
  • Fix: 60099: Ensure that use all method arguments as a cache key when using StatementCache. (kfujino)
  • Fix: 60139: Correct Javadocs for PoolConfiguration.getValidationInterval and setValidationInterval. Reported by Phillip Webb. (kfujino)
  • Other:
  • Fix: Update the download location for Objenesis. (violetagg)
  • Fix: 60164: Replace log4j-core*.jar with log4j-web*.jar since it is log4j-web*.jar that contains the ServletContainerInitializer. (markt)
  • Add: Add documentation to the bin/catalina.bat script to remind users that environment variables don't affect the configuration of Tomcat when run as a Windows Service. Based upon a documentation patch by James H.H. Lampert. (schultz)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.10 to pick up the latest Windows binaries built with OpenSSL 1.0.2j. (markt)

New in Apache Tomcat 9.0.0 M10 (Sep 6, 2016)

  • Catalina:
  • Fix: 59813: Ensure that circular relations of the Class-Path attribute from JAR manifests will be processed correctly. (violetagg)
  • Fix: Ensure that reading the singleThreadModel attribute of a StandardWrapper via JMX does not trigger initialisation of the associated servlet. With some frameworks this can trigger an unexpected initialisation thread and if initilisation is not thread-safe the initialisation can then fail. (markt)
  • Fix: Compatibility with rewrite from httpd for non existing headers. (jfclere)
  • Fix: By default, treat paths used to obtain a request dispatcher as encoded. This behaviour can be changed per web application via the dispatchersUseEncodedPaths attribute of the Context. (markt)
  • Add: Provide a mechanism that enables the container to check if a component (typically a web application) has been granted a given permission when running under a SecurityManager without the current execution stack having to have passed through the component. Use this new mechanism to extend SecurityManager protection to the system property replacement feature of the digester. (markt)
  • Add: When retrieving an object via a ResourceLink, ensure that the object obtained is of the expected type. (markt)
  • Fix: 59823: Ensure that JASPIC configuration is taken into account when calling HttpServletRequest.authenticate(). (markt)
  • Fix: 59824: Mark the RewriteValve as supporting async processing by default. (markt)
  • Fix: 59839: Apply roleSearchAsUser to all nested searches in JNDIRealm. (fschumacher)
  • Fix: 59859: Fix resource leak in WebDAV servlet. Based on patch by Coty Sutherland. (fschumacher)
  • Fix: 59862: Allow nested jar files scanning to be filtered with the system property tomcat.util.scan.StandardJarScanFilter.jarsToSkip. Patch is provided by Terence Bandoian. (violetagg)
  • Fix: 59866: When scanning WEB-INF/classes for annotations, don't scan the contents of WEB-INF/classes/META-INF (if present) since classes will never be loaded from that location. (markt)
  • Fix: 59888: Correctly handle tabs and spaces in quoted version one cookies when using the Rfc6265CookieProcessor. (markt)
  • Fix: A number of the JRE memory leaks addressed by the JreMemoryLeakPreventionListener have been fixed in Java 9 so the associated protection is now disabled when running on Java 9 onwards. (markt)
  • Fix: 59912: Fix an edge case in input stream handling where an IOException could be thrown when reading a POST body. (markt)
  • Fix: 59913: Correct a regression introduced with the support for the Servlet 4 HttpServletRequest.getMapping() API that caused the attributes for forwarded requests to be lost if requested from within a subsequent include. (markt)
  • Fix: 59966: Do not start the web application if the error page configuration in web.xml is invalid. (markt)
  • Fix: Switch the CGI servlet to the standard logging mechanism and remove support for the debug attribute. (markt)
  • Fix: 60012: Improvements in the log messages. Based on suggestions by Nemo Chen. (violetagg)
  • Fix: Changes to the allowLinking attribute of a StandardRoot instance now invalidate the cache if caching is enabled. (markt)
  • Add: Add a new initialisation parameter, envHttpHeaders, to the CGI Servlet to mitigate httpoxy (CVE-2016-5388) by default and to provide a mechanism that can be used to mitigate any future, similar issues. (markt)
  • Add: When adding and removing ResourceLinks dynamically, ensure that the global resource is only visible via the ResourceLinkFactory when it is meant to be. (markt)
  • Fix: 60008: When processing CORs requests, treat any origin with a URI scheme of file as a valid origin. (markt)
  • Fix: Improve handling of exceptions during a Lifecycle events triggered by a state transition. The exception is now caught and the component is now placed into the FAILED state. (markt)
  • Fix: 60013: Fix encoding issues when using the RewriteValve with UTF-8 query strings or UTF-8 redirect URLs. (markt)
  • Fix: 60022: Improve handling when a WAR file and/or the associated exploded directory are symlinked into the appBase. (markt)
  • Fix: Fix a file descriptor leak when reading the global web.xml. (markt)
  • Fix: Consistently decode URL patterns provided via web.xml using the encoding of the web.xml file where specified or UTF-8 where no explicit encoding is specified. (markt)
  • Fix: Make timing attacks against the Realm implementations harder. (schultz)
  • Coyote:
  • Fix: Correct a regression in refactoring to enable injection of custom keystores that broke the automatic conversion of OpenSSL style PEM key and certificate files for use with JSSE TLS connectors. (markt)
  • Fix: 59867: Don't hardcode key alias value to "tomcat" for JSSE. When using a keystore, OpenSSL will still need default to though. (remm)
  • Fix: 59904: Add a limit (default 200) for the number of cookies allowed per request. Based on a patch by gehui. (markt)
  • Fix: 59925: Correct regression in r1628368 and ensure that HTTP separators are handled as configured in the LegacyCookieProcessor. Patch provided by Kyohei Nakamura. (markt)
  • Fix: 59950: Correct log message when reporting that the current number of HTTP/2 streams for a connection could not be pruned to below the limit. (markt)
  • Fix: Ensure that Semaphore.release is called in all cases. Even when there is an exception. (violetagg)
  • Fix: 60030: Correct a potential infinite loop in the SNI parsing code triggered by failing to handle an end of stream condition. (markt)
  • Fix: Refactor the JSSE client certificate validation so that the effectiveness of the certificateVerificationDepth configuration attribute does not depend on the presence of a certificate revokation list. (markt)
  • Fix: Small logging optimization in the Rfc6265CookieProcessor. Patch provided by Svetlin Zarev. (markt)
  • Fix: OpenSSL now disables 3DES by default so reflect this when using OpenSSL syntax to select ciphers. (markt)
  • Fix: Use the proper ERROR socket status code for async errors with NIO2. (remm)
  • Fix: 60035: Fix a potential connection leak if the client drops a TLS connection before the handshake completes. (markt)
  • Add: Log a warning at start up if a JSSE TLS connector is configured with a trusted certificate that is either not yet valid or has expired. (markt)
  • Jasper:
  • Fix: When writing out a full web.xml file with JspC ensure that the encoding used in the XML prolog matches the encoding used to write the contents of the file. (markt)
  • Fix: Improve the error handling for custom tags to ensure that the tag is returned to the pool or released and destroyed once used. (markt)
  • Fix: 60032: Fix handling of method calls that use varargs within EL value expressions. (markt)
  • Fix: Ignore engineOptionsClass and scratchdir when running under a security manager. (markt)
  • Fix: Fixed StringIndexOutOfBoundsException. Based on a patch provided by wuwen via Github. (violetagg)
  • WebSocket:
  • Fix: 59908: Ensure that a reason phrase is included in the close message if a session is closed due to a timeout. (markt)
  • Web applications:
  • Fix: 59867: Correct the documentation provided by Manager's 403.jsp. (violetagg)
  • Fix: 59868: Clarify the documentation for the Manager web application to make clearer that the host name and IP address in the server section are the primary host name and IP address. (markt)
  • Fix: 59940: Correct the name of the truststorePassword attribute of the SSLHostConfig element in the configuration documentation. (markt)
  • Fix: MBeans Descriptors How-To is moved to mbeans-descriptors-howto.html. Patch provided by Radoslav Husar. (violetagg)
  • Fix: Update NIO Connector configuration documentation with an information about socket.directSslBuffer. (violetagg)
  • Fix: 60034: Correct a typo in the Manager How-To page of the documentation web application. (markt)
  • Fix: Correct the name of the CRL location configuration attributes in the documentation web application. (markt)
  • jdbc-pool:
  • Fix: In order to avoid the unintended skip of PoolCleaner, remove the check code of the execution interval in the task that has been scheduled. (kfujino)
  • Fix: 59850: Ensure that the ResultSet is closed when enabling the StatementCache interceptor. (kfujino)
  • Fix: 59923: Reduce the default value of validationInterval in order to avoid the potential issue that continues to return an invalid connection after database restart. (kfujino)
  • Fix: Ensure that the ResultSet is returned as Proxy object when enabling the StatementDecoratorInterceptor. (kfujino)
  • Fix: 60043: Ensure that the suspectTimeout works without removing connection when the removeAbandoned is disabled. (kfujino)
  • Fix: Add log message of when returning the connection that has been marked suspect. (kfujino)
  • Fix: Correct Javadoc for ConnectionPool.suspect(). Based on a patch by Yahya Cahyadi. (markt)
  • Other:
  • Add: 59871: Add a property (timeFormat) to JULI's OneLineFormatter to enable the format of the time stamp used in log messages to be configured. (markt)
  • Fix: 59899: Update Tomcat's copy of the Java Persistence annotations to include the changes made in 2.1 / JavaEE 7. (markt)
  • Fix: Fixed typos in mbeans-descriptors.xml files. (violetagg)
  • Update: Update the internal fork of Commons BCEL to r1757132 to align with the BCEL 6 release. (markt)
  • Update: Update the internal fork of Commons DBCP2 to r1757164 to pick up a couple of bug fixes. (markt)
  • Update: Update the internal fork of Commons Codec to r1757174. Code formatting changes only. (markt)
  • Update: Update the internal fork of Commons FileUpload to afdedc9. This pulls in a fix to improve the performance with large multipart boundaries. (markt)

New in Apache Tomcat 8.5.5 (Sep 6, 2016)

  • Catalina:
  • Fix: 18500: Add limited support for wildcard host names and host aliases. Names of the form *.domainname are now permitted. Note that an exact host name match takes precedence over a wild card host name match. (markt)
  • Fix: 59813: Ensure that circular relations of the Class-Path attribute from JAR manifests will be processed correctly. (violetagg)
  • Fix: Ensure that reading the singleThreadModel attribute of a StandardWrapper via JMX does not trigger initialisation of the associated servlet. With some frameworks this can trigger an unexpected initialisation thread and if initilisation is not thread-safe the initialisation can then fail. (markt)
  • Fix: Compatibility with rewrite from httpd for non existing headers. (jfclere)
  • Fix: By default, treat paths used to obtain a request dispatcher as encoded. This behaviour can be changed per web application via the dispatchersUseEncodedPaths attribute of the Context. (markt)
  • Fix: 59839: Apply roleSearchAsUser to all nested searches in JNDIRealm. (fschumacher)
  • Fix: 59859: Fix resource leak in WebDAV servlet. Based on patch by Coty Sutherland. (fschumacher)
  • Add: Provide a mechanism that enables the container to check if a component (typically a web application) has been granted a given permission when running under a SecurityManager without the current execution stack having to have passed through the component. Use this new mechanism to extend SecurityManager protection to the system property replacement feature of the digester. (markt)
  • Add: When retrieving an object via a ResourceLink, ensure that the object obtained is of the expected type. (markt)
  • Fix: 59823: Ensure that JASPIC configuration is taken into account when calling HttpServletRequest.authenticate(). (markt)
  • Fix: 59824: Mark the RewriteValve as supporting async processing by default. (markt)
  • Fix: 59862: Allow nested jar files scanning to be filtered with the system property tomcat.util.scan.StandardJarScanFilter.jarsToSkip. Patch is provided by Terence Bandoian. (violetagg)
  • Fix: 59866: When scanning WEB-INF/classes for annotations, don't scan the contents of WEB-INF/classes/META-INF (if present) since classes will never be loaded from that location. (markt)
  • Fix: 59888: Correctly handle tabs and spaces in quoted version one cookies when using the Rfc6265CookieProcessor. (markt)
  • Fix: 59912: Fix an edge case in input stream handling where an IOException could be thrown when reading a POST body. (markt)
  • Fix: 59913: Correct a regression introduced with the support for the Servlet 4 HttpServletRequest.getMapping() API that caused the attributes for forwarded requests to be lost if requested from within a subsequent include. (markt)
  • Fix: 59966: Do not start the web application if the error page configuration in web.xml is invalid. (markt)
  • Fix: Switch the CGI servlet to the standard logging mechanism and remove support for the debug attribute. (markt)
  • Fix: 60012: Improvements in the log messages. Based on suggestions by Nemo Chen. (violetagg)
  • Fix: Changes to the allowLinking attribute of a StandardRoot instance now invalidate the cache if caching is enabled. (markt)
  • Add: Add a new initialisation parameter, envHttpHeaders, to the CGI Servlet to mitigate httpoxy (CVE-2016-5388) by default and to provide a mechanism that can be used to mitigate any future, similar issues. (markt)
  • Add: When adding and removing ResourceLinks dynamically, ensure that the global resource is only visible via the ResourceLinkFactory when it is meant to be. (markt)
  • Fix: 60008: When processing CORs requests, treat any origin with a URI scheme of file as a valid origin. (markt)
  • Fix: Improve handling of exceptions during a Lifecycle events triggered by a state transition. The exception is now caught and the component is now placed into the FAILED state. (markt)
  • Fix: 60013: Fix encoding issues when using the RewriteValve with UTF-8 query strings or UTF-8 redirect URLs. (markt)
  • Fix: 60022: Improve handling when a WAR file and/or the associated exploded directory are symlinked into the appBase. (markt)
  • Fix: Fix a file descriptor leak when reading the global web.xml. (markt)
  • Fix: Consistently decode URL patterns provided via web.xml using the encoding of the web.xml file where specified or UTF-8 where no explicit encoding is specified. (markt)
  • Fix: Make timing attacks against the Realm implementations harder. (schultz)
  • Fix: A number of the JRE memory leaks addressed by the JreMemoryLeakPreventionListener have been fixed in Java 9 so the associated protection is now disabled when running on Java 9 onwards. (markt)
  • Coyote:
  • Fix: Correct a regression in refactoring to enable injection of custom keystores that broke the automatic conversion of OpenSSL style PEM key and certificate files for use with JSSE TLS connectors. (markt)
  • Fix: 59910: Don't hardcode key alias value to "tomcat" for JSSE. When using a keystore, OpenSSL will still default to it. (remm)
  • Fix: 59904: Add a limit (default 200) for the number of cookies allowed per request. Based on a patch by gehui. (markt)
  • Fix: 59925: Correct regression in r1628368 and ensure that HTTP separators are handled as configured in the LegacyCookieProcessor. Patch provided by Kyohei Nakamura. (markt)
  • Fix: 59950: Correct log message when reporting that the current number of HTTP/2 streams for a connection could not be pruned to below the limit. (markt)
  • Fix: Ensure that Semaphore.release is called in all cases. Even when there is an exception. (violetagg)
  • Fix: 60030: Correct a potential infinite loop in the SNI parsing code triggered by failing to handle an end of stream condition. (markt)
  • Fix: Small logging optimization in the Rfc6265CookieProcessor. Patch provided by Svetlin Zarev. (markt)
  • Fix: OpenSSL now disables 3DES by default so reflect this when using OpenSSL syntax to select ciphers. (markt)
  • Fix: Use the proper ERROR socket status code for async errors with NIO2. (remm)
  • Fix: 60035: Fix a potential connection leak if the client drops a TLS connection before the handshake completes. (markt)
  • Fix: Refactor the JSSE client certificate validation so that the effectiveness of the certificateVerificationDepth configuration attribute does not depend on the presence of a certificate revokation list. (markt)
  • Add: Log a warning at start up if a JSSE TLS connector is configured with a trusted certificate that is either not yet valid or has expired. (markt)
  • Jasper:
  • Fix: When writing out a full web.xml file with JspC ensure that the encoding used in the XML prolog matches the encoding used to write the contents of the file. (markt)
  • Fix: Improve the error handling for custom tags to ensure that the tag is returned to the pool or released and destroyed once used. (markt)
  • Fix: 60032: Fix handling of method calls that use varargs within EL value expressions. (markt)
  • Fix: Ignore engineOptionsClass and scratchdir when running under a security manager. (markt)
  • Fix: Fixed StringIndexOutOfBoundsException. Based on a patch provided by wuwen via Github. (violetagg)
  • WebSocket:
  • Fix: 59908: Ensure that a reason phrase is included in the close message if a session is closed due to a timeout. (markt)
  • Web applications:
  • Fix: 59867: Correct the documentation provided by Manager's 403.jsp. (violetagg)
  • Fix: 59868: Clarify the documentation for the Manager web application to make clearer that the host name and IP address in the server section are the primary host name and IP address. (markt)
  • Fix: 59940: Correct the name of the truststorePassword attribute of the SSLHostConfig element in the configuration documentation. (markt)
  • Fix: MBeans Descriptors How-To is moved to mbeans-descriptors-howto.html. Patch provided by Radoslav Husar. (violetagg)
  • Fix: Update NIO Connector configuration documentation with an information about socket.directSslBuffer. (violetagg)
  • Fix: 60034: Correct a typo in the Manager How-To page of the documentation web application. (markt)
  • jdbc-pool:
  • Fix: In order to avoid the unintended skip of PoolCleaner, remove the check code of the execution interval in the task that has been scheduled. (kfujino)
  • Fix: 59850: Ensure that the ResultSet is closed when enabling the StatementCache interceptor. (kfujino)
  • Fix: 59923: Reduce the default value of validationInterval in order to avoid the potential issue that continues to return an invalid connection after database restart. (kfujino)
  • Fix: Ensure that the ResultSet is returned as Proxy object when enabling the StatementDecoratorInterceptor. (kfujino)
  • Fix: 60043: Ensure that the suspectTimeout works without removing connection when the removeAbandoned is disabled. (kfujino)
  • Fix: Add log message of when returning the connection that has been marked suspect. (kfujino)
  • Fix: Correct Javadoc for ConnectionPool.suspect(). Based on a patch by Yahya Cahyadi. (markt)
  • Other:
  • Add: 59871: Add a property (timeFormat) to JULI's OneLineFormatter to enable the format of the time stamp used in log messages to be configured. (markt)
  • Fix: 59899: Update Tomcat's copy of the Java Persistence annotations to include the changes made in 2.1 / JavaEE 7. (markt)
  • Fix: Fixed typos in mbeans-descriptors.xml files. (violetagg)
  • Update: Update the internal fork of Commons BCEL to r1757132 to align with the BCEL 6 release. (markt)
  • Update: Update the internal fork of Commons DBCP2 to r1757164 to pick up a couple of bug fixes. (markt)
  • Update: Update the internal fork of Commons Codec to r1757174. Code formatting changes only. (markt)
  • Update: Update the internal fork of Commons FileUpload to afdedc9. This pulls in a fix to improve the performance with large multipart boundaries. (markt)

New in Apache Tomcat 9.0.0 M9 (Jul 14, 2016)

  • Catalina:
  • Fix: 18500: Add limited support for wildcard host names and host aliases. Names of the form *.domainname are now permitted. Note that an exact host name match takes precedence over a wild card host name match.
  • Fix: 57705: Add debug logging for requests denied by the remote host and remote address valves and filters. Based on a patch by Graham Leggett.
  • Fix: Correct a regression in the fix for 58588 that removed the entire org.apache.juli package from the embedded JARs rendering them unusable.
  • Add: 59399: Add a new option to the Realm implementations that ship with Tomcat that allows the HTTP status code used for HTTP -> HTTPS redirects to be controlled per Realm.
  • Fix: 59708: Modify the LockOutRealm logic. Valid authentication attempts during the lock out period will no longer reset the lock out timer to zero.
  • Update: Change the default of the sessionCookiePathUsesTrailingSlash attribute of the Context element to false since the problems caused when a Servlet is mapped to /* are more significant than the security risk of not enabling this option by default.
  • Fix: Follow-up to 59655. Improve the documentation for configuring permitted cookie names. Patch provided by Kyohei Nakamura.
  • Fix: Do not attempt to start web resources during a web application's initialisation phase since the web application is not fully configured at that point and the web resources may not be correctly configured.
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • Coyote:
  • Fix: Fix a cause of multiple attempts to close the same socket.
  • Code: Refactor the certifcate keystore and trust store generation to make it easier for embedded users to inject their own key stores.
  • Update: Add a maxConcurrentStreamExecution on the HTTP/2 protocol handler to allow restricting the amount of concurrent stream that are being executed in a single connection. The default is to not limit it. (remm)
  • Add: 59233: Add the ability to add TLS virtual hosts dynamically.
  • Fix: Correct a problem with ServletRequest.getServerPort() for secure HTTP/2 connections that meant an incorrect value was retured when using the default port.
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • Jasper:
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • WebSocket:
  • Code: Now the WebSocket implementation is not built directly on top of the Servlet API and can use Tomcat internals, there is no need for the dedicated WebSocket Executor. It has been replaced by the use of the Connector/Endpoint provided Executor.
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • Web Applications:
  • Fix: Do not log an additional case of IOExceptions in the error handler for the Drawboard WebSocket example when the root cause is the client disconnecting since the logs add no value.
  • Fix: 59642: Mention the localDataSource in the DataSourceRealm section of the Realm How-To.
  • Fix: 59672: Update the security considerations page of the documentation web application to take account of the fact that the Manager and HostManager applications now have a RemoteAddrValve configured by default.
  • Fix: Follow-up to the fix for 59399. Ensure that the new attribute transportGuaranteeRedirectStatus is documented for all Realms. Also document the NullRealm and when it is automatically created for an Engine.
  • Fix: Fix the description of maxAge attribute in jdbc-pool doc. This attribute works both when a connection is returned and when a connection is borrowed.
  • Fix: 59774: Correct the prefix values in the the documented examples for configuring the AccessLogValve.
  • Tribes:
  • Add: Add log message when the ping has timed-out.
  • Fix: If the ping message has been received at the AbstractReplicatedMap#leftOver method, ensure that notify the member is alive than ignore it.
  • jdbc-pool:
  • Fix: Fix the duplicated connection release when connection verification failed.
  • Fix: Ensure that do not remove the abandoned connection that has been already released.
  • Other:
  • Fix: Remove JULI plus log4j extras and embedded artifacts from Maven release script.
  • Add: Use the mirror network rather than the ASF master site to download the current ASF dependencies.
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.8 to pick up the latest fixes and make 1.2.8 the minimum recommended version.

New in Apache Tomcat 9.0.0 M8 (Jul 14, 2016)

  • Coyote:
  • Remove accidentally committed debug code

New in Apache Tomcat 9.0.0 M7 (Jul 14, 2016)

  • Catalina:
  • Fix: RMI Target related memory leaks are avoidable which makes them an application bug that needs to be fixed rather than a JRE bug to work around. Therefore, start logging RMI Target related memory leaks on web application stop. Add an option that controls if the check for these leaks is made. Log a warning if running on Java 9 with this check enabled but without the command line option it requires.
  • Fix: Ensure NPE will not be thrown during deployment when scanning jar files without MANIFEST.MF file.
  • Code: Remove the clearReferencesStatic option from StandardContext. It was known to cause problems with some libraries (such as log4j) and was only linked to suspected memory leaks rather than known memory leaks. It had been disabled by default with no increase in the reports of memory leaks for some time.
  • Fix: 59604: Correct the assumption made in the URL decoding that the default platform encoding is always compatible with ISO-8859-1. This assumption is not always valid, e.g. on z/OS.
  • Fix: 59608: Skip over any invalid Class-Path attribute from JAR manifests. Log errors at debug level due to many bad libraries.
  • Fix: Fix error message when failed to register MBean.
  • Fix: 59655: Configure the cookie name validation to use RFC6265 rules by default to align it with the default cookie parser. Document the impact system properties have on cookie name validation.
  • Coyote:
  • Fix: Ensure that requests with HTTP method names that are not tokens (as required by RFC 7231) are rejected with a 400 response.
  • Fix: When an asynchronous request is processed by the AJP connector, ensure that request processing has fully completed before starting the next request.
  • Fix: Improve handling of HTTP/2 stream resets.
  • Add: 58750: The HTTP Server header is no longer set by default. A Server header may be configured by setting the server attribute on the Connector. A new Connector attribute, serverRemoveAppProvidedValues may be used to remove any Server header set by a web application.
  • Fix: 59564: Correct offset when reading into HTTP/2 input buffer that could cause problems reading request bodies.
  • Fix: Modify the handling of read/write timeouts so that the appropriate error handling (ReadListener.onError(), WriteListener.onError() or AsycnListener.onError()) is called.
  • Fix: If an async dispatch results in the completion of request processing, ensure that any remaining request body is swallowed before starting the processing of the next request else the remaining body may be read as the start of the next request leading to a 400 response.
  • Jasper:
  • Fix: 59567: Fix NPE scanning webapps for TLDs when an exploded JAR has an empty WEB-INF/classes/META-INF folder.
  • Fix: Fix a memory leak in the expression language implementation that caused the class loader of the first web application to use expressions to be pinned in memory.
  • Fix: 59654: Improve error message when attempting to use a TLD file from an invalid location. Patch provided by Huxing Zhang.
  • WebSocket:
  • Fix: 59659: Fix possible memory leak in WebSocket handling of unexpected client disconnects.
  • Web applications:
  • Fix: 58891: Update the SSL how-to.
  • Extras:
  • Code: 58588: Remove the JULI extras package from the distribution. It was only useful for switching Tomcat's internal logging to log4j 1.2.x and that version of log4j is no longer supported. No additional Tomcat code is required if switching Tomcat's internal logging to log via log4j 2.x.
  • jdbc-pool:
  • Fix: Fix a memory leak with the pool cleaner thread that retained a reference to the web application class loader for the first web application to use a connection pool.
  • Other:
  • Update: Update the internal fork of Commons DBCP 2 to r1743696 (2.1.1 plus additional fixes).
  • Update: Update the internal fork of Commons Pool 2 to r1743697 (2.4.2 plus additional fixes).
  • Update: Update the internal fork of Commons File Upload to r1743698 (1.3.1 plus additional fixes).
  • Code: Use UTF-8 with a standard prolog for all XML files.
  • Fix: 58626: Add support for a new environment variable (USE_NOHUP) that causes nohup to be used when starting Tomcat. It is disabled by default except on HP-UX where it is enabled by default since it is required when starting Tomcat at boot on HP-UX.

New in Apache Tomcat 9.0.0 M6 (Jul 14, 2016)

  • Catalina:
  • Ensure that annotated web components packed in web fragments will be processed when unpackWARs is enabled.

New in Apache Tomcat 9.0.0 M5 (Jul 14, 2016)

  • Catalina:
  • Fix: 48922: Apply a very small performance improvement to the date formatting in Tomcat's internal request object.
  • Fix: 59206: Ensure NPE will not be thrown by o.a.tomcat.util.file.ConfigFileLoader when catalina.base is not specified.
  • Fix: 59217: Remove duplication in the recycling of the path in o.a.tomcat.util.http.ServerCookie.
  • Fix: Fixed possible NPE in o.a.catalina.loader.WebappClassLoaderBase.getResourceAsStream
  • Fix: 59213: Async dispatches should be based off a wrapped request.
  • Fix: Ensure that javax.servlet.ServletRequest and javax.servlet.ServletResponse provided during javax.servlet.AsyncListener registration are made available via javax.servlet.AsyncEvent.getSuppliedRequest and javax.servlet.AsyncEvent.getSuppliedResponse
  • Fix: 59219: Ensure AsyncListener.onError() is called if an Exception is thrown during async processing.
  • Fix: 59220: Ensure that AsyncListener.onComplete() is called if the async request times out and the response is already committed.
  • Fix: 59226: Process the Class-Path attribute from JAR manifests for JARs on the class path excluding JARs packaged in WEB-INF/lib.
  • Fix: 59255: Fix possible NPE in mapper.
  • Fix: 59256: slf4j-taglib*.jar should not be excluded from the standard JAR scanning by default.
  • Fix: Clarify the log message that specifying both urlPatterns and value attributes in @WebServlet and @WebFilter annotations is not allowed.
  • Fix: Ensure the exceptions caused by Valves will be available in the log files so that they can be evaluated when o.a.catalina.valves.ErrorReportValve.showReport is disabled.
  • Fix: Remove unused distributable attribute that is defined as TransientAttribute of Manager in StoreConfig.
  • Fix: Fix handling of Cluster Receiver in StoreConfig. The bind and host attributes define as TransientAttribute.
  • Fix: 59261: ServletRequest.getAsyncContext() now throws an IllegalStateException as required by the Servlet specification if the request is not in asynchronous mode when called.
  • Fix: 59269: Correct the implementation of PersistentManagerBase so that minIdleSwap functions as designed and sessions are swapped out to keep the active session count below maxActiveSessions.
  • Update: Update the implementation of the the proposed Servlet 4.0 API to provide mapping type information for the current request to reflect discussions within the EG.
  • Fix: Correctly configure the base path for a resources directory provided by an expanded JAR file.
  • Add: When multiple compressed formats are available and the client does not express a preference, use the server order to determine the preferred format.
  • Fix: 59284: Allow the Tomcat provided JASPIC SimpleServerAuthConfig to pick up module configuration properties from either the property set passed to its constructor or from the properties passed in the call to getAuthContext.
  • Fix: 59310: Do not add a Content-Length: 0 header for custom responses to HEAD requests that do not set a Content-Length value.
  • Fix: When normalizing paths, improve the handling when paths end with /. or /.. and ensure that input and output are consistent with respect to whether or not they end with /.
  • Fix: 59317: Ensure that HttpServletRequest.getRequestURI() returns an encoded URI rather than a decoded URI after a dispatch.
  • Fix: Use the correct URL for the fragment when reporting errors processing a web-fragment.xml file from a JAR located in an unpacked WAR.
  • Fix: Ensure that JarScanner only uses the explicit call-back to process WEB-INF/classes and only when configured to treat the contents of WEB-INF/classes as a possible exploded JAR.
  • Code: Remove the java2DDisposerProtection option from the JreMemoryLeakPreventionListener. The leak is fixed in Java 7 onwards and Tomcat 9 requires Java 8 so the option is unnecessary.
  • Code: Remove the securityPolicyProtection option from the JreMemoryLeakPreventionListener. The leak is fixed in Java 8 onwards and Tomcat 9 requires Java 8 so the option is unnecessary.
  • Code: Remove the securityLoginConfigurationProtection option from the JreMemoryLeakPreventionListener. The leak is fixed in Java 8 onwards and Tomcat 9 requires Java 8 so the option is unnecessary.
  • Fix: Ensure that the value for the header X-Frame-Options is constructed correctly according to the specification when ALLOW-FROM option is used.
  • Fix: Fix an IllegalArgumentException if the first use of an internal Response object requires JASPIC authentication.
  • Fix: Do not trigger unnecessary session ID changes when using JASPIC and the user is authenticated using cached credentials.
  • Fix: 59437: Ensure that the JASPIC CallbackHandler is thread-safe.
  • Fix: 59449: In ContainerBase, ensure that the process to remove a child container is the reverse of the process to add one
  • Coyote:
  • Fix: Improves OpenSSL engine robustness when SSL allocation fails for some reason.
  • Fix: OpenSSL engine code cleanups.
  • Fix: Align cipher configuration parsing with current OpenSSL master.
  • Update: Change the default for honorCipherOrder to false. With the current default TLS configuration, it is no longer necessary for this to be true for a reasonably secure configuration.
  • Add: Add a new environment variable JSSE_OPTS that is intended to be used to pass JVM wide configuration to the JSSE implementation. The default value is -Djdk.tls.ephemeralDHKeySize=2048 which protects against weak Diffie-Hellman keys.
  • Fix: 58970: Fix a connection counting bug in the NIO connector that meant some dropped connections were not removed from the current connection count.
  • Fix: 59289: Do not recycle upgrade processors in unexpected close situations.
  • Fix: 59295: Use Locale.toLanguageTag() to construct the Content-Language HTTP header to ensure the locale is correctly represented.
  • Update: 59295: Add support for using pem encoded certificates with JSSE SSL. Submitted by Emmanuel Bourg with additional tweaks.
  • Fix: Make the TLS certificate chain available to clients when using JSSE+OpenSSL with the certificate chain stored in a Java KeyStore.
  • Fix: Work around a known issue in OpenSSL that does not permit the TLS handshake to be failed if the ALPN negotiation fails.
  • Update: 59421: Add direct HTTP/2 connection support.
  • Fix: Correctly handle a call to AsyncContext.complete() from a non-container thread when non-blocking I/O is being used.
  • Fix: 59451: Correct Javadoc for MessageBytes. Patch provided by Kyohei Nakamura.
  • Fix: 59450: Correctly handle the case where the LegacyCookieProcessor is configured with allowHttpSepsInV0 set to false and forwardSlashIsSeparator set to true.
  • Jasper:
  • Fix: When scanning JARs for TLDs, correctly handle the (rare) case where a JAR has been exploded into WEB-INF/classes and the web application is deployed as a packed WAR.
  • Fix: 59640: NPEs with not found TLDs.
  • WebSocket:
  • Fix: 59189: Explicitly release the native memory held by the Inflater and Deflater when using PerMessageDeflate and the WebSocket session ends.
  • Fix: Restore the WsServerContainer.doUpgrade() method which was accidentally removed since it is not used by Tomcat.
  • Fix: Fix a regression caused by the connector refactoring and ensure that the thread context class loader is set to the to the web application classloader when processing WebSocket messages on the server.
  • Fix: Ensure that a client disconnection triggers the error handling for the associated WebSocket end point.
  • Add: Make WebSocket client more robust when handling errors during the close of a WebSocket session.
  • Web applications:
  • Fix: 59218: Correct the path to jaspic-providers.xml in Jaspic How-To.
  • Fix: Remove button that has accidentally been added to the host manager.
  • Fix: Update in the documentation the link to the maven repository where Tomcat snapshot artifacts are deployed.
  • Fix: Clarify in the documentation that calls to ServletContext.log(String, Throwable) or GenericServlet.log(String, Throwable) are logged at the SEVERE level.
  • Fix: Correct a typo in SSL/TLS Configuration How-To.
  • Tribes:
  • Fix: Avoid NPE when a proxy node failed to retrieve a backup entry.
  • Add: Add the flag indicating that member is a localMember.
  • Fix: Fix potential NPE that depends on the setting order of attributes of static member when using the static cluster.
  • Add: Add get/set method for the channel that is related to ChannelInterceptor.
  • Fix: As with the multicast cluster environment, in the static cluster environment, the local member inherits properties from the cluster receiver.
  • Add: Add get/set method for the channel that is related to each Channel services.
  • Add: Add name to channel in order to identify channels. In tomcat cluster environment, it is set the cluster name + "-Channel" as default value.
  • Add: Add the channel name to the thread which is invoked by channel services in order to identify the associated channel.
  • Fix: Ensure that clear the channel instance from channel services when stopping channel.
  • Add: Implement map state in the replication map.
  • Fix: Ensure that the ping is not executed during the start/stop of the replication map.
  • Fix: In ping processing in the replication map, send not the INIT message but the newly introduced PING message.
  • Other:
  • Fix: 59211: Add hamcrest to Eclipse classpath.
  • Update: 59276: Update optional Checkstyle library to 6.17.
  • Update: 59280: Update the NSIS Installer used to build the Windows Installers to version 2.51.
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.7 to pick up the Windows binaries that are based on OpenSSL 1.0.2h and APR 1.5.2.

New in Apache Tomcat 8.5.4 (Jul 14, 2016)

  • Catalina:
  • Fix: 57705: Add debug logging for requests denied by the remote host and remote address valves and filters. Based on a patch by Graham Leggett.
  • Fix: Correct a regression in the fix for 58588 that removed the entire org.apache.juli package from the embedded JARs rendering them unusable.
  • Add: 59399: Add a new option to the Realm implementations that ship with Tomcat that allows the HTTP status code used for HTTP -> HTTPS redirects to be controlled per Realm.
  • Update: Change the default of the sessionCookiePathUsesTrailingSlash attribute of the Context element to false since the problems caused when a Servlet is mapped to /* are more significant than the security risk of not enabling this option by default.
  • Fix: Follow-up to 59655. Improve the documentation for configuring permitted cookie names. Patch provided by Kyohei Nakamura.
  • Fix: Do not attempt to start web resources during a web application's initialisation phase since the web application is not fully configured at that point and the web resources may not be correctly configured.
  • Fix: 59708: Modify the LockOutRealm logic. Valid authentication attempts during the lock out period will no longer reset the lock out timer to zero.
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • Coyote:
  • Code: Refactor the certifcate keystore and trust store generation to make it easier for embedded users to inject their own key stores.
  • Add: 59233: Add the ability to add TLS virtual hosts dynamically.
  • Update: Add a maxConcurrentStreamExecution on the HTTP/2 protocol handler to allow restricting the amount of concurrent stream that are being executed in a single connection. The default is to not limit it.
  • Fix: Correct a problem with ServletRequest.getServerPort() for secure HTTP/2 connections that meant an incorrect value was retured when using the default port.
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • Jasper:
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • WebSocket:
  • Code: Now the WebSocket implementation is not built directly on top of the Servlet API and can use Tomcat internals, there is no need for the dedicated WebSocket Executor. It has been replaced by the use of the Connector/Endpoint provided Executor.
  • Fix: Improve error handling around user code prior to calling InstanceManager.destroy() to ensure that the method is executed.
  • Web Applications:
  • Fix: Do not log an additional case of IOExceptions in the error handler for the Drawboard WebSocket example when the root cause is the client disconnecting since the logs add no value.
  • Fix: 59642: Mention the localDataSource in the DataSourceRealm section of the Realm How-To.
  • Fix: 59672: Update the security considerations page of the documentation web application to take account of the fact that the Manager and HostManager applications now have a RemoteAddrValve configured by default.
  • Fix: Follow-up to the fix for 59399. Ensure that the new attribute transportGuaranteeRedirectStatus is documented for all Realms. Also document the NullRealm and when it is automatically created for an Engine.
  • Fix: Fix the description of maxAge attribute in jdbc-pool doc. This attribute works both when a connection is returned and when a connection is borrowed.
  • Fix: 59774: Correct the prefix values in the the documented examples for configuring the AccessLogValve.
  • Extras:
  • Code: 58588: Remove the JULI extras package from the distribution. It was only useful for switching Tomcat's internal logging to log4j 1.2.x and that version of log4j is no longer supported. No additional Tomcat code is required if switching Tomcat's internal logging to log via log4j 2.x.
  • Tribes:
  • Add: Add log message when the ping has timed-out.
  • Fix: If the ping message has been received at the AbstractReplicatedMap#leftOver method, ensure that notify the member is alive than ignore it.
  • jdbc-pool:
  • Fix: Fix the duplicated connection release when connection verification failed.
  • Fix: Ensure that do not remove the abandoned connection that has been already released.
  • Other:
  • Update: 59276: Update optional Checkstyle library to 6.17.
  • Add: Use the mirror network rather than the ASF master site to download the current ASF dependencies.
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.8 to pick up the latest fixes and make 1.2.8 the minimum recommended version.
  • Code: Use UTF-8 with a standard prolog for all XML files.

New in Apache Tomcat 8.0.36 (Jun 27, 2016)

  • Catalina:
  • Fix: RMI Target related memory leaks are avoidable which makes them an application bug that needs to be fixed rather than a JRE bug to work around. Therefore, start logging RMI Target related memory leaks on web application stop. Add an option that controls if the check for these leaks is made. Log a warning if running on Java 9 with this check enabled but without the command line option it requires. (markt)
  • Fix: Ensure NPE will not be thrown during deployment when scanning jar files without MANIFEST.MF file. (violetagg)
  • Fix: 59604: Correct the assumption made in the URL decoding that the default platform encoding is always compatible with ISO-8859-1. This assumption is not always valid, e.g. on z/OS. (markt)
  • Fix: 59608: Skip over any invalid Class-Path attribute from JAR manifests. Log errors at debug level due to many bad libraries. (remm)
  • Fix: Fix error message when failed to register MBean. (kfujino)
  • Coyote:
  • Fix: Ensure that requests with HTTP method names that are not tokens (as required by RFC 7231) are rejected with a 400 response. (markt)
  • Fix: When an asynchronous request is processed by the AJP connector, ensure that request processing has fully completed before starting the next request. (markt)
  • Fix: If an async dispatch results in the completion of request processing, ensure that any remaining request body is swallowed before starting the processing of the next request else the remaining body may be read as the start of the next request leading to a 400 response. (markt)
  • Jasper:
  • Fix: 59567: Fix NPE scanning webapps for TLDs when an exploded JAR has an empty WEB-INF/classes/META-INF folder. (remm)
  • Fix: Fix a memory leak in the expression language implementation that caused the class loader of the first web application to use expressions to be pinned in memory. (markt)
  • Fix: 59640: NPEs with not found TLDs. (remm)
  • Fix: 59654: Improve error message when attempting to use a TLD file from an invalid location. Patch provided by Huxing Zhang. (markt)
  • Web applications:
  • Fix: 58891: Update the SSL how-to. Based on a suggestion by Alexander Kjäll. (markt)
  • jdbc-pool:
  • Fix: Fix a memory leak with the pool cleaner thread that retained a reference to the web application class loader for the first web application to use a connection pool. (markt)
  • Other:
  • Update: Update the internal fork of Commons DBCP 2 to r1743696 (2.1.1 plus additional fixes). (markt)
  • Update: Update the internal fork of Commons Pool 2 to r1743697 (2.4.2 plus additional fixes). (markt)
  • Update: Update the internal fork of Commons File Upload to r1743698 (1.3.1 plus additional fixes). (markt)
  • Update: Update the option code coverage tool Cobertura to 2.1.1 so it is easier to compare the change in lines of code between 8.0.x and 9.0.x. (markt)
  • Fix: 58626: Add support for a new environment variable (USE_NOHUP) that causes nohup to be used when starting Tomcat. It is disabled by default except on HP-UX where it is enabled by default since it is required when starting Tomcat at boot on HP-UX. (markt)

New in Apache Tomcat 8.0.35 (Jun 27, 2016)

  • Catalina:
  • Fix: Ensure that annotated web components packed in web fragments will be processed when unpackWARs is enabled. (violetagg)

New in Apache Tomcat 8.0.34 (Jun 27, 2016)

  • Catalina:
  • Fix: 59206: Ensure NPE will not be thrown by o.a.tomcat.util.file.ConfigFileLoader when catalina.base is not specified. (violetagg)
  • Fix: 59217: Remove duplication in the recycling of the path in o.a.tomcat.util.http.ServerCookie. Patch is provided by Kyohei Nakamura. (violetagg)
  • Fix: 59213: Async dispatches should be based off a wrapped request. (remm)
  • Fix: Ensure that javax.servlet.ServletRequest and javax.servlet.ServletResponse provided during javax.servlet.AsyncListener registration are made available via javax.servlet.AsyncEvent.getSuppliedRequest and javax.servlet.AsyncEvent.getSuppliedResponse (violetagg)
  • Fix: 59219: Ensure AsyncListener.onError() is called if an Exception is thrown during async processing. (markt)
  • Fix: 59220: Ensure that AsyncListener.onComplete() is called if the async request times out and the response is already committed. (markt)
  • Fix: 59226: Process the Class-Path attribute from JAR manifests for JARs on the class path excluding JARs packaged in WEB-INF/lib. (markt)
  • Fix: 59255: Fix possible NPE in mapper. (kkolinko/remm)
  • Fix: 59256: slf4j-taglib*.jar should not be excluded from the standard JAR scanning by default. (violetagg)
  • Fix: Clarify in the log message that specifying both urlPatterns and value attributes in WebServlet and WebFilter annotations is not allowed. (violetagg)
  • Fix: Ensure the exceptions caused by Valves will be available in the log files so that they can be evaluated when o.a.catalina.valves.ErrorReportValve.showReport is disabled. Patch is provided by Svetlin Zarev. (violetagg)
  • Fix: Fix handling of Cluster Receiver in StoreConfig. The bind and host attributes define as TransientAttribute. (kfujino)
  • Fix: 59261: ServletRequest.getAsyncContext() now throws an IllegalStateException as required by the Servlet specification if the request is not in asynchronous mode when called. (markt)
  • Fix: 59269: Correct the implementation of PersistentManagerBase so that minIdleSwap functions as designed and sessions are swapped out to keep the active session count below maxActiveSessions. (markt)
  • Fix: 59247: Preload ResourceEntry as a workaround for security manager issues on some JVMs. (kkolinko/remm)
  • Fix: Correctly configure the base path for a resources directory provided by an expanded JAR file. Patch provided by hengyunabc. (markt)
  • Fix: Ensure that /WEB-INF/classes is never processed as a web fragment. (markt)
  • Fix: 59310: Do not add a Content-Length: 0 header for custom responses to HEAD requests that do not set a Content-Length value. (markt)
  • Add: Make a web application's CredentialHandler available through a context attribute. This allows a web application to use the same algorithm for validating or generating new stored credentials from cleartext ones. (schultz)
  • Fix: When normalizing paths, improve the handling when paths end with /. or /.. and ensure that input and output are consistent with respect to whether or not they end with /. (markt)
  • Fix: 59317: Ensure that HttpServletRequest.getRequestURI() returns an encoded URI rather than a decoded URI after a dispatch. (markt)
  • Fix: Use the correct URL for the fragment when reporting errors processing a web-fragment.xml file from a JAR located in an unpacked WAR. (markt)
  • Fix: Ensure that JarScanner only uses the explicit call-back to process WEB-INF/classes and only when configured to treat the contents of WEB-INF/classes as a possible exploded JAR. (markt)
  • Code: Remove the java2DDisposerProtection option from the JreMemoryLeakPreventionListener. The leak is fixed in Java 7 onwards and Tomcat 8 requires Java 7 so the option is unnecessary. (markt)
  • Fix: Ensure that the value for the header X-Frame-Options is constructed correctly according to the specification when ALLOW-FROM option is used. (violetagg)
  • Fix: 59449: In ContainerBase, ensure that the process to remove a child container is the reverse of the process to add one. Patch provided by Huxing Zhang. (markt)
  • Coyote:
  • Fix: When running on Java 7, exclude DHE ciphers from the default cipher list for JSSE connectors since they use weak 768 bit DH keys and cannot be configured to use more secure keys. (markt)
  • Add: Add a new environment variable JSSE_OPTS that is intended to be used to pass JVM wide configuration to the JSSE implementation. The default value is -Djdk.tls.ephemeralDHKeySize=2048 which protects against weak Diffie-Hellman keys with Java 8. (markt)
  • Update: Exclude ciphers that use RSA keys from the default cipher list since they do not support forward secrecy. (markt)
  • Fix: 58970: Fix a connection counting bug in the NIO connector that meant some dropped connections were not removed from the current connection count. (markt)
  • Fix: 59289: Do not recycle upgrade processors in unexpected close situations. (remm)
  • Fix: 59295: Use Locale.toLanguageTag() to construct the Content-Language HTTP header to ensure the locale is correctly represented. Patch provided by zikfat. (markt)
  • Fix: 59451: Correct Javadoc for MessageBytes. Patch provided by Kyohei Nakamura. (markt)
  • Fix: 59450: Correctly handle the case where the LegacyCookieProcessor is configured with allowHttpSepsInV0 set to false and forwardSlashIsSeparator set to true. Patch provided by Kyohei Nakamura. (markt)
  • Jasper:
  • Fix: When scanning JARs for TLDs, correctly handle the (rare) case where a JAR has been exploded into WEB-INF/classes and the web application is deployed as a packed WAR. (markt)
  • WebSocket:
  • Fix: Ensure that a client disconnection triggers the error handling for the associated WebSocket end point. (markt)
  • Add: Make WebSocket client more robust when handling errors during the close of a WebSocket session. (markt)
  • Web applications:
  • Fix: Update in the documentation the link to the maven repository where Tomcat snapshot artifacts are deployed. (markt/violetagg)
  • Fix: Clarify in the documentation that calls to ServletContext.log(String, Throwable) or GenericServlet.log(String, Throwable) are logged at the SEVERE level. (violetagg)
  • Fix: Correct a typo in SSL/TLS Configuration How-To. Issue reported via comments.apache.org. (violetagg)
  • Tribes:
  • Fix: Avoid NPE when a proxy node failed to retrieve a backup entry. (kfujino)
  • Add: Add log of when received an unexpected messages. (kfujino)
  • Add: Add the flag indicating that member is a localMember. (kfujino)
  • Fix: Fix potential NPE that depends on the setting order of attributes of static member when using the static cluster. (kfujino)
  • Add: Add get/set method for the channel that is related to ChannelInterceptorBase. (kfujino)
  • Fix: As with the multicast cluster environment, in the static cluster environment, the local member inherits properties from the cluster receiver. (kfujino)
  • Add: Add get/set method for the channel that is related to each Channel services. (kfujino)
  • Add: Add name to channel in order to identify channels. In tomcat cluster environment, it is set the cluster name + "-Channel" as default value. (kfujino)
  • Add: Add the channel name to the thread which is invoked by channel services in order to identify the associated channel. (kfujino)
  • Fix: Ensure that clear the channel instance from channel services when stopping channel. (kfujino)
  • Add: Implement map state in the replication map. (kfujino)
  • Fix: Ensure that the ping is not executed during the start/stop of the replication map. (kfujino)
  • Fix: In ping processing in the replication map, send not the INIT message but the newly introduced PING message. (kfujino)
  • Other:
  • Fix: 59211: Add hamcrest to Eclipse classpath. Patch is provided by Huxing Zhang. (violetagg)
  • Update: 59280: Update the NSIS Installer used to build the Windows Installers to version 2.51. (kkolinko)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.7 to pick up the Windows binaries that are based on OpenSSL 1.0.2h and APR 1.5.2. (markt)

New in Apache Tomcat 8.0.33 (Mar 31, 2016)

  • Catalina:
  • Fix: Correct a regression in the fix for 58867. When configuring a Context to use an external directory for the docBase, and that directory happens to be located along side the original WAR, use the directory as the docBase rather than expanding the WAR into the appBase and using the newly created expanded directory as the docBase. (markt)
  • Add: 58351: Make the server build date and server version number accessible via JMX. Patch provided by Huxing Zhang. (markt)
  • Add: 58988: Special characters in the substitutions for the RewriteValve can now be quoted with a backslash. (fschumacher)
  • Fix: 58999: Fix class and resource name filtering in WebappClassLoader. It throws a StringIndexOutOfBoundsException if the name is exactly "org" or "javax". (rjung)
  • Code: Remove unnecessary code. There is no support for context level cluster. (kfujino)
  • Add: Make checking for var and map replacement in RewriteValve a bit stricter and correct detection of colon in var replacement. (fschumacher)
  • Fix: Fix the type of InstanceManager attribute of mbean definition of StandardContext. (kfujino)
  • Fix: Refactor the web application class loader to reduce the impact of JAR scanning on the memory footprint of the web application. (markt)
  • Fix: Fix some resource leaks in the error handling for accessing files from JARs and WARs. (markt)
  • Fix: Refactor the JAR and JAR-in-WAR resource handling to reduce the memory footprint of the web application. (markt)
  • Fix: 57809: Deprecate the custom context attribute org.apache.tomcat.util.scan.MergedWebXml which will be removed in Tomcat 9. (markt)
  • Fix: 59001: Correctly handle the case when Tomcat is installed on a path where one of the segments ends in an exclamation mark. (markt)
  • Fix: Expand the fix for 59001 to cover the special sequences used in Tomcat's custom jar:war: URLs. (markt)
  • Fix: 59043: Avoid warning while expiring sessions associated with a single sign on if HttpServletRequest.logout() is used. (markt)
  • Fix: 59054: Ensure that using the CrawlerSessionManagerValve in a distributed environment does not trigger an error when the Valve registers itself in the session. (markt)
  • Fix: Storeconfig handling of alternate cookie processors. (markt/remm)
  • Fix: Storeconfig handling for socket properties. (remm)
  • Add: Log a warning message if a user tries to configure the default session timeout via the deprecated (and ignored) Manager.setMaxInactiveInterval() method. (markt)
  • Fix: Fix incorrect parsing of the NE and NC flags in rewrite rules. (remm)
  • Fix: 59065: Correct the timing of the check for colons in paths on non-Windows systems implemented in catalina.sh so it works correctly with Cygwin. Patch provided by Ed Randall. (markt)
  • Fix: When a Host is configured with an appBase that does not exist, create the appBase before trying to expand an external WAR file into it. (markt)
  • Fix: 59115: When using the Servlet 3.0 file upload, the submitted file name may be provided as a token or a quoted-string. If a quoted-string, unquote the string before returning it to the user. (markt)
  • Fix: 59123: Close NamingEnumeration objects used by the JNDIRealm once they are no longer required. (fschumacher/markt)
  • Fix: 59138: Correct a false positive warning for ThreadLocal related memory leaks when the key class but not the value class has been loaded by the web application class loader. (markt)
  • Fix: 59145: Don't log an invalid warning when a user logs out of a session associated with SSO. (markt)
  • Fix: 59151: Fix a regression in the fix for 56917 that added additional (and arguably unnecessary) validation to the provided redirect location. (markt)
  • Fix: 59154: Fix a NullPointerException in the JASSMemoryLoginModue resulting from the introduction of the CredentialHandler to Realms. (schultz/markt)
  • Coyote:
  • Fix: 58646: Correct a problem with sendfile that resulted in a Processor being added to the cache twice leading to broken responses. (markt)
  • Fix: 59015: Fix potential cause of endless APR Poller loop during shutdown if the Poller experiences an error during the shutdown process. (markt)
  • Fix: Align cipher aliases for kECDHE and ECDHE with the current OpenSSL implementation. (markt)
  • Fix: 59081: Retain the user defined cipher order when defining ciphers using the OpenSSL format. (markt)
  • Fix: 59089: Correctly ignore HTTP headers that include non-token characters in the header name. (markt)
  • Add: Add support for additional OpenSSL cipher aliases from OpenSSL master when specifying ciphers using the OpenSSL syntax. (markt)
  • Jasper:
  • Fix: 57583: Improve the performance of javax.servlet.jsp.el.ScopedAttributeELResolver when resolving attributes that do not exist. This improvement only works when Jasper is used with with Tomcat's EL implementation. (markt)
  • Update: 58111: Update to the Eclipse JDT Compiler 4.5. (markt)
  • Add: Add Java 9 support for JSPs. (markt)
  • WebSocket:
  • Fix: 59014: Ensure that a WebSocket close message can be sent after a close message has been received. (markt)
  • Fix: Correctly handle compression of partial messages when the final message fragment has a zero length payload. (markt)
  • Fix: 59119: Correct read logic for WebSocket client when using secure connections. (markt)
  • Fix: 59134: Correct client connect logic for secure connections made through a proxy. (markt)
  • Fix: 59189: Explicitly release the native memory held by the Inflater and Deflater when using PerMessageDeflate and the WebSocket session ends. Based on a patch by Henrik Olsson. (markt)
  • Web applications:
  • Fix: Correct an error in the documentation of the expected behaviour for automatic deployment. If a WAR is updated and an expanded directory is present, the directory will always be deleted and recreated by expanding the WAR if unpackWARs is true. (markt)
  • Fix: 58935: Remove incorrect references in the documentation to using jar:file: URLs with the Manager application. (markt)
  • Fix: Correct the description of the ServletRequest.getServerPort() in Proxy How-To. Issue reported via comments.apache.org. (violetagg)
  • Fix: Fix a potenital indefinite wait in the Comet Chat servlet in the examples web application. (markt)
  • Tribes:
  • Fix: If promoting a proxy node to a primary node when getting a session, notify the change of the new primary node to the original backup node. (kfujino)
  • Other:
  • Fix: 58283: Change the default download location for libraries during the build process from /usr/share/java to ${user.home}/temp. Patch provided by Ahmed Hosni. (markt)
  • Fix: 59031: When using the Windows uninstaller, do not remove the contents of any directories that have been symlinked into the Tomcat directory structure. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.5 to pick up the Windows binaries that are based on OpenSSL 1.0.2g and APR 1.5.1. (markt)
  • Update: Modify the default tomcat-users.xml file to make it harder for users to configure the entries intended for use with the examples web application for the Manager application. (markt)

New in Apache Tomcat 9.0.0 M4 (Mar 17, 2016)

  • Catalina:
  • Fix: Ensure that /WEB-INF/classes is never processed as a web fragment. (markt)
  • Update: Switch default connector when native is installed. Unless configured otherwise, the NIO endpoint will be used by default. If SSL is configured, OpenSSL will be used rather than JSSE. (remm)
  • Fix: Correct a regression in the fix for 58867. When configuring a Context to use an external directory for the docBase, and that directory happens to be located along side the original WAR, use the directory as the docBase rather than expanding the WAR into the appBase and using the newly created expanded directory as the docBase. (markt)
  • Add: 58351: Make the server build date and server version number accessible via JMX. Patch provided by Huxing Zhang. (markt)
  • Add: 58988: Special characters in the substitutions for the RewriteValve can now be quoted with a backslash. (fschumacher)
  • Fix: 58999: Fix class and resource name filtering in WebappClassLoader. It throws a StringIndexOutOfBoundsException if the name is exactly "org" or "javax". (rjung)
  • Add: Add JASPIC (JSR-196) support. (markt)
  • Add: Make checking for var and map replacement in RewriteValve a bit stricter and correct detection of colon in var replacement. (fschumacher)
  • Fix: Refactor the web application class loader to reduce the impact of JAR scanning on the memory footprint of the web application. (markt)
  • Fix: Fix some resource leaks in the error handling for accessing files from JARs and WARs. (markt)
  • Fix: Refactor the JAR and JAR-in-WAR resource handling to reduce the memory footprint of the web application. (markt)
  • Fix: Refactor the web.xml parsing so a new parser is created every time the web application starts rather than creating and caching the parser when the Context is created. This enables the parser to take account of modified Context configuration parameters and reduces (slightly) the memory footprint of a running Tomcat instance. (markt)
  • Update: Switch to the web application class loader to the ParallelWebappClassLoader by default. (markt)
  • Fix: 57809: Remove the custom context attribute that held the effective web.xml. Components needing access to configuration information may access it via the Servlet API. (markt)
  • Fix: Refactor JAR scanning to reduce memory footprint. (markt)
  • Fix: 59001: Correctly handle the case when Tomcat is installed on a path where one of the segments ends in an exclamation mark. (markt)
  • Fix: Expand the fix for 59001 to cover the special sequences used in Tomcat's custom jar:war: URLs. (markt)
  • Fix: 59043: Avoid warning while expiring sessions associated with a single sign on if HttpServletRequest.logout() is used. (markt)
  • Fix: 59054: Ensure that using the CrawlerSessionManagerValve in a distributed environment does not trigger an error when the Valve registers itself in the session. (markt)
  • Fix: Add socket properties support to storeconfig. (remm)
  • Fix: Fix incorrect parsing of the NE and NC flags in rewrite rules. (remm)
  • Fix: 59065: Correct the timing of the check for colons in paths on non-Windows systems implemented in catalina.sh so it works correctly with Cygwin. Patch provided by Ed Randall. (markt)
  • Fix: When a Host is configured with an appBase that does not exist, create the appBase before trying to expand an external WAR file into it. (markt)
  • Fix: 59115: When using the Servlet 3.0 file upload, the submitted file name may be provided as a token or a quoted-string. If a quoted-string, unquote the string before returning it to the user. (markt)
  • Fix: 59123: Close NamingEnumeration objects used by the JNDIRealm once they are no longer required. (fschumacher/markt)
  • Add: Implement the proposed Servlet 4.0 API to provide mapping type information for the current request. (markt)
  • Fix: 59138: Correct a false positive warning for ThreadLocal related memory leaks when the key class but not the value class has been loaded by the web application class loader. (markt)
  • Add: 59017: Make the pre-compressed file support in the Default Servlet generic so any compression may be used rather than just gzip. Patch provided by Mikko Tiihonen. (markt)
  • Fix: 59145: Don't log an invalid warning when a user logs out of a session associated with SSO. (markt)
  • Fix: 59150: Add an additional flag on APR listener to allow disabling automatic use of OpenSSL. (remm)
  • Fix: 59151: Fix a regression in the fix for 56917 that added additional (and arguably unnecessary) validation to the provided redirect location. (markt)
  • Fix: 59154: Fix a NullPointerException in the JASSMemoryLoginModue resulting from the introduction of the CredentialHandler to Realms. (schultz/markt)
  • Coyote:
  • Fix: Handle the case in the NIO2 connector where the required TLS buffer sizes increase after the connection has been initiated. (markt/remm)
  • Fix: Bad processing of handshake errors in NIO2. (remm)
  • Fix: Use JSSE session configuration options with OpenSSL. (remm)
  • Fix: 59015: Fix potential cause of endless APR Poller loop during shutdown if the Poller experiences an error during the shutdown process. (markt)
  • Fix: Align cipher aliases for kECDHE and ECDHE with the current OpenSSL implementation. (markt)
  • Fix: 59081: Retain the user defined cipher order when defining ciphers. (markt)
  • Fix: 59089: Correctly ignore HTTP headers that include non-token characters in the header name. (markt)
  • Jasper:
  • Update: Update to the Eclipse JDT Compiler 4.5.1. (markt)
  • Fix: 57583: Improve the performance of javax.servlet.jsp.el.ScopedAttributeELResolver when resolving attributes that do not exist. This improvement only works when Jasper is used with with Tomcat's EL implementation. (markt)
  • WebSocket:
  • Fix: Fix a timing issue on session close that could result in an exception being thrown for an incomplete message even through the message was completed. (markt)
  • Fix: Correctly handle compression of partial messages when the final message fragment has a zero length payload. (markt)
  • Fix: 59119: Correct read logic for WebSocket client when using secure connections. (markt)
  • Fix: 59134: Correct client connect logic for secure connections made through a proxy. (markt)
  • Web applications:
  • Fix: Correct an error in the documentation of the expected behaviour for automatic deployment. If a WAR is updated and an expanded directory is present, the directory will always be deleted and recreated by expanding the WAR if unpackWARs is true. (markt)
  • Fix: 48674: Implement an option within the Host Manager web application to persist the current configuration. Based on a patch by Coty Sutherland. (markt)
  • Fix: 58935: Remove incorrect references in the documentation to using jar:file: URLs with the Manager application. (markt)
  • Fix: Correct the description of the ServletRequest.getServerPort() in Proxy How-To. Issue reported via comments.apache.org. (violetagg)
  • Add: The Manager and Host Manager applications are now only accessible via localhost by default. (markt)
  • Tribes:
  • Fix: If promoting a proxy node to a primary node when getting a session, notify the change of the new primary node to the original backup node. (kfujino)
  • Other:
  • Fix: 58283: Change the default download location for libraries during the build process from /usr/share/java to ${user.home}/temp. Patch provided by Ahmed Hosni. (markt)
  • Fix: 59031: When using the Windows uninstaller, do not remove the contents of any directories that have been symlinked into the Tomcat directory structure. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.5 to pick up the Windows binaries that are based on OpenSSL 1.0.2g and APR 1.5.1. (markt)
  • Update: Modify the default tomcat-user

New in Apache Tomcat 9.0.0 M3 (Mar 17, 2016)

  • General:
  • Add: Allow to configure multiple JUnit test class patterns with the build property test.name and document the property in BUILDING.txt. (rjung)
  • Catalina:
  • Fix: Protect initialization of ResourceLinkFactory when running with a SecurityManager. (kkolinko)
  • Fix: Correct a thread safety issue in the filtering of session attributes based on the implementing class name of the value object. (markt)
  • Fix: Fix class loader decision on the delegation for class loading and resource lookup and make it faster too. (rjung)
  • Fix: 58768: Log a warning if a redirect fails because of an invalid location. (markt)
  • Code: 58827: Remove remains of JSR-77 implementaion. (markt)
  • Fix: 58946: Ensure that the request parameter map remains immutable when processing via a RequestDispatcher. (markt)
  • Fix: 58905: Ensure that Tomcat.silence() silences the correct logger and respects the current setting. (markt)
  • Coyote:
  • Fix: Correct a regression in the connector refactoring in 9.0.0.M2 that broke TLS support for the APR/native connector. (remm)
  • Fix: Correct an NPE when listing the enabled ciphers (e.g. via the Manager web application) for a TLS enabled APR/native connector. (markt)
  • Add: New configuration option ajpFlush for the AJP connectors to disable the sending of AJP flush packets. (rjung)
  • Fix: Handle the case in the NIO connector where the required TLS buffer sizes increase after the connection has been initiated. (markt)

New in Apache Tomcat 8.0.30 (Dec 7, 2015)

  • Catalina:
  • Fix: 34319: Only load those keys in StoreBase.processExpire from JDBCStore, that are old enough, to be expired. Based on a patch by Tom Anderson. (fschumacher)
  • Add: 56917: As per RFC7231 (HTTP/1.1), allow HTTP/1.1 and later redirects to use relative URIs. This is controlled by a new attribute useRelativeRedirects on the Context and defaults to true. (markt)
  • Fix: 58629: Allow an embedded Tomcat instance to start when the Service has no Engine configured. (markt)
  • Fix: 58635: Enable break points to be set within agent code when running Tomcat with a Java agent. Based on a patch by Huxing Zhang. (markt)
  • Fix: 58660: Correct a regression in 8.0.29 caused by the change that moved the redirection for context roots from the Mapper to the Default Servlet. (markt)
  • Fix: Fixed potential NPE in HostConfig while deploying an application. Issue reported by coverity scan. (violetagg)
  • Fix: 58655: Fix an IllegalStateException when calling HttpServletResponse.sendRedirect() with the RemoteIpFilter. This was caused by trying to correctly generate the absolute URI for the redirect. With the fix for 56917, redirects may now be relative making the sendRedirect() implementation for the RemoteIpFilter much simpler. This also addresses issues where the redirect may not have behaved as expected when redirecting from http to https to from https to http. (markt)
  • Fix: 58657: Exceptions in a Servlet 3.1 ReadListener or WriteListener do not need to be immediately fatal to the connection. Allow an error response to be written. (markt)
  • Coyote:
  • Fix: Improve upgrade context classloader handling by using Context.bind and unbind. (remm)
  • Jasper:
  • Fix: 57136#c25: Change default value of quoteAttributeEL setting in Jasper to be true for better compatibility with other implementations and older versions of Tomcat (8.0.26/7.0.64 and earlier). Add command line option -no-quoteAttributeEL in JspC. (kkolinko)
  • Cluster:
  • Fix: Fix potential integer overflow in DeltaSession. Reported by coverity scan. (fschumacher)
  • WebSocket:
  • Add: 55006: The WebSocket client now honors the java.net.java.net.ProxySelector configuration (using the HTTP type) when establishing WebSocket connections to servers. Based on a patch by Niki Dokovski. (markt)
  • Fix: 58624: Correct a thread safety issue that meant that blocking message writes could block indefinitely if the WebSocket connection was closed while a message write was in progress. (markt)
  • Web Applications:
  • Fix: 58631: Correct the continuation character use in the Windows Service How-To page of the documentation web application. (markt)
  • Tribes:
  • Fix: Ensure that the static member is registered to the add suspect list even if the static member that is registered to the remove suspect list has disappeared. (kfujino)
  • Fix: Correct the warning log of when the member that is not registered in the membership is detected. (kfujino)
  • Fix: When using a static cluster, add the members that have been cached in the membership service to the map members list in order to ensure that the map member is a static member. (kfujino)
  • jdbc-pool:
  • Fix: Correct evaluation of system property org.apache.tomcat.jdbc.pool.onlyAttemptCurrentClassLoader. It was basically ignored before. Reported by coverity scan. (fschumacher)
  • Fix: Fix potential integer overflow in ConnectionPool and PooledConnection. Reported by coverity scan. (fschumacher)
  • Other:
  • Update: Update optional Checkstyle library to 6.13. (kkolinko)

New in Apache Tomcat 9.0.0 M1 (Nov 19, 2015)

  • GENERAL:
  • Add: Make Java 8 the minimum required version to build and run Tomcat 9. (markt)
  • Update: Remove support for Comet. (markt)
  • Update: Tighten up the default file permissions for the .tar.gz distribution so no files or directories are world readable by default. Configure Tomcat to run with a default umask of 0027 which may be overridden by setting UMASK in setenv.sh. (markt)
  • Update: Remove native code (Windows Service Wrapper, APR/native connector) support for Windows Itanium. (markt)
  • Catalina:
  • Update: The default HTTP cookie parser has been changed to org.apache.tomcat.util.http.Rfc6265CookieProcessor. (markt)
  • Coyote:
  • Update: Remove support for the HTTP BIO and AJP BIO connectors. (markt)
  • Code: Refactor HTTP upgrade and AJP implementations to reduce duplication. (markt)
  • Add: Add support for HPACK header encoding and decoding, contributed by Stuart Douglas. (remm)
  • Add: 57108: Add support for Server Name Indication (SNI). There has been significant changes to the SSL configuration in server.xml to support this. (markt)
  • Add: Add SSL engine for JSSE backed by OpenSSL. Includes ALPN support. Based on code contributed by Numa de Montmollin and derived from code developed by Twitter and Netty. (remm)
  • Fix: RFC 7230 states that clients should ignore reason phrases in HTTP/1.1 response messages. Since the reason phrase is optional, Tomcat no longer sends it. As a result the system property org.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER is no longer used and has been removed. (markt)
  • Update: The minimum required Tomcat Native version has been increased to 1.2.2. The 1.2.x branch includes ALPN and SNI support which are required for HTTP/2. (markt)
  • Tribes:
  • Fix: Clarify the handling of Copy message and Copy nodes. (kfujino)
  • Other:
  • Add: Support the use of the threads attribute on Ant's junit task. Note that using this with a value of greater than one will disable Cobertura code coverage. (markt)

New in Apache Tomcat 8.0.28 (Oct 30, 2015)

  • Catalina:
  • Add: Add support for the custom classpath protocol in URLs. It an be used anywhere Tomcat accepts a URL for a configuration parameter. (markt)
  • Fix: 56777: Allow file based configuration resources (user database, certificate revocation lists, keystores an dtrust stores) to be configured using URLs as well as files. (markt)
  • Fix: Perform null-checking on input and stored credentials in all Realms before passing credentials off to CredentialHandlers for matching. (schultz)
  • Coyote:
  • Update: Add the new ciphers from RFC6655 and RFC7251 to the OpenSSL to JSSE cipher mapping. (markt)
  • Update: Remove DES, RC2 and RC4 from DEFAULT for the OpenSSL to JSSE cipher mapping to align with the OpenSSL development branch. (markt)
  • Jasper:
  • Fix: Improve the error message when JSP parser encounters an error parsing an attribute value. (markt)
  • Web applications:
  • Update: 58474: Provide a reference to the differences between CATALINA_HOME and CATALINA_BASE in the sample application that is part of the documentation web application. (markt)
  • Extras:
  • Fix: Ensure JULI adapters does not include the LogFactoryImpl class. Patch provided by Benjamin Gandon. (markt)

New in Apache Tomcat 8.0.27 (Oct 2, 2015)

  • Fix: 58187: Correct a regression in the fix for 57765 that meant that deployment of web applications deployed via the Manager application was delayed until the next execution of the automatic deployment background process. (markt)
  • Fix: 58284: Correctly implement session serialization so non-serializable attributes are skipped with a warning. Patch provided by Andrew Shore. (markt)
  • Fix: 58313: Fix concurrent access of encoders map when clearing encoders prior to switch to async. (markt)
  • Fix: 58320: Fix concurrent access of request attributes which is possible during asynchronous processing. (markt)
  • Fix: 58352: Always trigger a thread dump if Tomcat fails to stop gracefully from catalina.sh even if using -force. Patch provided by Alexandre Garnier. (markt)
  • Fix: 58368: Fix a rare data race in the code that obtains the ApplicationFilterFactory instance. (markt)
  • Fix: 58369: Fix a rare data race in the code that obtains the CookieProcessor for a StandardContext instance. (markt)
  • Fix: Ensure the JAASRealm uses the configured CredentialHandler. (markt)
  • Fix: 58372: Fix rare data races closed and suspended flags that could be triggered by async and/or comet processing. (markt)
  • Fix: 58373: Fix rare data race with the application event listeners for StandardContext. (markt)
  • Fix: 58374: Fix a rare data race in the AsyncContext implementation for access to the internal Tomcat request object to which it holds a reference. (markt)
  • Fix: 58380: Fix two rare data races in the standard session implementation on the flag that tracks if the session is new and on the field that tracks the maximum inactive period. (markt)
  • Fix: 58385: Fix a rare data race in the internal flag Tomcat uses to keep track of whether or not a request is being used for Comet processing. (markt)
  • Fix: 58394: Fix a rare data race in Mapper when adding or removing a host. (markt)
  • Fix: 58398: Fix a rare data race in LifecycleSupport. (markt)
  • Fix: 58412: Ensure that the AsyncFileHandler has the source class and method name available for logging. (fschumacher)
  • Fix: 58416: Correctly detect when a forced stop fails to stop Tomcat because the Tomcat process is waiting on some system call or is uninterruptible. (markt)
  • Fix: 58436: Fix some rare data races in JULI's ClassLoaderLogManager during shutdown. (markt)
  • Fix: 58845: Fix off-by one error in calculation of valid characters in a cookie domain. Patch provided by Thorsten Ehlers. (markt)
  • Coyote:
  • Fix: Correct some edge cases in RequestUtil.normalize(). (markt)
  • Fix: 58275: The IBM JREs accept cipher suite names starting with TLS_ or SSL_ but when listing the supported cipher suites only the SSL_ version is reported. This can break Tomcat's check that at least one requested cipher suite is supported. Tomcat now includes a work-around so either form of the cipher suite name can be used when running on an IBM JRE. (markt)
  • Fix: 58357: For reasons not currently understood when the APR/native connector is used with OpenSSL reads can return an error code when there is no apparent error. This was work-around for HTTP upgrade connections by treating this as EAGAIN. The same fix has now been applied to the standard HTTP connector. (markt)
  • Code: Minor clean-up in NIO2 SSL handshake code to address some theoretical concurrency issues. (markt)
  • Fix: 58367: Fix a rare data race in the code that obtains the reason phrase for a given HTTP response code. (markt)
  • Fix: 58370: Fix a rare data race in the connector shutdown code. (markt)
  • Fix: 58371: Fix a rare data race when accessing request URI in String form when switching from non-async to async due to early triggering of the gathering of request statistics. (markt)
  • Fix: 58375: Fix a rare data race on the internal flag Tomcat uses to mark a response as committed. (markt)
  • Fix: 58377: Fix a rare data race on the internal flag Tomcat uses to mark a request as using HTTP keep-alive when switching to asynchronous processing. (markt)
  • Fix: 58379: Fix a rare data race on the interal reference Tomcat retains to the socket when switching to asynchronous processing. (markt)
  • Fix: 58387: Fix a rare data race when closing Comet connections. (markt)
  • Fix: 58388: Fix a data race when determining if Comet processing is occurring on a container or non-container thread. (markt)
  • Fix: 58389: Fix a rare data race while shutting down the thread pools on Connector stop. (markt)
  • Code: Clean up use of error flag on socket wrapper prompted by 58390. (markt)
  • Code: Remove some unnecessary code from the NIO Poller and fix 58396 as a side-effect. (markt)
  • Fix: 57799: Remove useless sendfile check for NIO SSL. (remm)
  • Jasper:
  • Fix: 57136: Correct a regression in the previous fix for this issue. \${ should only an escape for ${ within an EL expression. Within a JSP page \$ should be an escape for $. The EL specification applies when parsing the expression delimited by ${ and }. Parsing of the delimiting ${ and } is the responsibility of the JSP specification. (markt)
  • Fix: 58296: Fix a memory leak in the JSP unloading feature that meant that using a value other than -1 for maxLoadedJsps triggered a memory leak once the limit was reached. (markt)
  • Fix: 58327: Cache the expression string for value expression literals since it is frequently used and may be expensive to evaluate. Patch provided by Andreas Kohn. (markt)
  • Fix: 58340: Improve error reporting for tag files packaged in JARs. (markt)
  • Fix: 58424: When parsing TLD files, allow whitespace around boolean configuration values. (schultz)
  • Fix: Fix a possible resource leak reported by coverity scan. (fschumacher)
  • Fix: 58427: Enforce the JSP specification defined limitations of which elements are allowed in an implicit.tld file. (markt)
  • Fix: 58444: Ensure that JSPs work with any custom base class that meets the requirements defined in the JSP specification without requiring that base class to implement Tomcat specific code. (markt)
  • Cluster:
  • Fix: Fix a default clusterListeners in SimpleTcpCluster. The optimal default value is different for each session manager. ClusterSessionListener is never used in BackupManager. (kfujino)
  • Fix: Correct log messages in case of using BackupManager. (kfujino)
  • WebSocket:
  • Fix: 58342: Fix a copy and paste error that meant MessageHandler removal could fail for binary and pong MessageHandlers. Patch provided by DJ. (markt)
  • Fix: Data races detected by RV-Predict, mostly caused by completion handlers running in separate threads. (markt)
  • Fix: 58414: Correctly handle sending zero length messages when using per message deflate. (markt)
  • Web applications:
  • Fix: Correct documentation for cluster-howto. (kfujino)
  • Fix: Add missing documentation for property alwaysAddExpires for the LegacyCookieProcessor. (markt)
  • Tribes:
  • Add: Add support for configurations of ChannelListener and MembershipListener in server.xml. (kfujino)
  • Fix: Correct log messages in case of using ReplicatedMap. (kfujino)
  • Fix: 58381: Fix a rare data race in the NioReceiver. (markt)
  • Fix: 58382: Fix multiple rare data races in the default membership implementation. (markt)
  • Fix: 58383: Fix a data race in SenderState. (markt)
  • Fix: 58386: Fix a data race in ObjectReader. (markt)
  • Fix: 58391: Fix multiple data races in NonBlockingCoordinator, most of which were associated with ensuring that log messages contained the correct information. (markt)
  • Fix: 58392: Fix a data race in DomainFilterInterceptor. (markt)
  • Fix: 58393: Fix a data race on the listener in McastService. (markt)
  • Fix: 58395: Fix multiple data races in MemberImpl that were likely to cause issues if certain properties were updated concurrently (such updates are unlikely in normal usage). (markt)
  • Code: Remove some unnecessary code from PooledParallelSender and fix 58397. (markt)
  • jdbc-pool:
  • Fix: Make sure the pool has been properly configured when attributes that related to the pool size are changed via JMX. (kfujino)
  • Other:
  • Fix: Ensure logging works for all tests in a class rather than just the first one executed. (markt)
  • Add: 58344: Add build properties to enable tests to be executed against alternative binaries. Based on a patch by Petr Sumbera. (markt)

New in Apache Tomcat 8.0.26 (Aug 26, 2015)

  • Web applications:
  • Add: 58255: Document the Semaphore valve.

New in Apache Tomcat 8.0.25 (Aug 26, 2015)

  • Catalina:
  • Fix: Make the WAR manifest file available for WebResource instances from an unpacked WAR in the same way the manifest is available if the WAR is not unpacked. (markt)
  • Fix: Ensure that only /WEB-INF/classes/ and /WEB-INF/lib/ are excluded from the web resource caching. (Resources loaded from these locations are cached by the web application class loader.) (markt)
  • Add: 57741: Enable the CGI servlet to use the standard error page mechanism. Note that if the CGI servlet's debug init parameter is set to 10 or higher then the standard error page mechanism will be bypassed and a debug response generated by the CGI servlet will be returned instead. (markt)
  • Fix: 58031: Make the (first) reason parameter parsing failed available as a request attribute and then use it to provide a better status code via the FailedRequstFilter (if configured). (markt)
  • Fix: 58086: Correct a regression in the fix for 58086 that incorrectly handled WAR URLs. (violetagg)
  • Fix: 58096: Classes loaded from /WEB-INF/classes/ should use that directory as their code base. (markt)
  • Fix: Fix possible resource leaks by closing streams properly. Issues reported by Coverity Scan. (violetagg)
  • Fix: 58116: Fix regression in the fix for 57281 that broke Comet support when running under a security manager. Based on a patch provided by Johno Crawford. (markt)
  • Fix: 58125: Avoid a possible ClassCircularityError when running under a security manager. (markt)
  • Fix: 58179: Fix a thread safety issues that could mean concurrent threads setting the same attribute on a ServletContext could both see null as the old value. (markt)
  • Fix: Allow web archives bigger than 2G to be deployed using ANT tasks. (violetagg)
  • Fix: 58192: Correct a regression in the previous fix for 58023. Ensure that classes are associated with their manifest even if the class file is first read (and cached) without the manifest. (markt)
  • Fix: Fix thread safety issue in the AsyncContext implementation that meant a sequence of start();dispatch(); calls using non-container threads could result in a previous dispatch interfering with a subsequent start. (markt)
  • Fix: 58228: Make behaviour of ServletContext.getResource() and ServletContext.getResourceAsStream() consistent with each other and the expected behaviour of the GET_RESOURCE_REQUIRE_SLASH system property. (markt)
  • Fix: 58230: Fix input stream corruption if non-blocking I/O is used and the first read is made immediately after the switch to async mode rather than in response to onDataAvaiable() and that read does not read all the available data. (markt)
  • Fix: Ensure that log4javascript*.jar was not excluded from the standard JAR scanning by default. (markt)
  • Coyote:
  • Fix: 57943: Prevent the same socket being added to the cache twice. Patch based on analysis by Ian Luo / Sun Qi. (markt)
  • Fix: Add text/javascript,application/javascript to the default list of compressable MIME types. (violetagg)
  • Fix: 58103: When pipelining requests, and the previous request was an async request, ensure that the socket is removed from the waiting requests so that the async timeout thread doesn't process it during the next request. (markt)
  • Fix: 58151: Correctly handle EOF in the AJP APR/native connector to prevent the connector entering a loop and generate excessive CPU load. (markt)
  • Fix: In the AJP and HTTP NIO connectors, ensure that the socket timeout is correctly set before adding the socket back to the poller for read. (markt)
  • Fix: 58157: Ensure that the handling of async timeouts does not result in an unnecessary dispatch to a container thread that could result in the current socket being added to the Poller multiple times with multiple attempts to process the same event for the same socket. (markt)
  • Fix: Correct a coupe of edge cases in RequestUtil.normalize(). (markt)
  • Jasper:
  • Fix: 58110: Like scriptlet sections, declaration sections of JSP pages have a one-to-one mapping of lines to the generated .java file. Use this information to provide more accurate error messages if a compilation error occurs in a declaration section. (markt)
  • Fix: 58119: When tags are compiled they must be placed in the org/apache/jsp/tag/web directory. Correct a regression in the fix for 52725. (violetagg)
  • Fix: Fix a resource leak in JspC identified by Eclipse. (markt)
  • Fix: 58178: Expressions in a tag file should use the tag file's PageContext rather than that of the containing page. (markt)
  • Fix: Following on from the fix for 58178, expressions in a tag file should use the tag file's imports rather than those of the containing page. (markt)
  • WebSocket:
  • Fix: 58166: Allow applications to send close codes in the range 3000-4999 inclusive. (markt)
  • Fix: 58232: Avoid possible NPE when adding endpoints programmatically to the javax.websocket.server.ServerContainer. Based on a patch provided by bastian.(violetagg)
  • Web applications:
  • Fix: Correct the incorrect document of QueryTimeoutInterceptor. The setting value is not in milliseconds but in seconds. (kfujino)
  • Fix: 58112: Update the documentation for using the Catalina tasks in an Apache Ant build file. (markt)
  • Fix: Improve the Javadoc for some of the APR socket read functions that have inconsistent behaviour for return values. (markt)
  • jdbc-pool:
  • Fix: 58042: The default value of logFailed attribute of SlowQueryReport is changed to false so that the failed queries are not logged by default. (kfujino)
  • Fix: Fix potential NPE in QueryTimeoutInterceptor. (kfujino)
  • Fix: Add support for stopping the pool cleaner via JMX. (kfujino)
  • Fix: The fairness attribute and ignoreExceptionOnPreLoad attribute do not allow a change via JMX. (kfujino)
  • Fix: If the timeBetweenEvictionRunsMillis attribute is changed via jmx, it should restart the pool cleaner because this attribute affects the execution interval of the pool cleaner. (kfujino)
  • Fix: Eliminate the dependence on maxActive of busy queues and idle queue in order to enable the expansion of the pool size via JMX. (kfujino)
  • Other:
  • Update: Update optional Checkstyle library to 6.8.1. (kkolinko)
  • Fix: Update sample Eclipse IDE configuration to exclude test/webapp* and similar paths from compiler sourcepath. (kkolinko)
  • Update: Update package renamed Apache Commons Pool to Commons Pool 2.4.2. (markt)
  • Update: Update package renamed Apache Commons DBCP to Commons DBCP 2.1.1. (markt)
  • Add: Support the use of the threads attribute on Ant's junit task. Note that using this with a value of greater than one will disbale Cobertura code coverage. (markt)

New in Apache Tomcat 8.0.24 (Jul 7, 2015)

  • Catalina:
  • Fix: 57938: Correctly handle empty form fields when a form is submitted as multipart/form-data, the maxPostSize attribute of the Connector has been set to a negative value and the Context has been configured with a value of true for allowCasualMultipartParsing. The meaning of the value zero for the maxPostSize has also been changed to mean a limit of zero rather than no limit to align it with maxSavePostSize and to be more intuitive.
  • Add: 57939: Catch and log exceptions thrown by LifecycleListener implementations to prevent them from stopping the execution of subsequent LifecycleListeners.
  • Fix: 57977: Correctly bind and unbind the web application class loader during execution of the PersistentValve.
  • Fix: Remove some unnecessary code from the web application class loader and deprecate the now unused validate() method since the requirements of SRV.10.7.2 are met using cleaner code in loadClass(String, boolean) and filter().
  • Fix: Correct a bug that prevented the web application class loader's filter() from working correctly. It only returned true for classes in sub-packages of the listed packages, but not classes located in the packages themselves.
  • Fix: Add the WebSocket API classes to the list of classes that the web application class loader will always delegate to its parent for loading first.
  • Fix: 58015: Ensure that whenever the web application class loader checks to see if it should delegate first, it also checks the result of the filter() method which may indicate that it should always delegate first for the current class/resource regardless of the value of the delegate configuration option.
  • Fix: 58023: Fix potentially excessive memory usage due to unnecessary caching of JAR manifests in the web application class loader.
  • Fix: 57700: Ensure that Container event ADD_CHILD_EVENT will be sent in all cases.
  • Fix: 58086: Ensure that WAR URLs are handled properly when using ANT for web application deployment. Based on a patch provided by Lukasz Jader.
  • Fix: Fix CredentialHandler element handling in storeconfig.
  • Coyote:
  • Fix: 57265: Further fix to address a potential threading issue when sendfile is used in conjunction with TLS.
  • Fix: 57936: Improve robustness of the acceptor thread count parameter for NIO2, since it must be set to 1. Submitted by Oliver Kant.
  • Add: 57943: Added a work-around to catch ConcurrentModificationExceptions during Poller timeout processing that were causing the Poller thread to stop. The root cause of these exceptions is currently unknown.
  • Fix: 57944: Ensure that if non-blocking I/O listeners are set on a non-container thread that the expected listener events are still triggered.
  • Fix: Fix possible very long (1000 seconds) timeout with APR/native connector.
  • Add: Support "-" separator in the SSLProtocol configuration of the APR/native connector for protocol exclusion. (rjung)
  • Fix: 58004: Fix AJP buffering output data even in blocking mode.
  • WebSocket:
  • Fix: 57969: Provide path parameters to POJO via per session javax.websocket.server.ServerEndpointConfig as they vary between different requests.
  • Fix: 57974: Session.getOpenSessions should return all sessions associated with a given endpoint instance, rather than all sessions from the endpoint class.
  • Web applications:
  • Fix: 57282: Update request processing sequence diagrams.
  • Fix: 57971: Correct the documentation for the cluster configuration setting recoverySleepTime.
  • Add: 57758: Add document of testOnConnect attribute in jdbc-pool doc.
  • Add: Add description of validatorClassName attribute to testXXXX attributes in jdbc-pool docs.
  • Tribes:
  • Code: Use StringManager to provide i18n support in the org.apache.catalina.tribes packages.
  • Fix: Do not set the nodes that failed to replication to the backup nodes. Ensure that the nodes that the data has been successfully replicated are set to the backup node.
  • Fix: When failed to replication, rather than all member is handled as a failed member, exclude the failure members from backup members.
  • jdbc-pool:
  • Fix: Refactoring of the removeOldest method in SlowQueryReport to behave as expected.
  • Fix: 57783: Fix NullPointerException in SlowQueryReport. To avoid this NPE, Refactor SlowQueryReport#removeOldest and handle the abandoned connection properly.
  • Fix: 58042: In SlowQueryReportJmx, the LogSlow and logFailed attributes that inherited from SlowQueryReport are used as a condition of whether JMX notifications are sent.
  • Fix: Ensure that specified Boolean attribute values of SlowQueryReport reflect correctly. The LogSlow and the logFailed are not system property, these are attributes of SlowQueryReport.
  • Other:
  • Update: Update package renamed Apache Commons BCEL to r1682271 to pick up some some code clean up.
  • Update: Update package renamed Apache Commons DBCP to r1682314 to pick up the DBCP 2.1 release and additional fixes since then.
  • Update: Update package renamed Apache Commons Pool to the 2.4 release.
  • Update: Update package renamed Apache Commons File upload to r1682322 to pick up the post 1.3.1 fixes.
  • Update: Update package renamed Apache Commons Codes to r1682326. No functional changes. Javadoc only.
  • Update: Update optional Checkstyle library to 6.7.

New in Apache Tomcat 8.0.23 (Jul 7, 2015)

  • Catalina:
  • Add: 54618: Add a new HttpHeaderSecurityFilter that adds the Strict-Transport-Security, X-Frame-Options and X-Content-Type-Options HTTP headers to the response.
  • Fix: 57875: Add javax.websocket.* to the classes for which the web application class loader always delegates first.
  • Fix: 57871: Ensure that setting the the allowHttpSepsInV0 property of a LegacyCookieProcessor to false only prevents HTTP separators from being used without quotes.
  • Fix: Add a workaround for issues with SPNEGO authentication when running on Java 8 update 40 and later. The workaround should be safe for earlier Java versions but it can be disabled with the applyJava8u40Fix attribute of the SPNEGO authenticator if necessary.
  • Fix: 57926: Restore the original X-Forwarded-By and X-Forwarded-For headers after processing by the RemoteIPValve .
  • Coyote:
  • Fix: Follow up to previous fix that removed the behavior difference between NIO and NIO2 for SSL, which caused corruption with NIO2. (remm)
  • Fix: 57931: Ensure that TLS connections with the NIO or NIO2 HTTP connectors that experience issues during the handshake (e.g. missing or invalid client certificate) are closed cleanly and that the client receives the correct error code rather than simply closing the connection.
  • Jasper:
  • Fix: 56438: Add debug logging to TLD discovery that logs positive and negative results for JARs, resource paths and directories. Patch provided by VIN.
  • Fix: 57802: Correct the default implementation of convertToType() provided by javax.el.ELResolver.
  • Fix: 57887: Fix compilation of recursive tag files packaged in a JAR.
  • Cluster:
  • Fix: Make sure that stream is closed after using it in DeltaSession.applyDiff().
  • Code: Use StringManager to provide i18n support in the org.apache.catalina.ha packages.
  • Code: Add the context name to log messages when replication context failed to start.
  • Web applications:
  • Fix: 57875: Update the web application class loader documentation to reflect the more relaxed approach to SRV.10.7.2 in Tomcat 8 onwards.
  • Fix: 57896: Document system property org.apache.tomcat.util.http.ServerCookie.PRESERVE_COOKIE_HEADER that was introduced in Tomcat 8.0.0.
  • Tribes:
  • Fix: Ensure that the state transfer flag is updated to true only when the map states have been transferred correctly from existing map members.
  • Other:
  • Update: Update optional Checkstyle library to 6.6.

New in Apache Tomcat 8.0.22 (May 8, 2015)

  • Catalina
  • Fix: 57736: Change the format of the Tomcat specific URLs for resources inside JARs that are in turn packed in a WAR. The ^/ sequence has been replaced by */ so that the resulting URLs are compliant with RFC 2396 and do not trigger exceptions when converted to URIs. The old format will continue to be accepted. (markt)
  • Fix: 57752: Exclude non-cached resources from the Cache statistics for resource lookups. Patch provided by Adam Mlodzinski. (markt)
  • Add: Allow logging of the remote port in the access log using the format pattern %{remote}p. (rjung)
  • Fix: 57556: Refine the previous fix fo rthis issue so that the real path returned only has a trialing separator if the requested path ended with /. (markt)
  • Fix: 57765: When checking last modified times as part of the automatic deployment process, account for the fact that File.lastModified() has a resolution of one second to ensure that if a file has been modified within the last second, the latest version of the file is always used. Note that a side-effect of this change is that files with modification times in the future are treated as if they are unmodified. (markt)
  • Fix: Align redeploy resource modification checking with reload modification checking so that now, in both cases, a change in modification time rather than an increase in modification time is used to determine if the resource has changed. (markt)
  • Fix: Cleanup o.a.tomcat.util.digester.Digester from debug messages that do not give any valuable information. Patch provided by Polina Genova. (violetagg)
  • Fix: 57772: When reloading a web application and a directory representing an expanded WAR needs to be deleted, delete the directory after the web application has been stopped rather than before to avoid potential ClassNotFoundExceptions. (markt)
  • Fix: Fix wrong logger name of org.apache.catalina.webresources.StandardRoot. (kfujino)
  • Fix: 57801: Improve the error message in the start script in case the PID read from the PID file is already owned by a process. (rjung)
  • Fix: 57841: Improve error logging during web application start.
  • Fix: 57856: Ensure that any scheme/port changes implemented by the RemoteIpFilter also affect HttpServletResponse.sendRedirect().
  • Fix: 57863: Fix the RewriteMap support in RewriteValve that did not use the correct key value to look up entries.
  • Coyote:
  • Fix: 57779: When an I/O error occurs on a non-container thread only dispatch to a container thread to handle the error if using Servlet 3+ asynchronous processing. This avoids potential deadlocks if an application is performing I/O on a non-container thread without using the Servlet 3+ asynchronous API.
  • Code: Remove the experimental support for SPDY. No current user agent supports the version of SPDY that the experiment targetted. Note: HTTP/2 support is under development for Tomcat 9 and may be back-ported to Tomcat 8 once complete.
  • Fix: Possible incomplete writes with SSL NIO2.
  • Fix: Incorrect reads with SSL NIO2 caused by a bad strategy for handling IO differences between NIO and NIO2 that don't seem to be justified.
  • Fix: After some errors, the pending flags could remain set when using SSL NIO2.
  • Fix: 57833: When using JKS based keystores for NIO or NIO2, ensure that the key alias is always converted to lower caes since that is what JKS key stores expect. Based on a patch by Santosh Giri Govind M.
  • Fix: 57837: Add text/css to the default list of compressable MIME types.
  • Jasper:
  • Fix: 57845: Ensure that, if the same JSP is accessed directly and via a declaration in web.xml, updates to the JSP are visible (subject to the normal rules on re-compilation) regardless of how the JSP is accessed.
  • Fix: 57855: Explicitly handle the case where a MethodExpression is invoked with null or the wrong number of parameters. Rather than failing with an ArrayIndexOutOfBoundsException or a NullPointerException throw an IllegalArgumentException with a useful error message.
  • Cluster:
  • Fix: Avoid unnecessary call of DeltaRequest.addSessionListener() in non-primary nodes.
  • Add: Add new attribute that send all actions for session across Tomcat cluster nodes.
  • Fix: Remove unused pathname attribute in mbean definition of BackupManager.
  • WebSocket:
  • Fix: 57761: Ensure that the opening HTTP request is correctly formatted when the WebSocket client connects to a server root.
  • Fix: 57762: Ensure that the WebSocket client correctly detects when the connection to the server is dropped.
  • Fix: 57776: Revert the 8.0.21 fix for the permessage-deflate implementation and incorrect op-codes since the fix was unnecessary (the bug only affected trunk) and the fix broke rather than fixed permessage-deflate if an uncompressed message was converted into more than one compressed message.
  • Fix: Fix log name typo in WsRemoteEndpointImplServer class, caused by a copy-paste.
  • Fix: 57788: Avoid NPE when looking up a class hierarchy without finding anything.
  • Web applications:
  • Add: 57759: Add information to the keyAlias documentation to make it clear that the order keys are read from the keystore is implementation dependent.
  • Fix: 57864: Update the documentation web application to make it clearer that hex values are not valid for cluster send options. Based on a patch by Kyohei Nakamura.
  • Tribes:
  • Fix: Fix a concurrency issue when a backup message that has all session data and a backup message that has diff data are processing at the same time. This fix ensures that MapOwner is set to ReplicatedMapEntry.
  • Other:
  • Fix: Add missing pom for tomcat-storeconfig.
  • Update: Update optional Checkstyle library to 6.5.
  • Fix: 57707: Improve error message when trying to run a release build on a non-Windows platform and Wine is not available.

New in Apache Tomcat 8.0.21 (Mar 28, 2015)

  • Catalina:
  • Add: 49785: Enable StartTLS connections for JNDIRealm.
  • Fix: When docBase refers internal war and unpackWARs is set to false, avoid registration of the invalid redeploy resource that has been added ".war" extension in duplicate.
  • Fix: If WAR exists, it is not necessary to trigger a reload when adding a Directory.
  • Fix: 55988: Add support for Java 8 JSSE server-preferred TLS cipher suite ordering. This feature requires Java 8.
  • Fix: 56608: When deploying an external WAR, add watched resources in the expanded directory based on whether the expanded directory is expected to exist rather than if it does exist.
  • Fix: When triggering a reload due to a modified watched resource, ensure that multiple changed watched resources only trigger one reload rather than a series of reloads.
  • Fix: 57601: Ensure that HEAD requests return the correct content length (i.e. the same as for a GET) when the requested resource includes a resource served by the Default servlet.
  • Fix: 57602: Ensure that HEAD requests return the correct content length (i.e. the same as for a GET) when the requested resource includes a resource served by a servlet that extends HttpServlet.
  • Fix: 57621: When an async request completes, ensure that any remaining request body data is swallowed.
  • Fix: 57637: Do not create unnecessary sessions when using PersistentValve.
  • Fix: 57645: Correct a regression in the fix for 57190 that incorrectly required the path passed to ServletContext.getContext(String) to be an exact match to a path to an existing context.
  • Fix: Make sure that unpackWAR attribute of Context is handled correctly in HostConfig.
  • Fix: When deploying a WAR file that contains a context.xml file and unpackWARs is false ignore any context.xml file that may exist in an expanded directory associated with the WAR.
  • Fix: 57675: Correctly quote strings when using the extended access log.
  • Add: Enable Tomcat to detect when a WAR file has been changed while Tomcat is not running. Tomcat does this by adding a META-INF/war-tracking file to the expanded directory and setting the last modified time of this file to the last modified time of the WAR. If Tomcat detects a modified WAR via this mechanism the web application will be redeployed (i.e. the expanded directory will be removed and the modified WAR expanded in its place).
  • Fix: 57704: Fix potential NPEs during web application start/stop when org.apache.tomcat.InstanceManager is not initialized.
  • Add: Use the simplified digest output for digest.bat|sh when generating digests with no salt and a single iteration to make it easier to use with DIGEST authentication.
  • Fix: Add support for LAST_ACCESS_AT_START system property to SingleSignOn.
  • Code: Refactor Authenticator implementations to reduce code duplication.
  • Fix: 57724: Handle the case in the CORS filter where a user agent includes an origin header for a non-CORS request.
  • Fix: When searching for SCIs o.a.catalina.Context.getParentClassLoader will be used instead of java.lang.ClassLoader.getParent. Thus one can provide the correct parent class loader when running embedded Tomcat in other environments such as OSGi.
  • Fix: 57743: Fix a locked file / resource leak issue when a JAR is accessed just before or during web application undeploy.
  • Coyote:
  • Add: 57540: Make TLS/SSL protocol available in a new request attribute (org.apache.tomcat.util.net.secure_protocol_version). (Note that AJP connectors will require mod_jk 1.2.41 or later, or an as-yet-unknown version of mod_proxy_ajp, or configure the proxy to send the AJP_SSL_PROTOCOL request attribute to Tomcat.)
  • Fix: Fix a cipher ordering issue when using the OpenSSL syntax for JSSE cipher configuration to ensure that ephemeral ECDH with AES is preferred to ephemeral ECDH with anything else.
  • Fix: 57570: Make the processing of trailer headers with chunked input optional and disabled by default.
  • Fix: 57592: Correctly handle the case where an AsyncContext is used for non-blocking I/O and is completed during a write operation.
  • Fix: 57638: Avoid an IllegalArgumentException when an AJP request body chunk larger than the socket read buffer is being read. This typically requires a larger than default AJP packetSize.
  • Fix: 57674: Avoid a BufferOverflowException when an AJP response body chunk larger than the socket write buffer is being written. This typically requires a larger than default AJP packetSize.
  • Update: Align the OpenSSL syntax cipher configuration with the OpenSSL 1.0.2 branch.
  • Fix: Numerous fixes to the APR/native connector to improve robustness.
  • Fix: Stop caching and re-using SocketWrapper instances. With the introduction of upgrade and non-blocking I/O, I/O can occur on non-container threads. This makes it nearly impossible to track whether a SocketWrapper is still being references or not. making re-use a risky proposition.
  • Code: Refactor Connector authentication (only used by AJP) into a separate method.
  • Add: 57708: Implement a new feature for AJP connectors - Tomcat Authorization. If the new tomcatAuthorization attribute is set to true (it is disabled by default) Tomcat will take an authenticated user name from the AJP protocol and use the appropriate Realm for the request to authorize (i.e. add roles) to that user.
  • Fix: Fix an issue that meant that any pipe-lined data read by Tomcat before an asynchronous request completed was lost during the completion of the asynchronous request. This mean that the pipe-lined request(s) would be lost and/or corrupted.
  • Update: Update the minimum recommended version of the Tomcat Native library (if used) to 1.1.33.
  • Jasper:
  • Fix: 57135: Package imports via javax.el.ImportHandler should only import public, concrete classes.
  • Fix: 57583: Cache 'Not Found' results in javax.el.ImportHandler.resolveClass() to save repeated attempts to load classes that are known not to exist to improve performance.
  • Fix: 57626: Correct a regression introduced in the 8.0.16 fix for ensuring Jars were closed after use, that broke recompilation of modified JSPs that depended on a tag file packaged in a Jar.
  • Fix: 57627: Correctly determine last modified times for dependencies when a tag file packaged in a JAR depends on a tag file packaged in a second JAR.
  • Fix: 57647: Ensure INFO message is logged when scanning jars for TLDs if the scan does not find a TLD in any jar. Previously a message would only be logged if a TLD was not found in all scanned jars.
  • Update: 57662: Update all references to the ECJ compiler to version 4.4.2.
  • Cluster:
  • Fix: Remove unnecessary method that always returns true. The domain filtering works on DomainFilterInterceptor.
  • WebSocket:
  • Fix: Correct a bug in the permessage-deflate implementation that meant that the incorrect op-codes were used if an uncompressed message was converted into more than one compressed message.
  • Add: 57676: List conflicting WebSocket endpoint classes when there is a path conflict.
  • Web applications:
  • Fix: 56058: Add links to the AccessLogValve documentation for configuring reverse proxies and/or Tomcat to ensure that the desired information is used entered in the access log when Tomcat is running behind a reverse proxy.
  • Fix: 57587: Update the JNDI Datasource HOWTO for DBCP2. Patch provided by Phil Steitz.
  • Fix: Remove incorrect note from context configuration page in the documentation web application that stated WAR files located outside the appBase were never unpacked.
  • Fix: 57683: Ensure that if a client aborts their connection to the stock ticker example (the only way a client can disconnect), the example continues to work for existing and new clients.
  • Fix: Make it clear that when using digested passwords with DIGEST authentication that no salt and only a single iteration must be used when generating the digest.
  • Update: Update examples to use Apache Standard Taglib 1.2.5.
  • Extras:
  • Fix: 57377: Remove the restriction that prevented the use of SSL when specifying a bind address with the JMXRemoteLifecycleListener. Also enable SSL to be configured for the registry as well as the server.
  • Tribes:
  • Fix: When a map member has been added to ReplicatedMap, make sure to add it to backup nodes list of all other members.
  • Fix: Make sure that refuse the messages from a different domain in DomainFilterInterceptor.
  • Other:
  • Update: Update optional Checkstyle library to 6.4.1.
  • Fix: 57703: Update the http-method definition for web applications using a Servlet 2.5 descriptor as per Servlet 2.5 MR 6.
  • Update: Update to Tomcat Native Library version 1.1.33 to pick up the Windows binaries that are based on OpenSSL 1.0.1m and APR 1.5.1.

New in Apache Tomcat 8.0.20 (Mar 28, 2015)

  • Coyote:
  • Fix: Fix a concurrency issue that meant that a change in socket timeout (e.g. when switching to asynchronous I/O) did not always take effect immediately.

New in Apache Tomcat 8.0.19 (Mar 28, 2015)

  • Catalina:
  • Fix: Clarify threaded usage of variables by removing volatile marker in NonceInfo. Issue reported by Coverity Scan.
  • Fix: 57180: Further fixes to support the use of arbitrary HTTP methods with the CORS filter.
  • Fix: 57472: Fix performance regression in resources implementation when signed JARs are used in a web application.
  • Add: Warn about problematic setting of appBase.
  • Fix: Fix exception while authentication in JDBCRealm.
  • Fix: 57534: CORS Filter should only look at media type component of Content-Type request header.
  • Fix: 57556: Align getRealPath() behaviour with that of earlier versions and include a trailing separator if the real path refers to a directory.
  • Fix: Ensure that Servlet 3.0 async requests where startAsync() is called in one container thread and dispatch() is called in a different container thread complete correctly.
  • Fix: Ensure that user name checking in the optional SecurityListener is case-insensitive (as documented) and than the case-insensitive comparison is performed using the system default Locale.
  • Add: 57021: Improve logging in AprLifecycleListener and jni.Library when Tomcat-Native DLL fails to load. Based on a patch by Pravallika Peddi.
  • Coyote:
  • Fix: Fix several bugs that could cause multiple registrations for write events for a single socket when using Servlet 3.0 async. Typically, the side effects of these multiple registrations would be exceptions appearing in the logs.
  • Fix: 57432: Align SSL_OP_NO_TLSv1_1 and SSL_OP_NO_TLSv1_2 constant values with OpenSSL (they had been swapped).
  • Fix: 57509: Improve length check when writing HTTP/1.1 response headers: reserve space for 4 extra bytes.
  • Fix: 57544: Fix potential infinite loop when preparing a kept alive HTTP connection for the next request.
  • Fix: 57546: Ensure that a dropped network connection does not leave references to the UpgradeProcessor associated with the connection in memory.
  • Fix: When applying the maxSwallowSize limit to a connection read that many bytes first before closing the connection to give the client a chance to read the response.
  • Fix: Prevent an async timeout being processed multiple times for the same socket when running on slow and/or heavily loaded systems.
  • Fix: 57581: Change statistics byte counter in coyote Request object to be long to allow values above 2Gb.
  • Update: Use the data that supports cipher definition using OpenSSL syntax to improve the quality of values provided for the javax.servlet.request.key_size request attribute.
  • Fix: Fix a concurrency issue in the APR Poller that meant it was possible under low load for a socket queued to be added to the Poller not to be added for 10 seconds.
  • Jasper:
  • Update: 57123: Update all references to the ECJ compiler to version 4.4.1. With thanks to Ralph Schaer for uploading the 4.4.1 JAR to Maven Central.
  • Add: 57564: Make JspC amenable to subclassing. Patch provided by Jan Bartel.
  • Fix: Simplify code in ProtectedFunctionMapper class of Jasper runtime.
  • Fix: 57574: Do not check existence of a Java package in javax.el.ImportHandler.importPackage().
  • WebSocket:
  • Fix: 57490: Make it possible to use Tomcat's WebSocket client within a web application when running under a SecurityManager. Based on a patch by Mikael Sterner.
  • Add: Add some debug logging to the WebSocket session to track session creation and session closure.
  • Web applications:
  • Update: Clarify documentation for useBodyEncodingForURI attribute of a connector.
  • Fix: Fix possible resource leaks by closing streams properly. Issues reported by Coverity Scan.
  • Fix: 57503: Make clear that the JULI integration for log4j only works with log4j 1.2.x.
  • Fix: 57496: Remove hard-coded URL in JSP SVG example.
  • Tribes:
  • Fix: Fix a possible deadlock when receiver thread invokes mapMemberAdded() while ping thread invokes memberAlive().
  • Other:
  • Add: Enhance bean factory used for JNDI resources. New attribute forceString allows to support non-standard string argument property setters.
  • Fix: Assign newly created stream to field instead of leaking it uselessly. Issue reported by Coverity Scan.
  • Update: Update optional Checkstyle library to 6.3.
  • Fix: Guard the digester from MbeansDescriptorsDigesterSource with its own lock object.
  • Fix: Refactor the unit tests and add some new test properties to make it easier to exclude performance tests and relax timing tests. This is primarily for the ASF CI system where these tests frequently fail.
  • Fix: 57558: Add missing JAR in Ant task definition required by the validate task.
  • Add: List names of Testsuites that have failed or skipped tests when running the tests with Ant.

New in Apache Tomcat 8.0.18 (Feb 24, 2015)

  • Catalina:
  • Fix: 57178: The CORS filter now treats null as a valid origin that matches (markt)
  • Fix: 57425: Don't add attributes with null value or name to the replicated context. (fschumacher)
  • Add: 57431: Enable usage of custom class for context creation when using embedded tomcat. (fschumacher)
  • Fix: 57446: Ensure that ServletContextListeners that have limited access to ServletContext methods are called with the same ServletContext instance for both contextInitialized() and contextDestroyed(). (markt)
  • Fix: 57455: Explicitly block the use of the double-quote character when configuring the common, server and shared class loaders since double-quote is used to quote values that contain commas. (markt)
  • Fix: 57461: When an instance of org.apache.catalina.startup.VersionLoggerListener logs the result of System.getProperty("java.home") don't report it in a manner that makes it look like the JAVA_HOME environment variable. (markt)
  • Fix: 57476: Ensure the responses written as part of a forward are fully written. This fixes a regression in 8.0.15 caused by the fix for 57252. (markt)
  • Fix: While closing streams for given resources ensure that if an exception happens it will be handled properly. Issue is reported by Coverity Scan. (violetagg)
  • Fix: 57481: Fix IllegalStateException at the end of the request when using non-blocking reads with the HTTP BIO connector. (markt)
  • Fix: Change Response to use UEncoder instances with shared safeChars. (fschumacher)
  • Fix: Ensure that when static resources are served from JARs, only static resources are served. (markt)
  • Add: Allow VersionLoggerListener to log all system properties. This feature is off by default. (kkolinko)
  • Jasper:
  • Fix: Ensure that classes imported via the page directive are made available to the EL environment via the ImportHandler. Issue is reported by Coverity Scan. (violetagg)
  • Fix: 57441: Do not trigger an error when using functions defined by lambdas or imported via an ImportHandler in an EL expression in a JSP. (markt)
  • Cluster:
  • Fix: Fix mbean descriptor of ClusterSingleSignOn. (kfujino)
  • Fix: 57473: Add sanity check to FarmWebDeployer's WarWatcher to detect suspected incorrect permissions on the watch directory. (schultz)
  • Tribes:
  • Fix: Clarify the handling of Copy message and Copy nodes. (kfujino)
  • Fix: Copy node does not need to send the entry data. It is enough to send only the node information of the entry. (kfujino)
  • Fix: ReplicatedMap should send the Copy message when replicating. (kfujino)
  • Fix: Fix behavior of ReplicatedMap when member has disappeared. If map entry is primary, rebuild the backup members. If primary node of map entry has disappeared, backup node is promoted to primary. (kfujino)

New in Apache Tomcat 8.0.17 (Jan 27, 2015)

  • Catalina:
  • Fix: Correct a regression in the previous fix for 57252 that broke request listeners for non-async requests that triggered an error that was handled by the ErrorReportingValve. (markt/violetagg)
  • Coyote:
  • Fix: Add flushing to send ack in the NIO2 connector. (remm)

New in Apache Tomcat 8.0.16 (Jan 27, 2015)

  • Catalina:
  • Fix: 57172: Provide a better error message if something attempts to access a resource through a web application class loader that has been stopped. (markt/kkolinko)
  • Fix: 57173: Revert the fix for 56953 that broke annotation scanning in some cases. (markt)
  • Fix: 57180: Do not limit the CORS filter to only accepting requests that use an HTTP method defined in RFC 7231. (markt)
  • Fix: 57190: Fix ServletContext.getContext(String) when parallel deployment is used so that the correct ServletContext is returned. (markt)
  • Fix: 57208: Prevent NPE in JNDI Realm when no results are found in a directory context for a user with specified user name. Based on a patch provided by Jason McIntosh. (violetagg)
  • Add: 57209: Add a new attribute, userSearchAsUser to the JNDI Realm. (markt)
  • Fix: 57215: Ensure that the result of calling HttpServletRequest.getContextPath() is neither decoded nor normalized as required by the Servlet specification. (markt)
  • Fix: 57216: Improve handling of invalid context paths. A context path should either be an empty string or start with a '/' and do not end with a '/'. Invalid context path are automatically corrected and a warning is logged. The null and "/" values are now correctly changed to "". (markt/kkolinko)
  • Fix: Update storeconfig with the CredentialHandler element. (remm)
  • Fix: Correct message that is logged when load-on-startup servlet fails to load. It was logging a wrong name. (kkolinko)
  • Fix: 57239: Correct several message typos. Includes patch by vladk. (kkolinko)
  • Fix: Fix closing of Jars during annotation scanning. (schultz/kkolinko)
  • Fix: Fix a concurrency issue in async processing. Ensure that a non-container thread can not change the async state until the container thread has completed. (markt)
  • Fix: 57252: Provide application configured error pages with a chance to handle an async error before the built-in error reporting. (markt)
  • Fix: 57281: Enable non-public Filter and Servlet classes to be configured programmatically via the Servlet 3.0 API and then used without error when running under a SecurityManager. (markt)
  • Fix: 57308: Remove unnecessary calls to System.getProperty() where more suitable API calls are available. (markt)
  • Add: Add unit tests for RemoteAddrValve and RemoteHostValve. (rjung)
  • Add: Allow to configure RemoteAddrValve and RemoteHostValve to adopt behavior depending on the connector port. Implemented by optionally adding the connector port to the string compared with the patterns allow and deny. Configured using addConnectorPort attribute on valve. (rjung)
  • Add: Optionally trigger authentication instead of denial in RemoteAddrValve and RemoteHostValve. This only works in combination with preemptiveAuthentication on the application context. Configured using invalidAuthenticationWhenDeny attribute on valve. (rjung)
  • Fix: Remove the obsolete jndi protocol usage from the scanning process performed by StandardJarScanner. (violetagg)
  • Fix: Prevent file descriptors leak and ensure that files are closed after retrieving the last modification time. (violetagg)
  • Update: Make o.a.catalina.webresources.StandardRoot easier for extending. (violetagg)
  • Fix: 57326: Enable AsyncListener implementations to re-register themselves during AsyncListener.onStartAsync. (markt)
  • Fix: 57331: Allow ExpiresFilter to use "year" as synonym for "years" in its configuration. (kkolinko)
  • Fix: Ensure that if the RewriteValve rewrites a request that subsequent calls to HttpServletRequest.getRequestURI() return the undecoded URI. (markt)
  • Fix: Ensure that if the RewriteValve rewrites a request to a non-normalized URI that the URI is normalized before the URI is mapped to ensure that the correct mapping is applied. (markt)
  • Fix: Prevent NPEs being logged during post-processing for requests that have been re-written by the RewriteValve. (markt)
  • Fix: Various StoreConfig improvements including removing a dependency on the StandardServer implementation, improve consistency of behaviour when MBean is not registered and improve error messages when accessed via the Manager application. (markt)
  • Update: Improve SnoopServlet in unit tests. (rjung)
  • Add: Add RequestDescriptor class to unit tests. Adjust TestRewriteValve to use RequestDescriptor. (rjung)
  • Update: Add more AJP unit tests. (rjung)
  • Fix: 57363: Log to stderr if LogManager is unable to read configuration files rather than swallowing the exception silently. (markt)
  • Coyote:
  • Fix: Allow HTTP upgrade process to complete without data corruption when additional content is sent along with the upgrade header. (remm)
  • Fix: 57187: Regression handling the special * URL. (remm)
  • Fix: 57234: Make SSL protocol filtering to remove insecure protocols case insensitive. (markt)
  • Fix: 57265: Fix some potential concurrency issues with sendFile and the NIO connector. (markt)
  • Fix: 57324: If the client uses Expect: 100-continue and Tomcat responds with a non-2xx response code, Tomcat also closes the connection. If Tomcat knows the connection is going to be closed when committing the response, Tomcat will now also send the Connection: close response header. (markt)
  • Fix: 57340: When using Comet, ensure that Socket and SocketWrapper are only returned to their respective caches once on socket close (it is possible for multiple threads to call close concurrently). (markt)
  • Fix: 57347: AJP response contains wrong status reason phrase (rjung)
  • Add: 57391: Allow TLS Session Tickets to be disabled when using the APR/native HTTP connector. Patch provided by Josiah Purtlebaugh. (markt)
  • Jasper:
  • Fix: 57142: As per the clarification from the JSP specification maintenance lead, classes and packages imported via the page directive must be made available to the EL environment via the ImportHandler. (markt)
  • Fix: 57247: Correct the default Java source and target versions in the JspC usage message to 1.7 for Java 7. (markt)
  • Fix: 57309: Ensure that the current EL Resolver is given an opportunity to perform type coercion before applying the default EL coercion rules. (markt)
  • Fix: Improve the calculation of the resource's last-modified, performed by JspCompilationContext, in a way to support URLs with protocol different than jar:file. (violetagg)
  • Fix: Fix potential issue with BeanELResolver when running under a security manager. Some classes may not be accessible but may have accessible interfaces. (markt)
  • Cluster:
  • Fix: In order to enable define in Cluster element, ClusterSingleSignOn implements ClusterValve. (kfujino)
  • Fix: 57338: Improve the ability of the ClusterSingleSignOn valve to handle nodes being added and removed from the Cluser at run time. (markt)
  • WebSocket:
  • Fix: Correct multiple issues with the flushing of batched messages that could lead to duplicate and/or corrupt messages. (markt)
  • Fix: Correctly implement headers case insensitivity. (markt/remm)
  • Fix: Allow optional use of user extensions. (remm)
  • Fix: Allow using partial binary message handlers. (remm)
  • Fix: Limit ping/pong message size. (remm)
  • Fix: Allow configuration of the time interval for the periodic event. (remm)
  • Fix: More accurate annotations processing. (remm)
  • Fix: Allow optional default for origin header in the client. (remm)
  • Web applications:
  • Fix: Update documentation for CGI servlet. Recommend to copy the servlet declaration into web application instead of enabling it globally. Correct documentation for cgiPathPrefix. (kkolinko)
  • Update: Improve HTML version of build instructions and align with BUILDING.txt. (kkolinko)
  • Update: Improve Tomcat Manager documentation. Rearrange, add section on HTML GUI, document /expire command and Server Status page. (kkolinko)
  • Update: 57238: Update information on SSL/TLS on Security and SSL documentation pages. Patch by Glen Peterson. (kkolinko)
  • Fix: 57245: Correct the reference to allowLinking in the security configuration guide since that attribute has moved from the Context element to the nested Resources element. (markt)
  • Fix: Fix ambiguity of section links on Valves configuration reference page. (kkolinko)
  • Fix: 57261: Fix vminfo and threaddump Manager commands to start their output with an "OK" line. Document them. Based on a patch by Oleg Trokhov. (kkolinko)
  • Fix: 57267: Document the StoreConfigLifecycleListener and the /save command for the Manager application. (markt)
  • Fix: 57323: Correct display of outdated sessions in sessions count listing in Manager application. (kkolinko)
  • Add: Add document of ClusterSingleSignOn. (kfujino)
  • Other:
  • Update: When downloading required libraries at build time, use random name for temporary file and automatically create destination directory (base.path). (kkolinko)
  • Update: Update optional Checkstyle library to 6.2. (kkolinko)
  • Update: Simplify setproxy task in build.xml. Taskdef there is not needed since Ant 1.8.2. (kkolinko)
  • Fix: Update "ide-eclipse" target in build.xml to create Eclipse project that uses Java 7 compliance settings instead of workspace-wide defaults. (kkolinko)
  • Fix: Update the package renamed copy of Apache Commons Pool 2 to the 2.3 release to pick up various fixes since the 2.2 release including one for a possible infinite loop. (markt)
  • Fix: 57285: Restore the manifest entry that marks the Windows uninstaller application as requiring elevated privileges. (markt)
  • Add: 57344: Provide sha1 checksum files for Tomcat downloads. Correct filename patterns for apache-tomcat-*-embed.tar.gz archive to exclude an *.asc file. (kkolinko)

New in Apache Tomcat 8.0.15 (Jan 16, 2015)

  • Catalina:
  • Add: 43548: Add an XML schema for the tomcat-users.xml file. (markt)
  • Add: 43682: Add support for referring to the current context, host and service name in per Context logging.properties files by using the properties ${classloader.webappName}, ${classloader.hostName} and ${classloader.serviceName}. (markt)
  • Add: 47919: Extend the information logged when Tomcat starts to optionally log the values of command line arguments (enabled by default) and environment variables (disabled by default). Note that the values added to CATALINA_OPTS and JAVA_OPTS environment variables will be logged, as they are used to build up the command line. (markt)
  • Add: 49939: Expose the method that clears the static resource cache for a web application via JMX. (markt)
  • Fix: 55951: Allow cookies to use UTF-8 encoded values in HTTP headers. This requires the use of the RFC6265 CookieProcessor. (markt)
  • Fix: 55984: Using the allow separators in version 0 cookies option with the legacy cookie processor should only apply to version 0 cookies. Version 1 cookies with values that contain separators should not be affected and should continue to be quoted. (markt)
  • Add: 56393: Add support for RFC6265 cookie parsing and generation. This is currently disabled by default and may be enabled via the CookieProcessor element of a Context. (markt)
  • Add: 56394: Introduce new configuration element CookieProcessor in Context to allow context-specific configuration of cookie processing options. Attributes of Context element that were added in Tomcat 8.0.13 to allow configuration of a new experimental RFC6265 based cookie parser (useRfc6265 and cookieEncoding) are replaced by this new configuration element. (markt)
  • Fix: Improve the previous fix for 56401. Avoid logging version information in the constructor since it then gets logged at undesirable times such as when using StoreConfig. (markt)
  • Fix: 56403: Add pluggable password derivation support to the Realms via the new CredentialHandler interface. (markt/schultz)
  • Fix: 57016: When using the PersistentValve do not remove sessions from the store when persisting them. (markt)
  • Add: Deprecate the use of system proprties to control cookie parsing and replace them with attributes on the new CookieProcessor that may be configured on a per context basis. (markt)
  • Fix: Correct an edge case and allow a cookie if the value starts with an equals character and the CookieProcessor is not configured to allow equals characters in cookie values but is configured to allow name only cookies. (markt)
  • Fix: 57022: Ensure SPNEGO authentication continues to work with the JNDI Realm using delegated credentials with recent Oracle JREs. (markt)
  • Fix: 57027: Add additional validation for stored credentials used by Realms when the credential is stored using hex encoding. (markt)
  • Fix: 57038: Add a WebResource.getCodeBase() method, implement for all WebResource implementations and then use it in the web application class loader to set the correct code base for resources loaded from JARs and WARs. (markt)
  • Fix: Correct a couple of NPEs in the JNDI Realm that could be triggered with when not specifying a roleBase and enabling roleSearchAsUser. (markt)
  • Fix: Correctly handle relative values for the docBase attribute of a Context. (markt)
  • Fix: Ensure that log messages generated by the web application class loader correctly identify the associated Context when multiple versions of a Context with the same path are present. (markt)
  • Fix: Remove the unnecessary registration of context.xml as a redeploy resource. The context.xml having an external docBase has already been registered as a redeploy resource at first. (kfujino)
  • Fix: 57089: Ensure that configuration of a session ID generator is not lost when a web application is reloaded. (markt)
  • Fix: 57105: When parsing web.xml do not limit the buffer element of the jsp-property-group element to integer values as the allowed values are kb or none. (markt)
  • Update: Update the minimum required version of the Tomcat Native library (if used) to 1.1.32. (markt)
  • Fix: Update storeconfig with newly introduced elements: SessionIdGenerator, CookieProcessor, JarScanner and JarScanFilter. (remm)
  • Fix: Throw a NullPointerException if a null string is passed to the write(String,int,int) method of the PrintWriter obtained from the ServletResponse. (markt)
  • Fix: Cookie rewrite flag abbreviation should be CO rather than C. (remm)
  • Fix: 57153: When the StandardJarScanner is configured to scan the full class path, ensure that class path entries added directly to the web application class loader are scanned. (markt)
  • Fix: AsyncContext should remain usable until fireOnComplete is called. (remm)
  • Fix: AsyncContext createListener should wrap any instantiation exception using a ServletException. (remm)
  • Fix: 57155: Allow a web application to be configured that does not have a docBase on the file system. This is primarily intended for use when embedding. (markt)
  • Fix: Propagate header ordering from fileupload to the part implementation. (remm)
  • Coyote:
  • Add: 53952: Add support for TLSv1.1 and TLSv1.2 for APR connector. Based upon a patch by Marcel Šebek. This feature requires Tomcat Native library 1.1.32 or later. (schultz/jfclere)
  • Code: Cache the Encoder instances used to convert Strings to byte arrays in the Connectors (e.g. when writing HTTP headers) to improve throughput. (markt)
  • Add: Disable SSLv3 by default for JSSE based HTTPS connectors (BIO, NIO and NIO2). The change also ensures that SSLv2 is disabled for these connectors although SSLv2 should already be disabled by default by the JRE. (markt)
  • Add: Disable SSLv3 by default for the APR/native HTTPS connector. (markt)
  • Fix: Do not increase remaining counter at end of stream in IdentityInputFilter. (kkolinko)
  • Fix: Trigger an error if an invalid attempt is made to use non-blocking IO. (markt)
  • Fix: 57157: Allow calls to AsyncContext.start(Runnable) during non-blocking IO reads and writes. (markt)
  • Fix: Async state MUST_COMPLETE should still be started. (remm)
  • Jasper:
  • Fix: 57099: Ensure that semi-colons are not permitted in JSP import page directives. (markt)
  • Fix: 57113: Fix broken package imports in Expression Language when more than one package was imported and the desired class was not in the last package imported. (markt)
  • Fix: 57132: Fix import conflicts reporting in Expression Language. (kkolinko)
  • Fix: When coercing an object to a given type, only attempt coercion to an array if both the object type and the target type are an array type. (violetagg/markt)
  • Fix: Improve handling of invalid input to javax.el.ImportHandler.resolveClass(). (markt)
  • Fix: Allow the same class to be added to an instance of javax.el.ImportHandler more than once without triggering an error. The second and subsequent calls for the same class will be ignored. (markt)
  • Fix: 57136: Ensure only \${ and \#{ are treated as escapes for ${ and #{ rather than \$ and \# being treated as escapes for $ and # when processing literal expressions in expression language. (markt)
  • Fix: When coercing an object to an array type in Expression Langauage, handle the case where the source object is an array of primitives. (markt/kkolinko)
  • Fix: Do not throw an exception on missing JSP file servlet initialization. (remm)
  • Fix: 57148: When coercing an object to a given type and a PropertyEditor has been registered for the type correctly coerce the empty string to null if the PropertyEditor throws an exception. (kkolinko/markt)
  • Fix: 57153: Correctly scan for TLDs located in directories that represent exanded JARs files that have been added to the web application class loader's class path. (markt)
  • Fix: 57141: Enable EL in JSPs to refer to static fields of imported classes including the standard java.lang.* imports. (markt)
  • Cluster:
  • Fix: Add support for the SessionIdGenerator to cluster manager template. (kfujino)
  • Fix: Avoid possible integer overflows reported by Coverity Scan. (fschumacher)
  • WebSocket:
  • Fix: 57054: Correctly handle the case in the WebSocket client when the HTTP response to the upgrade request can not be read in a single pass; either because the buffer is too small or the server sent the response in multiple packets. (markt)
  • Add: Extend support for the permessage-deflate extension to the client implementation. (markt)
  • Fix: Fix client subprotocol handling. (remm)
  • Fix: Add null checks for arguments in remote endpoint. (remm/kkolinko)
  • Fix: 57091: Work around the behaviour of the Oracle JRE when creating new threads in an applet environment that breaks the WebSocket client implementation. Patch provided by Niklas Hallqvist. (markt)
  • Fix: 57118: Ensure that that an EncodeException is thrown by RemoteEndpoint.Basic.sendObject(Object) rather than an IOException when no suitable Encoder is configured for the given Object. (markt)
  • Web applications:
  • Fix: Correct a couple of broken links in the Javadoc. (markt)
  • Fix: Correct documentation for ServerCookie.ALLOW_NAME_ONLY system property. (kkolinko)
  • Fix: 57049: Clarified that jvmRoute can be set in 's jvmRoute or in a system property. (schultz)
  • Fix: Correct version of Java WebSocket mentioned in documentation (s/1.0/1.1/). (markt/kkolinko)
  • Update: Suppress timestamp comments in Javadoc. (kkolinko)
  • Fix: 57147: Various corrections to the JDBC Store section of the session manager configuration page of the documentation web application. (markt)
  • Tribes:
  • Fix: 45282: Improve shutdown of NIO receiver so that sockets are closed cleanly. (fhanik/markt)
  • jdbc-pool:
  • Fix: 57005: Fix javadoc errors when building with Java 8. Patch provided by Pierre Viret. (markt)
  • Fix: 57079: Use Tomcat version number for jdbc-pool module when building and shipping the module as part of Tomcat. (markt)
  • Fix: Fix broken overview page in javadoc generated via "javadoc" task in jdbc-pool build.xml file. (kkolinko)
  • Other:
  • Fix: 56079: The uninstaller packaged with the Apache Tomcat Windows installer is now digitally signed. (markt)
  • Fix: Fix timestamps in Tomcat build and jdbc-pool to use 24-hour format instead of 12-hour one and use UTC timezone. (markt/kkolinko)
  • Fix: Update the package renamed copy of Apache Commons DBCP 2 to revision 1631450 to pick up additional fixes since the 2.0.1 release including Javadoc corrections to fix errors when compiling with Java 8. (markt)
  • Update: 56596: Update to Tomcat Native Library version 1.1.32 to pick up the Windows binaries that are based on OpenSSL 1.0.1j and APR 1.5.1. (markt)
  • Code: In Tomcat tests: log name of the current test method at start time. (kkolinko)

New in Apache Tomcat 8.0.14 (Oct 1, 2014)

  • Other:
  • Fix: 56079: The Apache Tomcat Windows installer, the Apache Tomcat Windows service and the Apache Tomcat Windows service monitor application are now digitally signed.

New in Apache Tomcat 8.0.13 (Oct 1, 2014)

  • 55917: Allow bytes in the range 0x80 to 0xFF to appear in cookie values if the cookie is a V1 (RFC2109) cookie and the value is correctly quoted. The new RFC6265 based cookie parser must be enabled to correctly handle these cookies.
  • Fix: 55918: Do not permit control characters to appear in quoted V1 (RFC2109) cookie values. The new RFC6265 based cookie parser must be enabled to correctly handle these cookies.
  • Fix: 55921: Correctly handle (ignore the cookie) unescaped JSON in a cookie value. The new RFC6265 based cookie parser must be enabled to correctly handle these cookies.
  • Add: 56401: Log version information when Tomcat starts.
  • Add: 56530: Add a web application class loader implementation that supports the parallel loading of web application classes.
  • Fix: 56900: Fix some potential resource leaks when reading property files reported by Coverity Scan. Based on patches provided by Felix Schumacher.
  • Fix: 56902: Fix a potential resource leak in the Default Servlet reported by Coverity Scan. Based on a patch provided by Felix Schumacher.
  • Fix: 56903: Correct the return value for StandardContext.getResourceOnlyServlets() so that multiple names are separated by commas. Identified by Coverity Scan and fixed based on a patch by Felix Schumacher.
  • Add: Add an additional implementation of a RFC6265 based cookie parser along with new Context options to select and configure it. This parser is currently considered experiemental and is not used by default.
  • Fix: Fixed the multipart elements merge operation performed during web application deployment. Identified by Coverity Scan.
  • Fix: Correct the information written by ExtendedAccessLogValve when a format token x-O(XXX) is used so that multiple values for a header XXX are separated by commas. Identified by Coverity Scan.
  • Fix: Fix a potential resource leak when reading MANIFEST.MF file for extension dependencies reported by Coverity Scan.
  • Fix: Fix some potential resource leaks when reading properties, files and other resources. Reported by Coverity Scan.
  • Fix: Correct the previous fix for 56825 that enabled pre-emptive authentication to work with the SSL authenticator.
  • Code: Refactor to reduce code duplication identified by Simian.
  • Fix: When using parallel deployment and undeployOldVersions feature is enabled on a Host, correctly undeploy context of old version. Make sure that Tomcat does not undeploy older Context if current context is not running.
  • Fix: Fix a rare threading issue when locking resources via WebDAV.
  • Fix: Fix a rare threading issue when using HTTP digest authentication.
  • Fix: When deploying war, add XML file in the config base to the redeploy resources if war does not have META-INF/context.xml or deployXML is false. If XML file is created in the config base, redeploy will occur.
  • Code: Various changes to reduce unnecessary code in Tomcat's copy of Apache Commons BCEL to reduce the time taken for annotation scanning when web applications start.
  • Fix: 56938: Ensure web applications that have mixed case context paths and are deployed as directories are correctly removed on undeploy when running on a case sensitive file system.
  • Add: 57004: Add stuckThreadCount property to StuckThreadDetectionValve's JMX bean. Patch provided by Jiří Pejchal.
  • Fix: 57011: Ensure that the request and response are correctly recycled when processing errors during async processing.
  • Coyote:
  • Fix: 56910: Prevent the invalid value of -1 being used for maxConnections with APR connectors.
  • Fix: Ensure that AJP connectors enable the KeepAliveTimeout.
  • Fix: Reduce duplicated code. All AJP connectors use common method to configuration of processor.
  • Jasper:
  • Fix: 43001: Enable the JspC Ant task to set the JspC option mappedFile.
  • Fix: Ensure that the implementation of javax.servlet.jsp.PageContext.include(String) and javax.servlet.jsp.PageContext.include(String, boolean) will throw IOException when an I/O error occur during the operation.
  • Fix: 56908: Fix some potential resource leaks when reading jar files. Reported by Coverity Scan. Patch provided by Felix Schumacher.
  • Fix: Fix a potential resource leak in JDTCompiler when checking wether a resource is a package. Reported by Coverity Scan.
  • Fix: 56991: Deprecate the use of a request attribute to pass a declaration to Jasper and prevent an infinite loop if this technique is used in conjunction with an include.
  • WebSocket:
  • Fix: 56905: Make destruction on web application stop of thread group used for WebSocket connections more robust
  • Fix: 56907: Ensure that client IO threads are stopped if a secure WebSocket client connection fails.
  • Fix: 56982: Return the actual negotiated extensions rather than an empty list for Session.getNegotiatedExtensions().
  • Update: Update the WebSocket implementation to support the Java WebSocket specification version 1.1.
  • Web applications
  • Add: Add JarScanner to the nested components listed for a Context.
  • Update: Update the Windows authentication documentation after some additional testing to answer the remaining questions.
  • Other:
  • Fix: 56895: Correctly compose JAVA_OPTS in catalina.bat so that escape sequences are preserved. Patch by Lucas Theisen.
  • Update: 56988: Allow to use relative path in base.path setting when building Tomcat.
  • Fix: 56990: Ensure that the ide-eclipse build target downloads all the libraries required by the default Eclipse configuration files.
  • Fix: Update the package renamed copy of Apache Commons DBCP 2 to revision 1626988 to pick up the fixes since the 2.0.1 release including support for custom eviction policies.
  • Fix: Update the package renamed copy of Apache Commons Pool 2 to revision 1627271 to pick up the fixes since the 2.2 release including some memory leak fixes and support for application provided eviction policies.

New in Apache Tomcat 8.0.12 (Sep 22, 2014)

  • Catalina:
  • Add: Make the session id generator extensible by adding a SessionIdGenerator interface, an abstract base class and a standard implementation. (rjung)
  • Fix: 56882: Fix regression in processing of includes and forwards when Context have been reloaded. Tomcat was responding with HTTP Status 503 (Servlet xxx is currently unavailable). (kkolinko)
  • Coyote:
  • Fix: When building a list of JSSE ciphers from an OpenSSL cipher defintiion, ignore unknown criteria rather than throwing a NullPointerException. (markt)
  • Add: Add support for the EECDH alias when using the OpenSSL cipher syntax to define JSSE ciphers. (markt)
  • Jasper:
  • Fix: Correct a logic error in the JasperElResolver. There was no functional impact but the code was less efficient as a result of the error. Based on a patch by martinschaef. (markt)
  • Fix: 56568: Enable any HTTP method to be used to request a JSP page that has the isErrorPage page directive set to true. (markt)
  • WebSocket:
  • Add: Extend support for the permessage-deflate extension to compression of outgoing messages on the server side. (markt)
  • Other:
  • Add: 56323: Include the *.bat files when installing Tomcat via the Windows installer. (markt)

New in Apache Tomcat 8.0.11 (Sep 22, 2014)

  • Catalina:
  • Fix: 56658: Fix regression that a context was inaccessible after reload. (kkolinko)
  • Fix: 56710: Do not map requests to servlets when context is being reloaded. (kkolinko)
  • Fix: 56712: Fix session idle time calculations in PersistenceManager. (kkolinko)
  • Fix: 56717: Fix duplicate registration of MapperListener during repeated starts of embedded Tomcat. (kkolinko)
  • Add: 56724: Write an error message to Tomcat logs if container background thread is aborted unexpectedly. (kkolinko)
  • Fix: When scanning class files (e.g. for annotations) and reading the number of parameters in a MethodParameters structure only read a single byte (rather than two bytes) as per the JVM specification. Patch provided by Francesco Komauli. (markt)
  • Fix: Allow the JNDI Realm to start even if the directory is not available. The directory not being available is not fatal once the Realm is started and it need not be fatal when the Realm starts. Based on a patch by Cédric Couralet. (markt)
  • Fix: 56736: Avoid an incorrect IllegalStateException if the async timeout fires after a non-container thread has called AsyncContext.dispatch() but before a container thread starts processing the dispatch. (markt)
  • Fix: 56739: If an application handles an error on an application thread during asynchronous processing by calling HttpServletResponse.sendError(), then ensure that the application is given an opportunity to report that error via an appropriate application defined error page if one is configured. (markt)
  • Fix: 56784: Fix a couple of rare but theoretically possible atomicity bugs. (markt)
  • Fix: 56785: Avoid NullPointerException if directory exists on the class path that is not readable by the Tomcat user. (markt)
  • Fix: 56796: Remove unnecessary sleep when stopping a web application. (markt)
  • Fix: 56801: Improve performance of org.apache.tomcat.util.file.Matcher which is to filter JARs for scanning during web application start. Based on a patch by Sheldon Shao. (markt)
  • Fix: 56815: When the gzip option is enabled for the DefaultServlet ensure that a suitable Vary header is returned for resources that might be returned directly in compressed form. (markt)
  • Fix: Do not mark threads from the container thread pool as container threads when being used to process AsyncContext.start(Runnable) so processing is correctly transferred back to a genuine container thread when necessary. (markt)
  • Add: Add simple caching for calls to StandardRoot.getResources() in the new (for 8.0.x) resources implementation. (markt)
  • Fix: 56825: Enable pre-emptive authentication to work with the SSL authenticator. Based on a patch by jlmonteiro. (markt)
  • Fix: 56840: Avoid NPE when the rewrite valve is mapped to a context. (remm)
  • Fix: Correctly handle multiple accept-language headers rather than just using the first header to determine the user's preferred Locale. (markt)
  • Fix: 56848: Improve handling of accept-language headers. (markt)
  • Fix: 56857: Fix thread safety issue when calling ServletContext methods while running under a security manager. (markt)
  • Coyote:
  • Fix: Fix NIO2 sendfile state tracking and error handling to fix various corruption issues. (remm)
  • Fix: Missing timeout for NIO2 sendfile writes. (remm)
  • Fix: Allow inline processing for NIO2 sendfile and optimize keepalive behavior. (remm)
  • Fix: Fix excessive NIO2 sendfile direct memory use in some cases, sendfile will now instead use the regular socket write buffer as configured. (remm)
  • Fix: 56661: Fix getLocalAddr() for AJP connectors. The complete fix is only available with a recent AJP forwarder like the forthcoming mod_jk 1.2.41. (rjung)
  • Fix: Use default ciphers defined as HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5 so that no weak ciphers are enabled by default. (remm)
  • Fix: 56780: Enable Tomcat to start when using SSL with an IBM JRE in strict SP800-131a mode. (markt)
  • Fix: 56810: Remove use of Java 8 specific API calls in unit tests for OpenSSL to JSSE cipher conversion. (markt)
  • Jasper:
  • Fix: 56709: Fix system property name in a log message. Submitted by Robert Kish. (remm)
  • Fix: 56797: When matching a method in an EL expression, do not treat bridge methods as duplicates of the method they bridge to. In this case always call the target of the bridge method. (markt)
  • WebSocket:
  • Fix: 56746: Allow secure WebSocket client threads to use the current context class loader rather than explicitly setting it to the class loader that loaded the WebSocket implementation. This allows WebSocket client connections from within web applications to access, amongst other things, the JNDI resources associated with the web application. (markt)
  • Web applications:
  • Fix: Correct the label in the list of sessions by idle time for the bin that represents the idle time immediately below the maximum permitted idle time when using the expire command of the Manager application. (markt)
  • jdbc-pool:
  • Fix: 53088: More identifiable thread name. (fhanik)
  • Fix: 53200: Selective logging for slow versus failed queries. (fhanik)
  • Fix: 53853: More flexible classloading. (fhanik)
  • Fix: 54225: Disallow empty init SQL. (fhanik)
  • Fix: 54227: Evaluate max age upon borrow. (fhanik)
  • Fix: 54235: Disallow nested pools exploitating using data source. (fhanik)
  • Fix: 54395: Fix JDBC interceptor parsing bug. (fhanik)
  • Fix: 54537: Performance improvement in StatementFinalizer. (fhanik)
  • Fix: 54978: Make sure proper connection validation always happens, regardless of config. (fhanik)
  • Fix: 56318: Ability to trace statement creation in StatementFinalizer. (fhanik)
  • Fix: 56789: getPool() returns the actual pool, always. (fhanik)
  • Other:
  • Add: 56788: Display the full version in the list of installed applications when installed via the Windows installer package. Patch provided by Alexandre Garnier. (markt)
  • Add: 56829: Add the ability for users to define their own values for _RUNJAVA and _RUNJDB environment variables. Be more strict with executable filename on Windows (s/java/java.exe/). Based on a patch by Neeme Praks. (markt/kkolinko)

New in Apache Tomcat 8.0.10 (Sep 22, 2014)

  • Catalina:
  • Fix: 44312: Log an error if there is a conflict between Host and Alias names. Improve host management methods in Mapper to avoid occasionally removing a wrong host. Check that host management operations are performed on the host and not on an alias. (kkolinko)
  • Code: 56611: Refactor code to remove inefficient calls to Method.isAnnotationPresent(). Based on a patch by Jian Mou. (markt/kkolinko)
  • Fix: Fix regression in StandardContext.removeApplicationListener(), introduced by the fix for bug 56588. (kkolinko)
  • Fix: 56653: Fix concurrency issue with lists of contexts in Mapper when stopping Contexts. (kkolinko)
  • Fix: 56657: When using parallel deployment, if the same session id matches different versions of a web application, prefer the latest version. Ensure that remapping selects the version that we expect. (kkolinko)
  • Fix: Assert that mapping result object is empty before performing mapping work in Mapper. (kkolinko)
  • Code: Remove context and wrapper fields in Request class and deprecate their setters. (kkolinko)
  • Fix: 56658: Avoid delay between registrations of mappings for context and for its servlets. (kkolinko)
  • Fix: 56665: Correct the generation of the effective web.xml when elements contain an empty string as value. (violetagg)
  • Fix: Fix storeconfig exception routing issues, so that a major problem should avoid configuration overwrite. (remm)
  • Fix: Add configuration fields for header names in SSLValve. (remm)
  • Fix: 56666: When clearing the SSO cookie use the same values for domain, path, httpOnly and secure as were used to set the SSO cookie. (markt)
  • Fix: 56677: Ensure that HttpServletRequest.getServletContext() returns the correct value during a cross-context dispatch. (markt)
  • Fix: 56684: Ensure that Tomcat does not shut down if the socket waiting for the shutdown command experiences a SocketTimeoutException. (markt)
  • Fix: 56693: Fix various issues in the static resource cache implementation where the cache retained a stale entry after the successful completion of an operation that always invalidates the cache entry such as a delete operation. (markt)
  • Fix: When the current PathInfo is modified as a result of dispatching a request, ensure that a call to HttpServletRequest.getPathTranslated() returns a value that is based on the modified PathInfo. (markt)
  • Fix: 56698: When persisting idle sessions, only persist newly idle sessions. Patch provided by Felix Schumacher. (markt)
  • Coyote:
  • Fix: 56663: Fix edge cases demonstrated by ByteCounter relating to data available, remaining and extra write events, mostly occurring with non blocking Servlet 3.1. (remm)
  • Fix: Avoid possible NPE stopping endpoints that are not started (stop shouldn't do anything in that case). (remm)
  • Add: 56704: Add support for OpenSSL syntax for ciphers when using JSSE SSL connectors. Submitted by Emmanuel Hugonnet. (remm)
  • Update: Allow to configure maxSwallowSize attribute of an HTTP connector via JMX. (kkolinko)
  • Jasper:
  • Fix: 56543: Update to the Eclipse JDT Compiler 4.4. (violetagg)
  • Fix: 56652: Add support for method parameters that use arrays and varargs to ELProcessor.defineFunction().(markt)
  • WebSocket:
  • Add: Add support for the permessage-deflate extension. This is currently limited to decompressing incoming messages on the server side. It is expected that support will be extended to outgoing messages and to the client side shortly. (markt)
  • Web applications:
  • Fix: Attempt to obfuscate session cookie values associated with other web applications when viewing HTTP request headers with the Cookies example from the examples web application. This reduces the opportunity to use this example for malicious purposes should the advice to remove the examples web application from security sensitive systems be ignored. (markt)
  • Fix: 56694: Remove references to Manager attribute checkInterval from documentation and Javadoc since it no longer exists. Based on a patch by Felix Schumacher. Also remove other references to checkInterval that are no longer valid. (markt)
  • Other:
  • Update: Update the API stability section of the release notes now that Tomcat 8 has had its first stable release. (markt)
  • Update: Improve build.xml so that when Eclipse JDT Compiler is updated, it will delete the old JAR from build/lib directory. (kkolinko)
  • Code: Simplify implementation of "setproxy" target in build.xml. (kkolinko)
  • Update: Update optional Checkstyle library to 5.7. (kkolinko)
  • Update: 56596: Update to Tomcat Native Library version 1.1.31 to pick up the Windows binaries that are based on OpenSSL 1.0.1h. (markt)
  • Fix: 56685: Add quotes necessary for daemon.sh to work correctly on Solaris. Based on a suggesiton by lfuka. (markt)
  • Update: Update package renamed Apache Commons Pool2 to r1609323 to pick various bug fixes. (markt)
  • Update: Update package renamed Apache Commons DBCP2 to r1609329 to pick up a minor bug fix. (markt)
  • Update: Update package renamed Apache Commons FileUpload to r1596086 to pick various bug fixes. (markt)

New in Apache Tomcat 8.0.9 (Jun 27, 2014)

  • Catalina:
  • Fix: 55282: Ensure that one and the same application listener is added only once when starting the web application. (violetagg)
  • Fix: 55975: Apply consistent escaping for double quote and backslash characters when escaping cookie values. (markt)
  • Code: 56387: Improve the code that handles an attempt to load a class after a web application has been stopped. Use common code to handle this case regardless of the access path and don't throw an exception purely to log a stack trace. (markt)
  • Code: 56399: Improve implementation of CoyoteAdapter.checkRecycled() to do not use an exception for flow control. (kkolinko)
  • Add: 56461: New failCtxIfServletStartFails attribute on Context and Host configuration to force the context startup to fail if a load-on-startup servlet fails its startup. (slaurent)
  • Add: 56526: Improved the StuckThreadDetectionValve to optionally interrupt stuck threads to attempt to unblock them. (slaurent)
  • Fix: 56545: Pre-load two additional classes, the loading of which may otherwise be triggered by a web application which in turn would trigger an exception when running under a security manager. (markt)
  • Update: 56546: Reduce logging level for stack traces of stuck web application threads printed by WebappClassLoader.clearReferencesThreads() from error to info. (kkolinko)
  • Code: Refactor and simplify common code in object factories in org.apache.catalina.naming package, found thanks to Simian (Similarity Analyser) tool. Improve handling of Throwable. (markt/kkolinko)
  • Fix: Relax cookie naming restrictions. Cookie attribute names used in the Set-Cookie header may be used unambiguously as cookie names. The restriction that prevented such usage has been removed. (jboynes/markt)
  • Fix: Further relax cookie naming restrictions. Version 0 (a.k.a Netscape format) cookies may now use names that start with the $ character. (jboynes/markt)
  • Fix: Restrict cookie naming so that the = character is no longer permitted in a version 0 (a.k.a. Netscape format) cookie name. While Tomcat allowed this, browsers always truncated the name at the = character leading to a mis-match between the cookie the server set and the cookie returned by the browser. (jboynes/markt)
  • Add: Add a simple ServiceLoader based discovery mechanism to the JULI LogFactory to make it easier to use JULI and Tomcat components that depend on JULI (such as Jasper) independently from Tomcat. Patch provided by Greg Wilkins. (markt)
  • Fix: 56578: Correct regression in the fix for 56339 that prevented sessions from expiring when using clustering. (markt)
  • Fix: 56588: Remove code previously added to enforce the requirements of section 4.4 of the Servlet 3.1 specification. The code is no longer required now that Jasper initialization has been refactored and TLD defined listeners are added via a different code path that already enforces the specification requirements. (markt)
  • Fix: 56600: In WebdavServlet: Do not waste time generating response for broken PROPFIND request. (kkolinko)
  • Fix: Provide a better error message when asynchronous operations are not supported by a filter or servlet. Patch provided by Romain Manni-Bucau. (violetagg)
  • Fix: 56606: User entries in tomcat-users.xml file are recommended to use "username" attribute rather than legacy "name" attribute. Fix inconsistencies in Windows installer, examples. Update digester rules and documentation for MemoryRealm. (markt/kkolinko)
  • Code: 56611: Refactor code to remove inefficient calls to Method.isAnnotationPresent(). Based on a patch by Jian Mou. (markt)
  • Coyote:
  • Fix: 56518: When using NIO, do not attempt to write to the socket if the thread is marked interrupted as this will lead to a connection limit leak. This fix was based on analysis of the issue by hanyong. (markt)
  • Fix: 56521: Re-use the asynchronous write buffer between writes to reduce allocation and GC overhead. Based on a patch by leonzhx. Also make the buffer size configurable and remove copying of data within buffer when the buffer is only partially written on a subsequent write. (markt)
  • Fix: Ensure that a request without a body is correctly handled during Comet processing. This fixes the Comet chat example. (markt)
  • Fix: Fix input concurrency issue in NIO2 upgrade. (remm)
  • Fix: Correct a copy/paste error and return a 500 response rather than a 400 response when an internal server error occurs on early stages of request processing. (markt)
  • Code: 56582: Use switch(actionCode) in processors instead of a chain of "elseif"s. (kkolinko)
  • Fix: 56582#c1: Implement DISPATCH_EXECUTE action for AJP connectors. (kkolinko)
  • Fix: If request contains an unrecognized Expect header, respond with error 417 (Expectation Failed), according to RFC2616 chapter 14.20. (markt)
  • Fix: When an error occurs after the response has been committed close the connection immediately rather than attempting to finish the response to make it easier for the client to differentiate between a complete response and one that failed part way though. (markt)
  • Code: Remove the beta tag from the NIO2 connectors. (remm)
  • Fix: 56620: Avoid bogus access log entries when pausing the NIO HTTP connector and ensure that access log entries generated by error conditions use the correct request start time. (markt)
  • Fix: Improve configuration of cache sizes in the endpoint. (markt)
  • Add: Add a new limit, defaulting to 2MB, for the amount of data Tomcat will swallow for an aborted upload. (markt)
  • Jasper:
  • Fix: 56334#c15: Fix a regression in EL parsing when quoted string follows a whitespace. (kkolinko/markt)
  • Update: 56543: Update to the Eclipse JDT Compiler 4.4RC4 to pick up some fixes for Java 8 support. (markt/kkolinko)
  • Fix: 56561: Avoid NoSuchElementException while handling attributes with empty string value. (violetagg)
  • Code: Do not configure a JspFactory in the JasperInitializer if one has already been set as might be the case in some embedding scenarios. (markt)
  • Add: Add a simple implementation of InstanceManager and have Jasper use it if no other InstanceManager is provided. This makes it easier to use Jasper independently from Tomcat. Patch provided by Greg Wilkins. (markt)
  • Fix: 56568: Allow any HTTP method when a JSP is being used as an error page. (markt)
  • Update: 56581: If an error on a JSP page occurs when response has already been committed, do not clear the buffer of JspWriter, but flush it. It will make more clear where the error occurred. (kkolinko)
  • Fix: 56612: Correctly parse two consecutive escaped single quotes when used in UEL expression in a JSP. (markt)
  • Update: Move code that parses EL expressions within JSP template text from Parser to JspReader class for better performance. (kkolinko)
  • Fix: 56636: Correctly identify the required method when specified via ELProcessor.defineFunction(String,String,String,String) when using Expression Language. (markt)
  • Fix: 56638: When using ELProcessor.defineFunction(String,String,String,String) and no function name is specified, use the method name as the function name as required by the specification. (markt)
  • WebSocket:
  • Code: 56446: Clearer handling of exceptions when calling a method on a POJO based WebSocket endpoint. Based on a suggestion by Eugene Chung. (markt)
  • Fix: When a WebSocket client attempts to write to a closed connection, handle the resulting IllegalStateException in a manner consistent with the handling of an IOException. (markt)
  • Fix: Add more varied endpoints for echo testing. (remm)
  • Fix: 56577: Improve the executor configuration used for the callbacks associated with asynchronous writes. (markt)
  • Web applications:
  • Fix: Set the path for cookies created by the examples web application so they only returned to the examples application. This reduces the opportunity for using such cookies for malicious purposes should the advice to remove the examples web application from security sensitive systems be ignored. (markt/kkolinko)
  • Fix: Attempt to obfuscate session cookie values associated with other web applications when viewing HTTP request headers with the Request Header example from the examples web application. This reduces the opportunity to use this example for malicious purposes should the advice to remove the examples web application from security sensitive systems be ignored. (markt)
  • Add: Add options for all of the WebSocket echo endpoints to the WebSocket echo example in the examples web application. (markt)
  • Fix: Ensure that the asynchronous WebSocket echo endpoint in the examples web application always waits for the previous message to complete before it sends the next. (markt)
  • Other:
  • Update: Update package renamed Apache Commons DBCP2 to r1596858. (markt)

New in Apache Tomcat 7.0.54 (May 24, 2014)

  • Catalina:
  • Fix custom UTF-8 decoder so that a byte of value 0xC1 is always rejected immediately as it is never valid in a UTF-8 byte sequence. Update UTF-8 decoder tests to account for UTF-8 decoding improvements in Java 8. The custom UTF-8 decoder is still required due to bugs in the UTF-8 decoder provided by Java. Java 8's decoder is better than Java 7's but it is still buggy. (markt)
  • 56027: Add more options for managing FIPS mode in the AprLifecycleListener. (schultz/kkolinko)
  • 56321: When a WAR is modified, undeploy the web application before deleting any expanded directory as the undeploy process may refer to classes that need to be loaded from the expanded directory. If the expanded directory is deleted first, any attempt to load a new class during undeploy will fail. (markt)
  • 56339: Avoid an infinite loop if an application calls session.invalidate() from the session destroyed event for that session. (markt)
  • 56365: Simplify file name pattern matching code in StandardJarScanner. Ignore leading and trailing whitespace and empty strings when configuring patterns. Improve documentation. (kkolinko)
  • 56369: Ensure that removing an MBean notification listener reverts all the operations performed when adding an MBean notification listener. (markt)
  • 56382: Information about finished deployment and its execution time is added to the log files. Patch is provided by Danila Galimov. (violetagg)
  • 56383: Properties for disabling server information and error report are added to the org.apache.catalina.valves.ErrorReportValve. Based on the patch provided by Nick Bunn. (violetagg/kkolinko)
  • Only create XML parsing objects if required and fix associated potential memory leak in the default Servlet. (markt)
  • Modify generic exception handling so that StackOverflowError is not treated as a fatal error and can handled and/or logged as required. (markt)
  • 56409: Avoid StackOverflowError on non-Windows systems if a file named \ is encountered when scanning for TLDs. (markt)
  • 56430: Extend checks for suspicious URL patterns to include patterns of the form *.a.b which are not valid patterns for extension mappings. (markt)
  • Extend XML factory, parser etc. memory leak protection to cover some additional locations where, theoretically, a memory leak could occur. (markt)
  • Ensure that a TLD parser obtained from the cache has the correct value of blockExternal. (markt)
  • 56441: Raise the visibility of exceptions thrown when a problem is encountered calling a getter or setter on a component attribute. The logging level is raised from debug to warning. (markt)
  • 56451: Make resources accessed via a context alias accessible via JNDI in the same way standard resources are available. (markt)
  • 56463: Property for disabling server information is added to the DefaultServlet. Server information is presented in the response sent to the client when directory listings is enabled. (violetagg)
  • Add the org.apache.naming package to the packages requiring code to have the defineClassInPackage permission when running under a security manager. (markt)
  • Add the org.apache.naming.resources package to the packages requiring code to have the accessClassInPackage permission when running under a security manager. (markt)
  • Make the naming context tokens for containers more robust. Require RuntimePermission when introducing a new token. (markt/kkolinko)
  • 56472: Allow NamingContextListener to clean up on stop if its start failed. (kkolinko)
  • 56492: Avoid eclipse debugger pausing on uncaught exceptions when tomcat renews its threads. (slaurent)
  • Minor fixes to ThreadLocalLeakPreventionListener. Do not trigger threads renewal for failed contexts. Do not ignore threadRenewalDelay setting. Improve documentation. (kkolinko)
  • Correct regression introduced in r797162 that broke authentication of users when using the JAASMemoryLoginModule. (markt)
  • 56501: HttpServletRequest.getContextPath() should return the undecoded context path used by the user agent. (markt)
  • 56523: When using SPNEGO authentication, log the exceptions associated with failed user logins at debug level rather than error level. (markt)
  • 56536: Ensure that HttpSessionBindingListener.valueUnbound() uses the correct class loader when the SingleSignOn valve is used. (markt)
  • Coyote:
  • 56399: Assert that both Coyote and Catalina request objects have been properly recycled. (kkolinko)
  • 56416: Correct documentation for default value of socket linger for the AJP and HTTP connectors. (markt)
  • Jasper:
  • 56334: Fix a regression in the handling of back-slash escaping introduced by the fix for 55735. (markt/kkolinko)
  • 56425: Improve method matching for EL expressions. When looking for matching methods, an exact match between parameter types is preferred followed by an assignable match followed by a coercible match. (markt)
  • Correct the handling of back-slash escaping in the EL parser and no longer require that \$ or \# must be followed by { in order for the back-slash escaping to take effect. (markt)
  • 56529: Avoid NoSuchElementException while handling attributes with empty string value in custom tags. Patch provided by Hariprasad Manchi. (violetagg)
  • Cluster:
  • Remove cluster and replicationValve from cluster manager template. These instance are not necessary to template. (kfujino)
  • Add support for cross context session replication to org.apache.catalina.ha.session.BackupManager. (kfujino)
  • Remove the unnecessary cross context check. It does not matter whether the context that is referenced by other context is set to crossContext=true. The context that refers to the different context must be set to crossContext=true. (kfujino)
  • Move to org.apache.catalina.ha.session.ClusterManagerBase common logics of org.apache.catalina.ha.session.BackupManager and org.apache.catalina.ha.session.DeltaManager. (kfujino)
  • Simplify the code of o.a.c.ha.tcp.SimpleTcpCluster. In order to add or remove cluster valve to Container, use pipeline instead of IntrospectionUtils. (kfujino)
  • There is no need to set cluster instance when SimpleTcpCluster.unregisterClusterValve is called. Set null than cluster instance for cleanup. (kfujino)
  • Backport refactoring of AbstractReplicatedMap to implement Map rather than extend ConcurrentHashMap to enable Tomcat 7 to be built with Java 8. (markt)
  • WebSocket:
  • 56343: Avoid a NPE if Tomcat's Java WebSocket 1.0 implementation is used with the Java WebSocket 1.0 API JAR from the reference implementation. (markt)
  • Increase the default maximum size of the executor used by the WebSocket implementation for call backs associated with asynchronous writes from 10 to 200. (markt)
  • Add a warning if the thread group created for WebSocket asynchronous write call backs can not be destroyed when the web application is stopped. (markt)
  • Ensure that threads created to support WebSocket clients are stopped when no longer required. This will happen automatically for WebSocket client connections initiated by web applications but stand alone clients must call WsWebSocketContainer.destroy(). (markt)
  • 56449: When creating a new session, add the message handlers to the session before calling Endpoint.onOpen() so the message handlers are in place should the onOpen() method trigger the sending of any messages. (markt)
  • 56458: Report WebSocket sessions that are created over secure connections as secure rather than as not secure. (markt)
  • Stop threads used for secure WebSocket client connections when they are no longer required and give them better names for easier debugging while they are running. (markt)
  • Web applications:
  • Add Support for copyXML attribute of Host to Host Manager. (kfujino)
  • Ensure that "name" request parameter is used as a application base of host if "webapps" request parameter is not set when adding host in HostManager Application. (kfujino)
  • Correct documentation on Windows service options, aligning it with Apache Commons Daemon documentation. (kkolinko)
  • 55215: Improve log4j configuration example. Clarify access logging documentation. Based on patches provided by Brian Burch. (kkolinko)
  • 55383: Backport improved HTML markup for tables and code fragments from Tomcat 8 documentation. (kkolinko)
  • 56418: Ensure that the Manager web application does not report success for a web application deployment that fails. (slaurent)
  • Fix target and rel attributes on links in documentation. They were lost during XSLT transformation. (kkolinko)
  • Improve valves documentation. Split valves into groups. (kkolinko)
  • Other:
  • Align DisplayName of Tomcat installed by service.bat with one installed by the *.exe installer. Print a warning in case if neither server nor client jvm is found by service.bat. (kkolinko)
  • 56363: Update to version 1.1.30 of Tomcat Native library. (schultz)
  • Update package renamed Apache Commons BCEL to r1593495 to pick up some additional changes for Java 7 support and some code clean up. (markt)
  • In tests: allow to configure directory where JUnit reports and access log are written to. (kkolinko)

New in Apache Tomcat 8.0.8 Beta (May 22, 2014)

  • Catalina:
  • 56536: Ensure that HttpSessionBindingListener.valueUnbound() uses the correct class loader when the SingleSignOn valve is used. (markt)
  • Jasper:
  • 56529: Avoid NoSuchElementException while handling attributes with empty string value in custom tags. Patch provided by Hariprasad Manchi. (violetagg)

New in Apache Tomcat 7.0.53 (Apr 2, 2014)

  • Catalina:
  • Make it easier for applications embedding and/or extending Tomcat to modify the javaseClassLoader attribute of the WebappClassLoader. (markt)
  • Improve the robustness of web application undeployment based on some code analysis triggered by the report for 54315. (markt)
  • 56219: Improve merging process for web.xml files to take account of the elements and attributes supported by the Servlet version of the merged file. (markt)
  • 56190: The response should be closed (i.e. no further output is permitted) when a call to AsyncContext.complete() takes effect. (markt)
  • 56236: Enable Tomcat to work with alternative Servlet and JSP API JARs that package the XML schemas in such as way as to require a dependency on the JSP API before enabling validation for web.xml. Tomcat has no such dependency. (markt)
  • 56246: Fix NullPointerException in MemoryRealm when authenticating an unknown user. (markt)
  • 56248: Allow the deployer to update an existing WAR file without undeploying the existing application if the update flag is set. This allows any existing custom context.xml for the application to be retained. To update an application and remove any existing context.xml simply undeploy the old version of the application before deploying the new version. (markt)
  • Redefine the globalXsltFile initialisation parameter of the DefaultServlet as relative to CATALINA_BASE/conf or CATALINA_HOME/conf. Prevent user supplied XSLTs used by the DefaultServlet from defining external entities. (markt)
  • Add a work around for validating XML documents (often TLDs) that use just the file name to refer to refer to the JavaEE schema on which they are based. (markt)
  • 56293: Cache resources loaded by the class loader from /META-INF/services/ for better performance for repeated look ups. (markt)
  • Coyote:
  • 53119: Make sure the NIO AJP output buffer is cleared on any error to prevent any possible overflow if it is written to again before the connection is closed. This extends the original fix for the APR/native output buffer to the NIO connector. (kkolinko)
  • 56172: Avoid possible request corruption when using the AJP NIO connector and a request is sent using more than one AJP message. Patch provided by Amund Elstad. (markt)
  • 56213: Reduce garbage collection when the NIO connector is under heavy load. (markt)
  • Improve processing of chuck size from chunked headers. Avoid overflow and use a bit shift instead of a multiplication as it is marginally faster. (markt/kkolinko)
  • Fix possible overflow when parsing long values from a byte array. (markt)
  • Jasper:
  • 54475: Add Java 8 support to SMAP generation for JSPs. Patch by Robbie Gibson. (markt)
  • 55483: Improve handing of overloaded methods and constructors in expression language implementation. (markt)
  • 56208: Restore the validateXml option to Jasper that was previously renamed validateTld. Both options are now supported. validateXml controls the validation of web.xml files when Jasper parses them and validateTld controls the validation of *.tld files when Jasper parses them. (markt)
  • 56223: Throw an IllegalStateException if a call is made to ServletContext.setInitParameter() after the ServletContext has been initialized. (markt)
  • 56265: Do not escape values of dynamic tag attributes containing EL expressions. (kkolinko)
  • Make the default compiler source and target versions for JSPs Java 6 since Tomcat 7 requires Java 6 as a minimum. (markt)
  • 56283: Update to the Eclipse JDT Compiler P20140317-1600 which adds support for Java 8 syntax to JSPs. Add support for value "1.8" for the compilerSourceVM and compilerTargetVM options. (markt)
  • WebSocket:
  • Avoid a possible deadlock when one thread is shutting down a connection while another thread is trying to write to it. (markt)
  • Call onError if an exception is thrown calling onClose when closing a session. (remm)
  • Web applications:
  • In the documentation: add support for several documentation tags from Tomcat 8. Such as . (kkolinko)
  • 56093: Add the SSL Valve to the documentation web application. (markt)
  • 56217: Improve readability by using left alignment for the table cell containing the request information on the Manager application status page. (markt)
  • Fixed java.lang.NegativeArraySizeException when using "Expire sessions" command in the manager web application on a context where the session timeout is disabled. (kfujino)
  • Add support for LAST_ACCESS_AT_START system property to Manager web application. (kfujino)
  • Add definition of org.apache.catalina.ant.FindLeaksTask. (kfujino)
  • 56273: If the Manager web application does not perform an operation because the web application is already being serviced, report an error rather than reporting success. (markt)
  • 56304: Add a note to the documentation about not using WebSocket with BIO HTTP in production. (markt)
  • Other:
  • 56143: Improve service.bat so that it can be launched from a non-UAC console. This includes using a single call to tomcat7.exe to install the Windows service rather than three calls, and using command line arguments instead of environment variables to pass the settings. (markt/kkolinko)
  • Fix regression in 7.0.52: when using service.bat install to install the service the values for --StdOutput, --StdError options were passed as blank instead of "auto". (kkolinko)
  • Align options between service.bat and exe Windows installer. For service.bat the changes are in --Classpath, --DisplayName, --StartPath, --StopPath. For exe installer the changes are in --JvmMs, --JvmMx options, which are now 128 Mb and 256 Mb respectively instead of being empty. Explicitly specify --LogPath path when uninstalling Windows service, avoiding default value for that option. (kkolinko)
  • Simplify Windows *.bat files: remove %OS% checks, as java 6 does not run on ancient non-NT operating systems. (kkolinko)
  • 56137: Explicitly use the BIO connector in the SSL example in server.xml so it doesn't break if APR is enabled. (markt)
  • 56139: Avoid a web application class loader leak in some unit tests when running on Windows. (markt)
  • Correct build script to avoid building JARs with empty packages. (markt)
  • Allow to limit JUnit test run to a number of selected test case methods. (kkolinko)
  • 56189: Remove used file cpappend.bat from the distribution. (markt)

New in Apache Tomcat 8.0.5 Beta (Mar 28, 2014)

  • Catalina:
  • Rework the fix for 56190 as the previous fix did not recycle the request in all cases leading to mis-routing of requests. (markt)
  • Allow web applications to package tomcat-jdbc.jar and their JDBC driver of choice in the web application. (markt)
  • 56293: Cache resources loaded by the class loader from /META-INF/services/ for better performance for repeated look ups. (markt)
  • Coyote:
  • Fix possibly incomplete final flush with NIO2 when using non blocking mode. (remm)
  • Cleanup NIO2 endpoint shutdown. (remm)
  • Fix rare race condition notifying onWritePossible in the NIO2 HTTP/1.1 connector. (remm)
  • Jasper:
  • 54475: Add Java 8 support to SMAP generation for JSPs. Patch by Robbie Gibson. (markt)
  • Web applications:
  • 56273: If the Manager web application does not perform an operation because the web application is already being serviced, report an error rather than reporting success. (markt)
  • 56304: Add a note to the documentation about not using WebSocket with BIO HTTP in production. (markt)

New in Apache Tomcat 7.0.52 (Feb 20, 2014)

  • Catalina:
  • Generate a valid root element for the effective web.xml for a web application for all supported versions of web.xml. (markt)
  • Coyote:
  • Pull up SocketWrapper to AbstractProcessor. (markt)
  • In some circumstances asynchronous requests could time out too soon. (markt)

New in Apache Tomcat 8.0.3 Beta (Feb 13, 2014)

  • Fix CVE-2014-0050, a DoS vulnerability related to multi-part processing.
  • Fix WebDAV support broken by the resources refactoring.
  • Enable non-blocking reads to take place on non-container threads.

New in Apache Tomcat 8.0.1 Beta (Feb 3, 2014)

  • Catalina:
  • Change default value of xmlBlockExternal attribute of Context. It is true now.
  • Coyote:
  • Correct regression in the fix for 55996 that meant that asynchronous requests might timeout too early.
  • Jasper:
  • Change default value of the blockExternal attribute of JspC task. The default value is true. Add support for -no-blockExternal switch when JspC is run as a standalone application.
  • WebSocket:
  • Do not return an empty string for the Sec-WebSocket-Protocol HTTP header when no sub-protocol has been requested or no sub-protocol could be agreed as RFC6455 requires that no Sec-WebSocket-Protocol header is returned in this case.

New in Apache Tomcat 7.0.50 (Jan 13, 2014)

  • Catalina:
  • Handle the case where a context.xml file is added to a web application deployed from a directory. Previously the file was ignored until Tomcat was restarted. Now (assuming automatic deployment is enabled) it will trigger a redeploy of the web application. (markt)
  • Fix string comparison in HostConfig.setContextClass(). (kkolinko)
  • code Streamline handling of WebSocket messages whe no handler is configured for the message currently being received. (markt)
  • Handle the case where a WebSocket annotation configures a message size limit larger than the default permitted by Tomcat. (markt)
  • This is a partial fix that bypasses the relatively expensive check for a WebSocket upgrade request if no WebSocket endpoints have been registered. (markt)
  • Prevent a NPE when web.xml references a taglib file that does not exist. Provide better error message. (violetagg)
  • Coyote:
  • When using the BIO connector with an internal executor, do not display a warning that the executor has not shutdown as the default configuration for BIO connectors is not to wait. This is because threads in keep-alive connections cannot be interrupted and therefore the warning was nearly always displayed. (markt)
  • Jasper:
  • JspC uses servlet context initialization parameters to pass configuration so ensure that the servlet context used supports initialization parameters. (markt)
  • Cluster:
  • In AbstractReplicatedMap#finalize, remove rpcChannel from channel Listener of group channel before sending MapMessage.MSG_STOP message. This prevents that the node that sent the MapMessage.MSG_STOP by normal shutdown is added to member map again by ping at heartbeat thread in the node that received the MapMessage.MSG_STOP. (kfujino)
  • Add time stamp to GET_ALL_SESSIONS message. (kfujino)
  • Web applications:
  • Fix the sample configuration of StaticMembershipInterceptor in order to prevent warning log. uniqueId must be 16 bytes. (kfujino)
  • Extras:
  • Update dependencies that are used to build tomcat-juli extras component. Apache Avalon Framework is updated to version 4.1.5, Apache Log4J to version 1.2.17. (rjung)

New in Apache Tomcat 8.0.0 RC 10 (Dec 28, 2013)

  • Catalina:
  • Implement JSR 340 - Servlet 3.1. The JSR 340 implementation includes contributions from Nick Williams and Jeremy Boynes. (markt)
  • Implement JSR 245 MR2 - JSP 2.3. (markt)
  • Implement JSR 341 - Unified Expression Language 3.0. (markt)
  • Implement JSR 356 - WebSockets. The JSR 356 implementation includes contributions from Nick Williams, Rossen Stoyanchev and Niki Dokovski. (markt)
  • 46727: Refactor default servlet to make it easier to sub-class to implement finer grained control of the file encoding. Based on a patch by Fred Toth. (markt)
  • 45995: Align Tomcat with Apache httpd and perform MIME type mapping based on file extension in a case insensitive manner. (markt)
  • Remove duplicate code that converted a Host's appBase attribute to a canonical file. (markt)
  • 51408: Replace calls to Charset.defaultCharset() with an explicit reference to the ISO-8859-1 Charset. (markt)
  • Refactor initialization code to use a single, consistent approach to determining the Catalina home (binary) and base (instance) directories. The search order for home is catalina.home system property, parent of current directory if boootstrap.jar is present and finally current working directory. The search order for Catalina base is catalina.base system property falling back to the value for Catalina home. (markt)
  • 52092: JULI now uses the OneLineFormatter and AsyncFileHandler by default. (markt)
  • 52558: Refactor CometConnectionManagerValve so that it does not prevent the session from being serialized in when running in a cluster. (markt)
  • 52767: Remove reference to MySQL specific autoReconnect property in JDBCAccessLogValve. (markt)
  • Make the Mapper type-safe. Hosts, Contexts and Wrappers are no longer handled as plain objects, instead they keep their type. Code using the Mapper doesn't need to cast objects returned by the mapper. (rjung)
  • Move Manager, Loader and Resources from Container to Context since Context is the only place they are used. The documentation already states (and has done for some time) that Context is the only valid location for these nested components. (markt)
  • Move the Mapper from the Connector to the Service since the Mapper is identical for all Connectors of a given Service and it is common for there to be multiple Connectors for a Service (http, https and ajp). This means there is now only ever one Mapper per Service rather than possibly multiple identically configured Mapper objects. (markt)
  • Remove the per Context Mapper objects and use the Mapper from the Service. This removes the need to maintain two copies of the mappings for Servlets and Filters. (markt)
  • Implement a new Resources implementation that merges Aliases, VirtualLoader, VirtualDirContext, JAR resources and external repositories into a single framework rather than a separate one for each feature. (markt)
  • URL rewrite valve, similar in functionality to mod_rewrite. (remm)
  • Port storeconfig functionality, which can persist to server.xml and context.xml runtime container configuration changes. (remm)
  • 54095: Add support to the Default Servlet for serving gzipped versions of static resources directly from disk as an alternative to Tomcat compressing them on each request. Patch by Philippe Marschall. (markt)
  • 54708: Change the name of the working directory for the ROOT application (located under $CATALINA_BASE/work by default) from _ to ROOT. (markt)
  • Change default configuration so that a change to the global web.xml file will trigger a reload of all web applications. (markt)
  • 55101: Make BASIC authentication more tolerant of whitespace. Patch provided by Brian Burch. (markt)
  • 55166: Move JSP descriptor and tag library descriptor schemas to servlet-api.jar to enable relative references between the schemas to be correctly resolved. (markt)
  • Refactor the descriptor parsing code into a separate module that can be used by both Catalina and Jasper. Includes patches provided by Jeremy Boynes. (violetagg/markt)
  • 55246: Move TLD scanning to a ServletContainerInitializer provided by Jasper. Includes removal of TldConfig lifecycle listener and associated Context properties. (jboynes)
  • 55317: Facilitate weaving by allowing ClassFileTransformer to be added to WebppClassLoader. Patch by Nick Williams. (markt)
  • 55620: Enable Tomcat to start when either $CATALINA_HOME and/or $CATALINA_BASE contains a comma character. Prevent Tomcat from starting when $CATALINA_HOME and/or $CATALINA_BASE contains a semi-colon on Windows. Prevent Tomcat from starting when $CATALINA_HOME and/or $CATALINA_BASE contains a colon on Linux/FreeBSD/etc. (markt)
  • Initialize the JSP runtime in Jasper's initializer to avoid need for a Jasper-specific lifecycle listener. JasperListener has been removed. (jboynes)
  • Chnage ordering of elements of JMX objects names so components are grouped more logically in JConsole. Generally, components are now grouped by Host and then by Context. (markt)
  • Coyote:
  • Experimental support for SPDY. Includes contributions from Sheldon Shao. (costin)
  • The default connector is now the Java NIO connector even when specifying HTTP/1.1 as protocol (fhanik)
  • Update default value of pollerThreadCount for the NIO connector. The new default value will never go above 2 regardless of available processors. (fhanik)
  • 54010: Remove some unnecessary code (duplicate calls to configure the scheme as https for AJP requests originally received over HTTPS). (markt)
  • Refactor char encoding/decoding using NIO APIs. (remm)
  • Change the default URIEncoding for all connectors from ISO-8859-1 to UTF-8. (markt)
  • Jasper:
  • Simplify API of ErrorDispatcher class by using varargs. (kkolinko)
  • Update Jasper to use the new common web.xml parsing code. Includes patches by Jeremy Boynes. (markt/violetagg)
  • Create test cases for JspC. Patch by Jeremy Boynes. (markt)
  • 55246: TLD scanning is now performed by JasperInitializer (a ServletContainerInitializer) removing the need for support within the Servlet container itself. The scan is now performed only once rather than in two passes reducing startup time. (jboynes)
  • 55251: Do not allow JspC task to fail silently if the web.xml or web.xml fragment can not be generated. (markt)
  • Cluster:
  • Remove unused JvmRouteSessionIDBinderListener and SessionIDMessage. (kfujino)
  • Modify method signature in ReplicationValve. Cluster instance is not necessary to argument of method. (kfujino)
  • Remove unused expireSessionsOnShutdown attribute in org.apache.catalina.ha.session.BackupManager. (kfujino)
  • Web applications:
  • Extend the diagnostic information provided by the Manager web application to include details of the configured SSL ciphers suites for each connector. (markt)
  • 48550: Update examples web application to use UTF-8. (markt)
  • 55383: Improve the design and correct the HTML markup of the documentation web application. Patches provided by Konstantin Preißer. (markt)
  • Tribes:
  • Refactor AbstractReplicatedMap to use generics. A key side-effect of this is that the class now implements Map rather than extends ConcurrentMap. (markt)
  • Other:
  • Remove unused, deprecated code. (markt)
  • Remove static info String and associated getInfo() method where present. (markt)
  • (r1353242, r1353410): Remove Ant tasks jasper2 and jkstatus. The correct names are jasper and jkupdate. (kkolinko)
  • 53529: Clean-up the handling of InterruptedException throughout the code base. (markt)
  • 54899: Provide an initial implementation of NetBeans support. Patch provided by Brian Burch. (markt)
  • 55166: Move the JSP descriptor and tag library descriptor schema defintion files from jsp-api.jar to servlet-api.jar so relative includes between the J2EE, Servlet and JSP schemas are correctly resolved. (markt)
  • 55372: When starting Tomcat with the jpda option to enable remote debugging, by default only listen on localhost for connections from a debugger. Prior to this change, Tomcat listened on all known addresses. (markt)

New in Apache Tomcat 7.0.47 (Oct 26, 2013)

  • Coyote:
  • Fix regression with legacy WebSocket implementation in NIO and APR connectors. (markt)
  • Web applications:
  • Avoid hang observed with Java 6 on Windows when stopping the Tomcat process via CTRL-C. (markt)
  • Other:
  • 55663: NOTICE files are corrected according to NOTICE files requirements. (violetagg)

New in Apache Tomcat 8.0.0 RC 5 (Oct 21, 2013)

  • Improved stability of the APR/native connector when using WebSocket
  • Add a drawing board example to the WebSocket examples.
  • Add support for directly serving gzipped versions of a resource via the default servlet.

New in Apache Tomcat 8.0.0 RC 3 (Sep 30, 2013)

  • Catalina:
  • Add: Implement JSR 340 - Servlet 3.1. The JSR 340 implementation includes contributions from Nick Williams and Jeremy Boynes. (markt)
  • Add: Implement JSR 245 MR2 - JSP 2.3. (markt)
  • Add: Implement JSR 341 - Unified Expression Language 3.0. (markt)
  • Add: Implement JSR 356 - WebSockets. The JSR 356 implementation includes contributions from Nick Williams, Rossen Stoyanchev and Niki Dokovski. (markt)
  • Update: 46727: Refactor default servlet to make it easier to sub-class to implement finer grained control of the file encoding. Based on a patch by Fred Toth. (markt)
  • Add: 45995: Align Tomcat with Apache httpd and perform MIME type mapping based on file extension in a case insensitive manner. (markt)
  • Code: Remove duplicate code that converted a Host's appBase attribute to a canonical file. (markt)
  • Code: 51408: Replace calls to Charset.defaultCharset() with an explicit reference to the ISO-8859-1 Charset. (markt)
  • Code: Refactor initialization code to use a single, consistent approach to determining the Catalina home (binary) and base (instance) directories. The search order for home is catalina.home system property, parent of current directory if boootstrap.jar is present and finally current working directory. The search order for Catalina base is catalina.base system property falling back to the value for Catalina home. (markt)
  • Update: 52092: JULI now uses the OneLineFormatter and AsyncFileHandler by default. (markt)
  • Fix: 52558: Refactor CometConnectionManagerValve so that it does not prevent the session from being serialized in when running in a cluster. (markt)
  • Fix: 52767: Remove reference to MySQL specific autoReconnect property in JDBCAccessLogValve. (markt)
  • Code: Make the Mapper type-safe. Hosts, Contexts and Wrappers are no longer handled as plain objects, instead they keep their type. Code using the Mapper doesn't need to cast objects returned by the mapper. (rjung)
  • Code: Move Manager, Loader and Resources from Container to Context since Context is the only place they are used. The documentation already states (and has done for some time) that Context is the only valid location for these nested components. (markt)
  • Code: Move the Mapper from the Connector to the Service since the Mapper is identical for all Connectors of a given Service and it is common for there to be multiple Connectors for a Service (http, https and ajp). This means there is now only ever one Mapper per Service rather than possibly multiple identically configured Mapper objects. (markt)
  • Code: Remove the per Context Mapper objects and use the Mapper from the Service. This removes the need to maintain two copies of the mappings for Servlets and Filters. (markt)
  • Add: Implement a new Resources implementation that merges Aliases, VirtualLoader, VirtualDirContext, JAR resources and external repositories into a single framework rather than a separate one for each feature. (markt)
  • Add: URL rewrite valve, similar in functionality to mod_rewrite. (remm)
  • Add: Port storeconfig functionality, which can persist to server.xml and context.xml runtime container configuration changes. (remm)
  • Fix: 54708: Change the name of the working directory for the ROOT application (located under $CATALINA_BASE/work by default) from _ to ROOT. (markt)
  • Add: Change default configuration so that a change to the global web.xml file will trigger a reload of all web applications. (markt)
  • Fix: 55101: Make BASIC authentication more tolerant of whitespace. Patch provided by Brian Burch. (markt)
  • Fix: 55166: Move JSP descriptor and tag library descriptor schemas to servlet-api.jar to enable relative references between the schemas to be correctly resolved. (markt)
  • Code: Refactor the descriptor parsing code into a separate module that can be used by both Catalina and Jasper. Includes patches provided by Jeremy Boynes. (violetagg/markt)
  • Code: 55246: Move TLD scanning to a ServletContainerInitializer provided by Jasper. Includes removal of TldConfig lifecycle listener and associated Context properties. (jboynes)
  • Coyote:
  • Add: Experimental support for SDPY. Includes contributions from Sheldon Shao. (costin)
  • Code: The default connector is now the Java NIO connector even when specifying HTTP/1.1 as protocol (fhanik)
  • Code: Update default value of pollerThreadCount for the NIO connector. The new default value will never go above 2 regardless of available processors. (fhanik)
  • Fix: 54010: Remove some unnecessary code (duplicate calls to configure the scheme as https for AJP requests originally received over HTTPS). (markt)
  • Code: Refactor char encoding/decoding using NIO APIs. (remm)
  • Update: Change the default URIEncoding for all connectors from ISO-8859-1 to UTF-8. (markt)
  • Jasper:
  • Code: Simplify API of ErrorDispatcher class by using varargs. (kkolinko)
  • Code: Update Jasper to use the new common web.xml parsing code. Includes patches by Jeremy Boynes. (markt/violetagg)
  • Add: Create test cases for JspC. Patch by Jeremy Boynes. (markt)
  • Code: 55246: TLD scanning is now performed by JasperInitializer (a ServletContainerInitializer) removing the need for support within the Servlet container itself. The scan is now performed only once rather than in two passes reducing startup time. (jboynes)
  • Cluster:
  • Code: Remove unused JvmRouteSessionIDBinderListener and SessionIDMessage. (kfujino)
  • Code: Modify method signature in ReplicationValve. Cluster instance is not necessary to argument of method. (kfujino)
  • Web applications:
  • Add: Extend the diagnostic information provided by the Manager web application to include details of the configured SSL ciphers suites for each connector. (markt)
  • Update: 48550: Update examples web application to use UTF-8. (markt)
  • Update: 55383: Improve the design and correct the HTML markup of the documentation web application. Patches provided by Konstantin Preißer. (markt)
  • Tribes:
  • Code: Refactor AbstractReplicatedMap to use generics. A key side-effect of this is that the class now implements Map rather than extends ConcurrentMap. (markt)
  • Other:
  • Code: Remove unused, deprecated code. (markt)
  • Code: Remove static info String and associated getInfo() method where present. (markt)
  • Update: (r1353242, r1353410): Remove Ant tasks jasper2 and jkstatus. The correct names are jasper and jkupdate. (kkolinko)
  • Fix: 53529: Clean-up the handling of InterruptedException throughout the code base. (markt)
  • Add: 54899: Provide an initial implementation of NetBeans support. Patch provided by Brian Burch. (markt)
  • Fix: 55166: Move the JSP descriptor and tag library descriptor schema defintion files from jsp-api.jar to servlet-api.jar so relative includes between the J2EE, Servlet and JSP schemas are correctly resolved. (markt)
  • Fix: 55372: When starting Tomcat with the jpda option to enable remote debugging, by default only listen on localhost for connections from a debugger. Prior to this change, Tomcat listened on all known addresses. (markt)

New in Apache Tomcat 8.0.0 RC 1 (Aug 12, 2013)

  • Catalina:
  • Implement JSR 340 - Servlet 3.1. The JSR 340 implementation includes contributions from Nick Williams and Jeremy Boynes. (markt)
  • Implement JSR 356 - WebSockets. The JSR 356 implementation includes contributions from Nick Williams, Rossen Stoyanchev and Niki Dokovski. (markt)
  • 45995: Align Tomcat with Apache httpd and perform MIME type mapping based on file extension in a case insensitive manner. (markt)
  • Remove duplicate code that converted a Host's appBase attribute to a canonical file. (markt)
  • 51408: Replace calls to Charset.defaultCharset() with an explicit reference to the ISO-8859-1 Charset. (markt)
  • Refactor initialization code to use a single, consistent approach to determining the Catalina home (binary) and base (instance) directories. The search order for home is catalina.home system property, parent of current directory if boootstrap.jar is present and finally current working directory. The search order for Catalina base is catalina.base system property falling back to the value for Catalina home. (markt)
  • 52767: Remove reference to MySQL specific autoReconnect property in JDBCAccessLogValve. (markt)
  • Make the Mapper type-safe. Hosts, Contexts and Wrappers are no longer handled as plain objects, instead they keep their type. Code using the Mapper doesn't need to cast objects returned by the mapper. (rjung)
  • Move Manager, Loader and Resources from Container to Context since Context is the only place they are used. The documentation already states (and has done for some time) that Context is the only valid location for these nested components. (markt)
  • Move the Mapper from the Connector to the Service since the Mapper is identical for all Connectors of a given Service and it is common for there to be multiple Connectors for a Service (http, https and ajp). This means there is now only ever one Mapper per Service rather than possibly multiple identically configured Mapper objects. (markt)
  • Remove the per Context Mapper objects and use the Mapper from the Service. This removes the need to maintain two copies of the mappings for Servlets and Filters. (markt)
  • Implement a new Resources implementation that merges Aliases, VirtualLoader, VirtualDirContext, JAR resources and external repositories into a single framework rather than a separate one for each feature. (markt)
  • URL rewrite valve, similar in functionality to mod_rewrite. (remm)
  • Port storeconfig functionality, which can persist to server.xml and context.xml runtime container configuration changes. (remm)
  • 54708: Change the name of the working directory for the ROOT application (located under $CATALINA_BASE/work by default) from _ to ROOT. (markt)
  • Change default configuration so that a change to the global web.xml file will trigger a reload of all web applications. (markt)
  • 55101: Make BASIC authentication more tolerant of whitespace. Patch provided by Brian Burch. (markt)
  • 55166: Move JSP descriptor and tag library descriptor schemas to servlet-api.jar to enable relative references between the schemas to be correctly resolved. (markt)
  • Refactor the descriptor parsing code into a separate module that can be used by both Catalina and Jasper. Includes patches provided by Jeremy Boynes. (violetagg/markt)
  • Coyote:
  • Experimental support for SDPY. Includes contributions from Sheldon Shao. (costin)
  • The default connector is now the Java NIO connector even when specifying HTTP/1.1 as protocol (fhanik)
  • Update default value of pollerThreadCount for the NIO connector. The new default value will never go above 2 regardless of available processors. (fhanik)
  • 54010: Remove some unnecessary code (duplicate calls to configure the scheme as https for AJP requests originally received over HTTPS). (markt)
  • Refactor char encoding/decoding using NIO APIs. (remm)
  • Jasper:
  • Simplify API of ErrorDispatcher class by using varargs. (kkolinko)
  • Update Jasper to use the new common web.xml parsing code. Includes patches by Jeremy Boynes. (markt/violetagg)
  • Create test cases for JspC. Patch by Jeremy Boynes. (markt)
  • Cluster:
  • Remove unused JvmRouteSessionIDBinderListener and SessionIDMessage. (kfujino)
  • Modify method signature in ReplicationValve. Cluster instance is not necessary to argument of method. (kfujino)
  • Web applications:
  • Extend the diagnostic information provided by the Manager web application to include details of the configured SSL ciphers suites for each connector. (markt)
  • Tribes:
  • Refactor AbstractReplicatedMap to use generics. A key side-effect of this is that the class now implements Map rather than extends ConcurrentMap. (markt)
  • Other:
  • Remove unused, deprecated code. (markt)
  • Remove static info String and associated getInfo() method where present. (markt)
  • (r1353242, r1353410): Remove Ant tasks jasper2 and jkstatus. The correct names are jasper and jkupdate. (kkolinko)
  • 53529: Clean-up the handling of InterruptedException throughout the code base. (markt)
  • 54899: Provide an initial implementation of NetBeans support. Patch provided by Brian Burch. (markt)
  • 55166: Move the JSP descriptor and tag library descriptor schema defintion files from jsp-api.jar to servlet-api.jar so relative includes between the J2EE, Servlet and JSP schemas are correctly resolved. (markt)

New in Apache Tomcat 7.0.42 (Jul 6, 2013)

  • Catalina:
  • fix: Enforce the restriction described in section 4.4 of the Servlet 3.0 specification that requires the new pluggability methods only to be available to ServletContextListeners defined in one of the specified ways. (markt)
  • fix: Better handle FORM authentication when requesting a resource as an unauthenticated user that is only protected for a sub-set of HTTP methods that does not include GET. (markt)
  • fix: Add support for a JAAS Realm instance to use a dedicated configuration rather than the JVM global JAAS configuration. This is most likely to be useful for per web application JAAS Realms. Based on a patch by eolivelli. (markt)
  • fix: Fix JAR file scanning when Tomcat is deployed via Java Web Start. Patch provided by Nick Williams. (markt)
  • add: Add the ability to configure the RMI bind address when using the JMX remote lifecycle listener. Patch provided by Alexey Noskov. (markt)
  • fix: Ensure original exception is reported if JDBC Realm fails to read a user's credentials. (markt)
  • fix, 55108, 55109, 55110, 55158 & 55159: Small performance improvements. Patches provided by Adrian Nistor. (markt/violetagg)
  • add: Add support for time to first byte in the AccessLogValve. Patch provided by Jeremy Boynes. (markt)
  • fix: If the Server container fails to start, don't allow the Catalina wrapper to start (used when running from the command line and when running as a service) since Tomcat will not be able to do any useful work. (markt)
  • fix: Update the JreMemoryLeakPreventionListener to take account of changes in the behaviour of java.beans.Introspector.flushCaches() and sun.awt.AppContext.getAppContext() in Java 7. (markt)
  • fix: Avoid WARNING log message of Users:type=UserDatabase,database=UserDatabase at Tomcat shutdown. (pero)
  • fix: Avoid ClassCastException when an asynchronous dispatch is invoked in an asynchronous cycle which is started by a call to ServletRequest.startAsync(ServletRequest,ServletResponse) where ServletRequest/ServletResponse are custom implementations. (violetagg)
  • fix: Correct a regression introduced in 7.0.39 (refactoring of base 64 encoding and decoding) that broke the JNDI Realm when userPassword was set and passwords were hashed with MD5 or SHA1. (markt/kkolinko)
  • fix: Correct the mechanism for the path calculation in AsyncContext.dispatch(). (violetagg)
  • fix: Avoid constant focus grabbing when running the Tomcat unit tests under Java 6 on OSX. Patch provided by Casey Lucas. (markt)
  • fix: Don't ignore connectionUploadTimeout setting when using HTTP NIO connector. (markt)
  • fix: Correctly handle regular expressions within SSI expressions that contain an equals character. (markt)
  • Coyote:
  • fix: Correctly handle infinite soTimeout for BIO HTTP connector. Based on a patch by Nick Bunn. (markt)
  • fix: Correctly handle infinite soTimeout when disableUploadTimeout is set to false. Patch provided by Nick Bunn. (violetagg)
  • Cluster:
  • fix: Delete leftover of war file from tempDir when removing invalid FileMessageFactory. (kfujino)
  • fix: Ensure that the keepAlive of NioSender works correctly when keepAliveCount/keepAliveTime is set to a value greater than 0. (kfujino)
  • add: Add logging of when a member is unable to join the cluster. (kfujino)
  • fix: Replace Tribes's TaskQueue as executor's workQueue in order to ensure that executor's maxThread works correctly. (kfujino)
  • fix: Fix an additional code path that could lead to multiple threads attempting to modify the same selector key set. (markt)
  • Web applications:
  • add: Complete the document for MessageDispatch15Interceptor. (kfujino)
  • add: Document the circumstances under which Tomcat will add a javax.mail.Authenticator to mail sessions created via a JNDI resource. (markt)
  • fix: Correct the Javadoc for the remote IP valve so the correct name is used to refer to the proxiesHeader property. (markt)
  • jdbc-pool:
  • fix: Fixed Export-Package header and uses directives in MANIFEST.MF. Change the version for package org.apache.juli.logging to "0" in Import-Package header. Thus any version of that package can be used.
  • Other:
  • update: Update Maven Cental location used to download dependencies at build time to be repo.maven.apache.org. (kkolinko)
  • update: Update JUnit to version 4.11. Configure separate download for Hamcrest 1.3 core library as its classes are no longer included in junit.jar. (kkolinko)
  • fix: When using a forced stop, allow a short period of time (5s) for the process to die before returning. Patch provided by mukarram.baig. (markt)
  • fix: Ensure that the build process produces Javadoc that is not vulnerable to CVE-2013-1571. Based on a patch by Uwe Schindler. (markt)

New in Apache Tomcat 7.0.41 (Jun 12, 2013)

  • Catalina
  • fix: Make parsing of HTTP Content-Type headers tolerant of any CR or LF characters that appear in the value passed by the application. Also fix some whitespace parsing issues identified by the additional test cases. (markt)
  • fix: Prevent possible WAR file locking when reading a context.xml file from an unexpanded WAR file. Note that in normal usage, the JreMemoryLeakPreventionListener would protect against this. (markt)
  • fix: Ensure that when auto deployment runs for a Host, it uses the latest values for copyXML, deployXML and unpackWARs. (markt)
  • fix: Provide logging (using a UserDataHelper) when HTTP header parsing fails (e.g. when maxHeaderCount is exceeded). (markt)
  • add: Enhancements to the unit tests for FORM authentication. Patch provided by Brian Burch. (markt)
  • fix: When a reload of the application is performed ensure that a subsequent request to the context root does not result in a 404 response. (violetagg)
  • fix: Ensure that the correct location is used when writing files via javax.servlet.http.Part.write(String). (markt)
  • fix: Ensure that SessionCookieConfig#set will throw IllegalStateException if the ServletContext from which this SessionCookieConfig was acquired has already been initialized. (violetagg)
  • fix: Ensure that ServletContext#getJspConfigDescriptor() will return null when there is no jsp configuration provided by web.xml/web-fragment.xml. (violetagg)
  • fix: Ensure that when Tomcat's anti-resource locking features are used that the temporary copy of the web application and not the original is removed when the web application stops. (markt)
  • fix: Use the correct encoding when processing a form data posted as multipart/form-data even when the request parameters are not parsed. (violetagg)
  • fix: The old JSESSIONIDSSO needs to be removed when SSO is being used and logout() and login() occur within a single request. Patch provided by Keith Mashinter. (markt)
  • add: Add support for the version attribute to the deploy command of the Ant tasks for interfacing with the text based Manager application.
  • add: Add a Servlet Filter that implements CORS. Patch provided by Mohit Soni. (markt)
  • add: JULI's LogManager now additionally looks for logging properties without prefixes if the property cannot be found with a prefix. (markt)
  • fix: Ensure that only the first asynchronous dispatch operation for a given asynchronous cycle will be performed. Any subsequent asynchronous dispatch operation for the same asynchronous cycle will be ignored and IllegalStateException will be thrown. (violetagg)
  • Coyote:
  • fix: Fix the HTTP NIO connector that incorrectly rejected a request if the CRLF terminating the request line was split across multiple packets.
  • Jasper:
  • fix: Allow tag plug-ins to be packaged with a web application. Patch provided by Sheldon Shao. (markt)
  • fix: Return the correct version number (2.2) of the JSP specification that is supported by the JSP engine when javax.servlet.jsp.JspEngineInfo#getSpecificationVersion() is invoked. (violetagg)
  • Cluster:
  • Add maxValidTime attribute to prevent the leak of FileMessageFactory in FarmWarDeployer. (kfujino)
  • code Simplify the code of ReplicationValve: Rather than get cluster instance from container on every request, use instance variable. (kfujino)
  • Add maxWait attribute that the senderPool will wait when there are no available senders. (kfujino)
  • Improve error message by including specified timeout if failed to retrieve a data sender. (kfujino)
  • Add removeSuspectsTimeout attribute in order to remove a suspect node in TcpFailureDetector. (kfujino)
  • Web applications:
  • fix: Add information to the Window Service how-to about installing and running multiple instances. Based on a patch by Chris Derham. (markt)
  • fix: Correct the link to Tribes documentation. (violetagg)
  • Add document for o.a.c.tribes.group.interceptors.TcpFailureDetector. (kfujino)

New in Apache Tomcat 7.0.40 (May 11, 2013)

  • Catalina:
  • update: Update Tomcat's internal copy of Commons FileUpload to FileUpload 1.3.
  • 54178: Protect against AsyncListener implementations that throw RuntimeExceptions in response to an event.
  • 54791: Restore tools.jar entry in jarsToSkip property to prevent warnings when running Tomcat from Eclipse.
  • 54851: When scanning for web fragments, directories without any web-fragment.xml should not impact the status of distributable element. Patch provided by Trask Stalnaker.
  • When an error occurs during the sending of a WebSocket message, notify the Inbound side (where all the events occur that the application reacts to) that an error has occurred and that the connection is being closed.
  • 54906: Better error message if a ConcurrentModificationException occurs while checking for memory leaks when a web application stops. Also ensure that the exception does not cause remaining checks to be skipped.
  • fix Allow 204 responses (no content) to include entity headers as required by RFC2616.
  • Coyote:
  • fix: Ensure write errors when using HTTP Upgrade with the APR/native connector result in IOExceptions rather than errors being silently swallowed.
  • Jasper:
  • 54802: Provide location information for exceptions thrown by JspDocumentParser.
  • 54801: Do not attempt to parse text that looks like an EL expressions inside a scriptlet in a JSP document because EL expressions are not permitted in scriptlets.
  • 54821: Do not attept to parse text that looks like an EL expressions in a JSP document if EL expressions have been disabled.
  • 54888: Add support for CSV lists with the ForEach tag plugin. Patch provided by Sheldon Shao.
  • Cluster:
  • fix: Add several improvements for FarmWarDeployer.
  • Web applications:
  • 54872: Correct Cluster Receiver page of Tomcat documentation.
  • jdbc-pool:
  • update Document StatementCache interceptor.
  • fix: Fix minor threading issue in ConnectionPool.
  • fix: 54732: Fix leak of statements in StatementCache interceptor.
  • fix: Fix NPE in SlowQueryReportJmx when running TestSlowQueryReport test.
  • Other:
  • update: Update to Eclipse JDT Compiler 4.2.2.
  • update: 54890: Update to Apache Commons Daemon 1.0.15.
  • update: Convert remaining unit tests to JUnit 4 and enable Checkstyle rule that forb

New in Apache Tomcat 7.0.39 (Mar 27, 2013)

  • Web application reloading and static fields in shared libraries:
  • Some shared libraries (many are part of the JDK) keep references to objects instantiated by the web application. To avoid class loading related problems (ClassCastExceptions, messages indicating that the classloader is stopped, etc.), the shared libraries state should be reinitialized.
  • Something which might help is to avoid putting classes which would be referenced by a shared static field in the web application classloader, and putting them in the shared classloader instead (JARs should be put in the "lib" folder, and classes should be put in the "classes" folder).
  • Enabling SSI and CGI Support:
  • Because of the security risks associated with CGI and SSI available to web applications, these features are disabled by default.
  • Security manager URLs:
  • In order to grant security permissions to JARs located inside the web application repository, use URLs of of the following format in your policy file: file:${catalina.base}/webapps/examples/WEB-INF/lib/driver.jar
  • Symlinking static resources:
  • By default, Unix symlinks will not work when used in a web application to link resources located outside the web application root directory. This behavior is optional, and the "allowLinking" flag may be used to disable the check.

New in Apache Tomcat 7.0.37 (Feb 19, 2013)

  • Catalina:
  • 54521: Ensure that concurrent requests that require a DIGEST authentication challenge receive different nonce values.
  • 54534: Ensure that, if a call to StandardWrapper#isSingleThreadModel() triggers the loading of a Servlet, the correct class loader is used.
  • 54536: Ensure the default error page is displayed if a custom HHTP status code is used when calling HttpServletResponse#sendError(int, String).
  • Coyote:
  • 54456: Ensure that if a client aborts a request when sending a chunked request body that this is communicated correctly to the client reading the request body.
  • Update the native component of the APR/native connector to 1.1.27 and make that version the recommended minimum version.
  • Jasper:
  • 54239: Enable web applications to provide their own Expression Language interpreter to enable them to optimise processing of expressions. Based on a patch by Sheldon Shao.
  • Web applications
  • 54505: Create clearer links from the JNDI How-To to the Tomcat specific options for configuring JNDI resources.
  • Other:
  • Update to Apache Commons Daemon 1.0.13.

New in Apache Tomcat 7.0.36 (Feb 19, 2013)

  • Catalina:
  • Make additional allowances for buggy client implementations of HTTP DIGEST authentication. This is a follow-on to 54060.
  • 54438: Fix a regression in the fix for 52953 that triggered a NPE when digested passwords were used and an authentication attempt was made for a user that did not exist in the realm.
  • 54448: Correctly handle @Resource annotations on primitives. Patch provided by Violeta Georgieva.
  • 54450: Correctly handle resource injection when part of the servlet properties uses @Resource and the other uses injection-target. Patch provided by Violeta Georgieva.
  • 54458: Include exception when logging errors in the DataSourceRealm. Patch provided by Violeta Georgieva.
  • 54483: Correct one of the Spanish translations. Based on a suggestion from adinamita.
  • Prevent the SSO deregister when web application is stopped or reloaded. When StandardManager(pathname="") or DeltaManager stops normally, all sessions in the context are expired. In this case, because most sessions is not time-out, SSO deregister was triggered.
  • Include the exception in the log message if the parsing of the context.xml file fails.
  • 54497: Make memory leak detection code more robust so a failure in the leak detection code does not prevent the Context from stopping unless the error is fatal to the JVM.
  • 54507: Do not start the background thread that is used to expiring sessions (amongst other things) until the web application is fully started. Stop the background thread as soon as the web application is stopped.
  • Coyote:
  • 54324: Allow APR connector to disable TLS compression if OpenSSL supports it.
  • 54406: Fix NIO HTTPS connector to prune specified ciphers and sslEnableProtocols options to those supported by the SSL implementation, sharing logic with the BIO connector. Modified ciphers and sslEnabledProtocols option pruning to not silently revert to JVM defaults when none of the options specified are supported - new behaviour is to warn and explicitly enable no options.
  • Align NIO HTTP connector with other HTTP connectors and include leading blank lines when determining the size of the HTTP headers
  • Jasper:
  • 53869: Performance improvement for pages with lots of heavily nested tags. Retain a reference to the root JSP context rather than traversing the hierarchy on every call. Based on a patch suggested by Sheldon Shao.
  • 54440: Correct a regression caused by the changes for 54240 that broke compilation of JSPs with JspC. Patch provided by Sheldon Shao.
  • 54466: Improve error message by including the name of the file when the java file generated from a tag file cannot be compiled. Based on a patch by Sheldon Shao.
  • Cluster:
  • Fix incorrect increment of counterSend_EVT_SESSION_EXPIRED and counterSend_EVT_CHANGE_SESSION_ID. These values are not incremented if no members active in cluster group.
  • 54476: Correct error in Javadoc of GroupChannel send methods to maker clear that the minimum length of the destination member array is one, not two.
  • Prevent SSO deregister when node shutdown normally in cluster environment.
  • Check cluster member before sending replicate message in ClusterSingleSignOn.
  • Web applications:
  • 54461: Improve the documentation for the compiler attribute in the Jasper how-to.
  • add Add Jespa to the list of third-party Windows authentication providers and make external links in the documentation for those providers no-follow.
  • Tribes:
  • 54496: Don't use a hard-coded class name in MemberImpl.toString().
  • Other:
  • Update to Commons Daemon 1.0.12.

New in Apache Tomcat 7.0.35 (Jan 17, 2013)

  • Catalina:
  • 54247: Prevent ClassNotFoundExceptions on stop when running as a service. (markt)
  • 54249: Ensure resource properties are available when the context path contains encoded characters such as a space. This triggered compilation issues in Jasper. Patch provided by Polina Genova. (markt)
  • 54256: Improve error reporting when a JAR file fails extension validation by including the name of the JAR file in the exception. (markt)
  • Allow web applications to be stopped cleanly even if filters throw exceptions when their destroy() method is called. (markt/kkolinko)
  • Fix memory leak of servlet instances when running with a SecurityManager and either init() or destroy() methods fail or the servlet is a SingleThreadModel one. (kkolinko)
  • Cleanup method cache lookup code in SecurityUtil class. (kkolinko)
  • Make the Tomcat 7 non-JSR356 WebSocket implementation non-blocking (where supported by the connector) between the HTTP upgrade and the first WebSocket message from the client to the server. (markt)
  • 54262: Ensure that an empty element in the main web.xml file disables scanning for web fragments. Based on a patch by Violeta Georgieva. (markt)
  • 54284: As per clarification from the Servlet EG, anonymous Filters and Servlets are not permitted. Patch by Violeta Georgieva. (markt)
  • 54371: Prevent exceptions when processing web fragments for unexpanded WAR files when the context path contains characters that need to be encoded in URLs such as spaces. Based on a patch by Polina Genova. (markt)
  • 54372: Make HTTP Digest authentication header parsing tolerant of invalid headers sent by known buggy clients. (markt)
  • 54377: Correctly set request attributes for AccessLog in RemoteIpFilter. Patch by Violeta Georgieva. (markt)
  • 54379: Implement support for post-construct and pre-destroy elements in web.xml. Patch by Violeta Georgieva. (markt)
  • 54380: Do not try to register servlets or contexts into the mapper too early (which just caused a warning to be logged). (kkolinko)
  • Fix NPE in WebappLoader.stopInternal when stop is called after a failed start. (kkolinko)
  • 54381: Add support for receiving WebSocket pong messages. (markt)
  • 54382: Fix NPE when SSI processing is enabled and an empty SSI directive is present. (markt)
  • Fix ArrayIndexOutOfBoundsException in HttpParser when parsing incorrect HTTP headers. (kkolinko)
  • 54387: Deployment must fail when multiple servlets are mapped to the same url-pattern. (markt)
  • 54391: Provide a value for the javax.servlet.context.orderedLibs attribute. (markt)
  • Coyote:
  • 54248: Ensure that byte order marks are swallowed when using a Reader to read a request body with a BOM for those encodings that require byte order marks. (markt)
  • Fix release of processors in AjpNioProtocol. Wrong object was used as a key in the connections map. (kkolinko)
  • Jasper:
  • 54240: Add support for auto-detection and configuration of JARs on the classpath that provide tag plug-in implementations. Based on a patch by Sheldon Shao. (markt)
  • 54241: Revert the fix for 35410 as it was not compliant with the JSP specification, specifically that must be translated to out.print(obj) which in turn becomes out.write(String.valueOf(obj)). This will trigger a NullPointerException if obj.toString() returns null. The fix for 35410 incorrectly suppressed the NullPointerException in this case. (markt)
  • 54242: Correct handle null iterations with in the JSTL ForEach tag plug-in implementation. Patch provided by Sheldon Shao. (markt)
  • 54260: Avoid NullPointerException when using JSP unloading and tag files. (markt)
  • 54370: Improve handling of nulls when trying to match sets of parameters to a method in EL. (markt)
  • 54338: Correctly coerce the value to the expected type when using the tag plug-in for the JSTL set tag. Patch provided by Sheldon Shao. (markt)
  • Web applications:
  • 54244: Clarify the documentation for the BIO and NIO SSL configuration attributes sslEnabledProtocols and sslProtocol within the documentation web application. (markt)
  • Integrate documentation of Tomcat 7 with Apache Comments System. People can leave their comments when reading documentation online at the tomcat.apache.org site. (rjung)
  • Other:
  • 54390: Use 'java_home' on Mac OS X to auto-detect JAVA_HOME. (schultz)

New in Apache Tomcat 7.0.34 (Dec 12, 2012)

  • Catalina:
  • 53871: Improve error message if annotation scanning fails during web application start due to poor configuration or illegal cyclic inheritance with the application's classes. (markt)
  • Fix unit test for AccessLogValve when using non-GMT time zone. (rjung)
  • 54170: Ensure correct registration of Filters and Servlets in the JMX registry if the Filter or Servlet name includes a character that must be quoted if used in an ObjectName value. (markt)
  • Add new attribute renameOnRotate to the AccessLogValve. (rjung)
  • 54190: Correct unit tests for BASIC authentication so that session timeout is correctly tested. Also refactor unit test to make it easier to add additional tests. Patch by Brian Burch. (markt)
  • 54220: Ensure the ErrorReportValve only generates an error report if the error flag on the response has been set. (markt)
  • Simplify time zone handling in the access log valve and correctly handle various edge cases for non-standard DST changes. (markt)
  • Web applications:
  • 54198: Clarify that HttpServletResponse.sendError(int) results in an HTML response by default. (markt)
  • 54207: Correct JNDI factory package name in Javadoc for org.apache.naming.java.javaURLContextFactory. (markt)
  • jdbc-pool:
  • Fix a handful of Eclipse warnings in the JDBC pool source code including the warnings reported in 53565. (markt)
  • 54150: Make sure that SlowQueryReportJmx mbean deregistered during webapp shutdown. Reported by Alex Franken. (kfujino)
  • 54194: Make sure that connection pool mbean is not registered when jmxEnabled is false. Patch provided by tobias.gierke. (kfujino)
  • Other:
  • Update to Eclipse JDT Compiler 4.2.1. (markt)

New in Apache Tomcat 7.0.33 (Nov 22, 2012)

  • Catalina:
  • 53960, 54115: Extensions to HttpClient test helper class. Patches by Brian Burch. (markt/kkolinko)
  • 53993: Avoid a possible NPE in the AccessLogValve when the session ID is logged and a session is invalidated. (markt)
  • Add support for LAST_ACCESS_AT_START system property to PersistentManager. (kfujino)
  • Update MIME type mapping with additional / updated mime.types from the Apache web server. (markt)
  • 54007: Fix a memory leak that prevented deletion of a context.xml file associated with a Context that had failed to deploy. Also fix the problems uncovered with undeploying such a Context once the leak had been fixed and the file could be deleted. (markt)
  • 54044: Correct bug in timestamp cache used by logging (including the access log valve) that meant entries could be made with an earlier timestamp than the true timestamp. (markt)
  • 54054: Do not share shell environment variables between multiple instances of the CGI servlet. (markt)
  • 54060: Use a simple parser rather than a regular expression to parse HTTP Digest authentication headers so the header is correctly parsed. The new approach is also faster and generates less garbage. (markt)
  • 54068: Rewrite the web fragment ordering algorithm to resolve multiple issues that resulted in incorrect ordering or failure to find a correct, valid order. (markt)
  • The HTTP header parser added to address 52811 has been removed and replaced with the light-weight HTTP header parser created to address 54060. The new parser includes a work-around for a bug in the Adobe Acrobat Reader 9.x plug-in for Microsoft Internet Explorer that was identified when the old parser was introduced (53814).
  • 54076: Add an alternative work-around for clients that use SPNEGO authentication and expect the authenticated user to be cached per connection (Tomcat only does this if an HTTP session is available). (markt)
  • 54087: Correctly handle (ignore) invalid If-Modified-Since header rather than throwing an exception. (markt)
  • 54096: In web.xml, should accept any type that has a constructor that takes a single String or char. (markt)
  • 54127: Add support for sending a WebSocket Ping. Patch provided by Sean Winterberger. (markt)
  • In FormAuthenticator: If it is configured to change Session IDs, do the change before displaying the login form. (kkolinko)
  • Ensure AsyncListener.timeout() and AsyncListener.complete() are called with the correct thread context class loader. (fhanik)
  • 54123: If an asynchronous request times out without any AsyncListeners defined, a 500 error will be triggered. (markt)
  • 54124: Correct provided value of request attribute javax.servlet.async.request_uri and add missing request attribute javax.servlet.async.path_info. (markt)
  • Add denyStatus initialization parameter to CsrfPreventionFilter, allowing to customize the HTTP status code used for denied requests. (kkolinko)
  • 54141: Increase the permitted number of nested Realm levels from 2 to 3 by default and make the limit configurable via a system property. (markt)
  • Revert occasional API change in BaseDirContext class that was done in 7.0.32. Methods should not be final. (kkolinko)
  • Prevent failures in the AccessLogValve when running under a SecurityManager and the first request received is an asynchronous one. (markt)
  • Coyote:
  • Correct an issue that prevented WebSockets from being used over SSL when using the HTTP NIO connector. (markt)
  • 54022: Ensure the Comet END event is triggered on client disconnect with APR/native on Windows Vista/2k8 or later. Patch provided by Douglas Beachy. (markt)
  • 54067: Ensure responses with 1xx response codes are correctly marked as not containing an entity body. This caused an issue for some WebSocket clients when an Transfer-Encoding header was sent with the 101 (HTTP upgrade) response. (markt)
  • Jasper:
  • 53867: Optimise the XML escaping provided by the PageContext implementation. Based on a patch by Sheldon Shao. (markt)
  • 53896: Use an optimised CompositeELResolver for Jasper that skips resolvers that are known to be unable to resolve the value. Patch by Jarek Gawor. (markt)
  • 53986: Correct a regression introduced by the fix for 53713. JSP comments that ended with the sequence ---%> (or any similar sequence with a odd number of - characters) was not correctly parsed. (markt)
  • 54011: Fix a bug in the tag plug-in for that triggered a JSP compilation error if the escapeXml attribute was used. Patch provided by Sheldon Shao. (markt)
  • Follow up to 54011. Simplify generated code for . Based on a patch by Sheldon Shao. (markt)
  • 54012: Fix a bug in the tag plug-in infrastructure that meant the triggered a JSP compilation error when used in a tag file. Based on a patch provided by Sheldon Shao. (markt)
  • 54017: Simplify coercion of String instances to Object. (markt)
  • 54144: Fix a bug in the tag plug-in for that meant that if the value of the tag evaluated to a java.io.Reader object then it was not correctly handled. (markt)
  • Cluster:
  • Add getSessionIdsFull operation to mbeans-descriptor. listSessionIdsFull no longer exist. (kfujino)
  • 54086: Fix threading issue when stopping an NioReceiver. (markt)
  • Web applications:
  • 54143: Add display of the memory pools usage (including PermGen) to the Status page of the Manager web application. (kkolinko)
  • Tribes:
  • 54045: Make sure getMembers() returns available member when TcpFailureDetector works in static cluster. (kfujino)

New in Apache Tomcat 7.0.32 (Oct 8, 2012)

  • Bundled APIs:
  • A standard installation of Tomcat 7.0 makes all of the following APIs available for use by web applications (by placing them in "lib"):
  • annotations-api.jar (Annotations package)
  • catalina.jar (Tomcat Catalina implementation)
  • catalina-ant.jar (Tomcat Catalina Ant tasks)
  • catalina-ha.jar (High availability package)
  • catalina-tribes.jar (Group communication)
  • ecj-3.7.2.jar (Eclipse JDT Java compiler)
  • el-api.jar (EL 2.2 API)
  • jasper.jar (Jasper 2 Compiler and Runtime)
  • jasper-el.jar (Jasper 2 EL implementation)
  • jsp-api.jar (JSP 2.2 API)
  • servlet-api.jar (Servlet 3.0 API)
  • tomcat-api.jar (Interfaces shared by Catalina and Jasper)
  • tomcat-coyote.jar (Tomcat connectors and utility classes)
  • tomcat-dbcp.jar (package renamed database connection pool based on Commons DBCP)
  • You can make additional APIs available to all of your web applications by putting unpacked classes into a "classes" directory (not created by default), or by placing them in JAR files in the "lib" directory.
  • To override the XML parser implementation or interfaces, use the endorsed mechanism of the JVM. The default configuration defines JARs located in "endorsed" as endorsed.
  • Web application reloading and static fields in shared libraries:
  • Some shared libraries (many are part of the JDK) keep references to objects instantiated by the web application. To avoid class loading related problems (ClassCastExceptions, messages indicating that the classloader is stopped, etc.), the shared libraries state should be reinitialized.
  • Something which might help is to avoid putting classes which would be referenced by a shared static field in the web application classloader, and putting them in the shared classloader instead (JARs should be put in the "lib" folder, and classes should be put in the "classes" folder).
  • Enabling SSI and CGI Support:
  • Because of the security risks associated with CGI and SSI available to web applications, these features are disabled by default.
  • Security manager URLs:
  • In order to grant security permissions to JARs located inside the web application repository, use URLs of of the following format in your policy file: file:${catalina.base}/webapps/examples/WEB-INF/lib/driver.jar
  • Symlinking static resources:
  • By default, Unix symlinks will not work when used in a web application to link resources located outside the web application root directory.
  • This behavior is optional, and the "allowLinking" flag may be used to disable the check.

New in Apache Tomcat 7.0.30 (Sep 6, 2012)

  • Dependency Changes:
  • Tomcat @VERSION_MAJOR_MINOR@ is designed to run on Java SE 6 and later.
  • In addition, Tomcat @VERSION_MAJOR_MINOR@ uses the Eclipse JDT Java compiler for compiling JSP pages. This means you no longer need to have the complete Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment (JRE) is sufficient. The Eclipse JDT Java compiler is bundled with the binary Tomcat distributions. Tomcat can also be configured to use the compiler from the JDK to compile JSPs, or any other Java compiler supported by Apache Ant.
  • API Stability:
  • The public interfaces for the following classes are fixed and will not be changed at all during the remaining lifetime of the 7.x series: - javax/**/*
  • The public interfaces for the following classes may be added to in order to resolve bugs and/or add new features. No existing interface will be removed or changed although it may be deprecated. - org/apache/catalina/* - org/apache/catalina/comet/*
  • Note: As Tomcat 7 matures, the above list will be added to. The list is not considered complete at this time.
  • The remaining classes are considered part of the Tomcat internals and may change without notice between point releases.
  • JNI Based Applications:
  • Applications that require native libraries must ensure that the libraries have been loaded prior to use. Typically, this is done with a call like: static { System.loadLibrary("path-to-library-file"); } in some class. However, the application must also ensure that the library is not loaded more than once. If the above code were placed in a class inside the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the application were reloaded, the loadLibrary() call would be attempted a second time.
  • To avoid this problem, place classes that load native libraries outside of the web application, and ensure that the loadLibrary() call is executed only once during the lifetime of a particular JVM.

New in Apache Tomcat 7.0.29 (Jul 19, 2012)

  • Catalina:
  • Add support for searching for roles in JNDI/LDAP using another value than the actual DN or username specified. Rather it will use a value from the users directory entry. The new attribute introduced to the JNDIRealm is userRoleAttribute (fhanik)
  • Fix checking of recommended tcnative library version when using the APR connector. (rjung)
  • 0306: Improve StuckThreadDetectionValve: add stuckThreadNames property as a pair for the stuckThreadIds one, add thread ids to the log messages. (kkolinko)
  • 52135: Add support for a default error page to be defined in web.xml by defining an error page with just a nested location element. It appears this feature was intended to be included in the Servlet 3.0 specification but was accidently left out. (markt)
  • 53450: Correct regression in fix for 52999 that could easily trigger a deadlock when deploying a ROOT web application. (markt)
  • As per section 1.6.2 of the Servlet 3.0 specification and clarification from the Servlet Expert Group, the servlet specification version declared in web.xml no longer controls if Tomcat scans for annotations. Annotation scanning is now always performed - regardless of the version declared in web.xml - unless metadata complete is set to true. (markt)
  • As per clarification from the Servlet Expert Group, JARs are always checked for ServletContainerInitializers regardless of the setting of metadata complete. (markt)
  • 53465: Populate mapped-name property for resources defined in web.xml. Based on a patch by Violeta Georgieva. (markt)
  • Make the request available when establishing a WebSocket connection. (markt)
  • 53467: Correct a regression in the fix for 53257 that introduced problems for JSPs that used characters that must be encoded if used in a URI. (markt)
  • Coyote:
  • 53430: Avoid a JVM crash when a connector that requires the APR/native library is explicitly specified and the library, or a recent enough version of it, is not available. (markt)
  • Jasper:
  • 53421: Provide a more helpful error message if a getter or setter cannot be found for a bean property when using expression language. (markt)
  • 53460: Allow container to handle errors if the creation of the PageContext fails rather than swallowing the error. (markt)
  • Web applications:
  • Update the WebSocket examples in the examples web application so that they work with secure connections (wss) as well as non-secure (ws) connections. (markt)
  • 53456: Minor corrections and improvements to the HTTP connector configuration reference. Patch provided by sebb. (markt)
  • 53459: Correction and clarifications to the SSL Connector configuration examples in the SSL how-to. (markt)
  • 53464: Correct reference to sample init.d script for use with jsvc in the documentation web application. (markt)
  • 53473: Correct the allowed values for the SSI option isVirtualWebappRelative which are true or false. (markt)
  • Document roleNested property of JNDIRealm in Configuration Reference. (kkolinko)
  • jdbc-pool:
  • 53445 (r1354173): Allow configurable name for SlowQueryReportJmx (fhanik)
  • 53416 (r1354641): Multiple pools with the same name should register under JMX (fhanik)
  • Other:
  • Fix cleanup of temporary files in TestNamingContext test. (kkolinko)
  • Remove a few files from the source distribution that are not required since they are copied / generated during the build. (markt)
  • Add manifest files to the set of files for which the line-ending is changed to match the OS defaults in the source distributions. (markt)
  • Align Jk Ant tasks definitions between antlib.xml and catalina.tasks files, introducing jkupdate as synonym for jkstatus. The latter one is deprecated. Simplify bin/catalina-tasks.xml, replacing taskdef with typedef and adding Ant condition implementations used with JMX to jmxaccessor.tasks file. (kkolinko)
  • 53454: Return correct content-length header for HEAD requests when content length is greater than 2GB. (markt)

New in Apache Tomcat 7.0.26 (Feb 22, 2012)

  • Catalina:
  • Provide constants for commonly used Charset objects and use these constants where appropriate. (markt)
  • fix Refactor the fix for 52184 to correct two issues (a missing class and incorrect class/method names) when using the extras logging packages. (markt)
  • fix 52444: Only load classes during HandlesTypes processing if the class is a match. Previously, every class in the web application was loaded regardless of whether it was a match or not. (markt)
  • fix 52488: Correct typo: exipre -> expire. (markt)
  • Add a unit test for SSO authentication. Patch provided by Brian Burch. (markt)
  • fix 52511: Correct regression in the fix for 51741 that caused a harmless exception to be logged when scanning for annotations and WEB-INF/classes did not exist. (markt)
  • code Refactor to remove a circular dependency between org.apache.catalina and org.apache.naming. (markt)
  • code Remove some initialisation code from the standard start process (i.e. via the scripts) that was intended for embedding but is not required when performing a standard start.(markt)
  • Add new method to MBeanFactory that allows any Valve to be created and deprecate the methods to create specific Valves. (markt)
  • Partial sync of MIME type mapping with mime.types from the Apache web server. (rjung)
  • fix 52577: Fix a regression in the fix for 52328. Prevent output truncation when reset() is called on a response. (mark)
  • fix 52586: Remove an old and now unnecessary hack that modified the path info reported via the javax.servlet.forward.path_info request attribute when forwarding to an error page. (markt)
  • fix 52587: Ensure that if it is necessary to fall back to the default NullRealm, the NullRealm instance is created early enough for it to be correctly initialised. (markt)
  • fix Fix millisecond output in AccessLogValve when using a SimpleDateFormat based time pattern. (rjung)
  • fix 52591: When dumping MBean data, skip attributes where getters throw UnsupportedOperationException. (markt)
  • fix 52607: Ensure that the extension validator checks the JARs in the shared and common class loaders for extensions. (markt)
  • fix Correct a threading issue in the generation of the list of standard authenticators during Context initialization that could lead to a web application failing to start if Contexts were started in parallel. (markt)
  • fix 52669: Correct regression that broke annotation processing in /WEB-INF/classes for web applications deployed as WARs, packageless classes and some embedding scenarios. The regression was introduced by the invalid assumptions made in the fix for 51741. (markt)
  • fix 52671: When dumping MBean data, skip attributes where getters throw NullPointerException. (markt)
  • Coyote:
  • 51543: Provide a meaningful error message when writing more response headers than permitted. (markt)
  • fix 52547: Ensure that bytes written (which is used by the access log) is correctly reset after an HTTP 1.0 request has been processed. (markt)
  • code Minor refactoring to reduce code duplication in the HTTP connectors. (markt)
  • fix 52606: Ensure that POST bodies are available for reply after FORM authentication when using the AJP connectors. (markt)
  • Jasper:
  • fix 52474: Ensure that leading and trailing white space is removed from listener class names when parsing TLD files. (markt)
  • fix 52480: When converting class path entries from URLs to files/directories, ensure that any URL encoded characters are converted. Fixes JSP compilation with javac when Tomcat is installed at a path that includes spaces. (markt)
  • fix 52666: Correct coercion order in EL when processing the equality and inequality operators. (markt)
  • Web Applications:
  • Improve BUILDING.txt. Update instructions for building. Add instructions for using Checkstyle and running the tests. (kkolinko)
  • add 38216: Improve handling of null return values in the JMX proxy servlet which is part of the Manager application. (kkolinko)
  • fix 52515: Make it clear in the Realm how-to in the documentation web application that digested password storage when using DIGEST authentication requires that MD5 digests are used. (markt)
  • fix 52634: Fix typos in JSP examples.
  • fix 52641: Remove mentioning of ldap.jar from docs.
  • jdbc-pool:
  • Fix code style issues and enable Checkstyle checks for jdbc-pool when it is built within Tomcat. (kkolinko)
  • fix 51582 Correct set and reset the query cache to avoid NPE (fhanik)
  • Other:
  • Update Commons Daemon to 1.0.9 to resolve 52548 which meant that services created with service.bat did not set the catalina.home and catalina.base system properties. (markt)
  • Implement check for correct end-of-line characters in the source files. It is run as separate target in build.xml. (kkolinko)

New in Apache Tomcat 7.0.25 (Jan 23, 2012)

  • Web applications:
  • fix: Restore format of the first line of error message for JMX proxy servlet in case scripts were depending on it. (markt)
  • Other:
  • fix: When building a Windows installer do not copy whole "res" folder to output/dist, but only the files that we need. Apply fixcrlf filter only after the files are copied, so that INSTALLLICENSE file had correct line ends. (kkolinko)
  • update: Remove res/License.rtf. The file that is actually shown by the Windows installer in res/INSTALLLICENSE. (kkolinko)
  • add: Automate the OpenPGP signature generation for the release process. (markt)
  • fix: Don't exclude directories named target from the build process. (rjung)

New in Apache Tomcat 7.0.24 (Jan 23, 2012)

  • Catalina:
  • add: Provide greater control over the logging of errors triggered by invalid input data (i.e. data over which Tomcat has no control). (markt/kkolinko)
  • fix: Fix ClassCastException in an Alias added to existing host through JMX. (kkolinko)
  • fix: Do not throw IllegalArgumentException from parseParameters() call when chunked POST request is too large, but treat it like an IO error. The FailedRequestFilter filter can be used to detect this condition. (kkolinko)
  • fix: Don't allow web applications to package classes from the javax.el package. Patch provide by pid. (markt)
  • fix: Fix regression caused by the addition of the threaded component start (46264) that triggered a deadlock on startup if no Realm was configured. (markt)
  • fix: Correctly handle the case when antiResourceLocking is enabled at the Context level when unpackWARs is disabled at the Host level. (markt)
  • fix: In ExtendedAccessLogValve when printing %-encoded value of a parameter, use UTF-8 encoding to convert parameter value to bytes instead of platform default encoding. (markt/kkolinko)
  • fix: Allow web applications that do not have a login configuration to participate in a SSO session. Patch provided by Brian Burch. (markt)
  • fix: When using sendfile, use the number of bytes requested to be written to the response in the access log valve for bytes written rather than recording a value of zero. (markt)
  • fix: Reduce log level for class loading errors during @HandlesTypes processing to debug. (markt)
  • fix: Improve performance when large numbers of single characters and/or small strings are written to the response via a Writer. (markt)
  • fix: Do not fail with parameter parsing when debug logging is enabled. (kkolinko)
  • fix: Do not flag extra '&' characters in parameters as parse errors. (kkolinko)
  • fix: Reduce log level for the message about hitting maxParameterCount limit from WARN to INFO. (kkolinko)
  • fix: Ensure that the correct host is used when configuring logging when Tomcat is embedded. (markt)
  • update: Align the Servlet 3.0 implementation with the changes defined in the first maintenance release (also know as Rev. A).
  • fix: Improve JMX names for objects related to Connectors that have the address attribute set. (markt)
  • fix: Remove some stale attributes from MBeans. (rjung)
  • code: Move destruction of ContainerBase objects to ContainerBase to ensure that they are destroyed. (markt)
  • fix: Change the behaviour of the default Realm in the embedded use case so it is set once on the Engine rather than on every Context thereby avoiding the Lifecycle issues with having the same Realm set on multiple Contexts. (markt)
  • add: Provide a new Realm implementation, the NullRealm, that does not contain any users and is used as the default Realm implementation (rather than the JAAS Realm which was used prior to this change) if no Realm is specified. (markt)
  • fix: Don't assume file based URLs when checking last modified times for global and host level web.xml files. Patch provided by violetagg. (markt)
  • add: Add test cases for the BASIC and NonLogin Authenticators when not using SSO. Patch provided by Brian Burch. (markt)
  • Coyote:
  • add: Add support for automatic binding to a free port by a connector if the special value of zero is used for the port. This is mainly useful in embedded and testing scenarios. (markt)
  • update: Remove obsolete emptySessionPath JMX attribute. (rjung)
  • fix: Correct error in fix for 49683. (markt)
  • fix: Ensure that the process of unlocking the acceptor thread does not trigger processing of the connection as if it were a valid request. (markt)
  • Jasper:
  • fix: Add setter for entityResolver in ParserUtils. This is mainly useful when jasper and dtds are in different class loaders. (mturk)
  • fix: Ensure that the order of multiple prelude/coda values for JSP pages is respected. (markt)
  • fix: Only handle

New in Apache Tomcat 7.0.23 (Nov 26, 2011)

  • Catalina:
  • 46264: Add the ability to start and stop containers (primarily Contexts) using a thread pool rather than a single thread. This can significantly improve start and stop time. Based on patches by Joe Kislo and Felix Schumacher. (markt)
  • 50570: Enable FIPS mode to be set in AprLifecycleListener. Based upon a patch from Chris Beckey. (schultz/kkolinko)
  • 51744: Throw the correct exception if an application attempts to modify the associated JNDI context. (markt)
  • 51744: Add an option to the StandardContext that allows exception throwing when an application attempts to modify the associated JNDI context to be disabled. (markt)
  • 51910: Prevent NPE on connector stop if Comet applications are being used without the CometConnectionManagerValve. (markt)
  • 51940: Do not limit saving of request bodies during FORM authentication to POST requests since any HTTP method may include a request body. Based on a patch by Nicholas Sushkin. (markt/kkolinko)
  • 51956: RemoteAddrFilter used getRemoteHost instead of getRemoteAddr when filtering Comet events. (schultz)
  • 51952: Make the inclusion of a response body with a redirect response introduced to address 41718 optional and disabled by default due to the side-effects of including a body with the response in this case. (markt)
  • 51972: Correctly handle protocol relative URLs when used with sendRedirect(). (markt)
  • Simplify the deployment code and use full paths in log messages to remove any ambiguity in where a context is being deployed from. (markt)
  • 52009: Fix a NPE during access log entry recording when an error occurred during the processing of a Comet request. (markt)
  • In OneLineFormatter log formatter in JULI always use the US locale to format the date (esp. the month names). (rjung)
  • Cache the results of parsing the global and host level web.xml files to improve web application start time. (markt)
  • 52042: Correct threading issue in annotation caching that could lead to an NPE if multiple threads were processing the same class hierarchy for annotations. (markt)
  • Correct additional threading and premature clearance issues with the annotation cache. (markt)
  • Correct a regression in the fix for 49779 that parameters POSTed by an unauthenticated user to a page that required FORM authentication were lost during the authentication process. (markt)
  • 52055: Ensure that the input and output buffers are correctly reset between keep-alive requests when using Servlet 3.0 asynchronous request processing. (markt)
  • Ensure changes to the configuration of the RemoteHostValve and the RemoteAddrValve via JMX are thread-safe. (markt)
  • Ensure the the memory leak protection for the HttpClient keep-alive always operates even if the thread has already stopped. (markt)
  • Remove the Java 1.2 specific error handling around the adding of the shutdown hook. (markt)
  • Correct errors in i18n resources and resource usage that meant some messages were either not used or were incorrectly formatted. (markt)
  • Replace the use of deprecated auth method names from authenticator.Constants with the auth method names from HttpServletRequest. (kkolinko)
  • Make configuration issues for security related Valves and Filters result in the failure of the valve or filter rather than just a warning message. (markt)
  • Improve performance of parameter processing for GET and POST requests. Also add an option to limit the maximum number of parameters processed per request. This defaults to 10000. Excessive parameters are ignored. Note that FailedRequestFilter can be used to reject the request if some parameters were ignored. (markt/kkolinko)
  • 52091: Address performance issues related to lock contention in StandardWrapper. Patch provided by Taiki Sugawara. (markt)
  • Switch to using Collections.enumeration() rather than custom code that does the same thing. (markt)
  • 52113: Don't assume presence of context.xml file with JMX deployment. (markt)
  • In RequestFilterValve (RemoteAddrValve, RemoteHostValve): refactor value matching logic into separate method and expose this new method isAllowed through JMX. (kkolinko)
  • 52156: Ensure that getServletContext().getResource(path) returns the correct resource when path contains /../ sequences or any other sequences that require normalization. (markt)
  • Report existence of HTTP request parameter parsing errors via new special ServletRequest attribute, org.apache.catalina.parameter_parse_failed. (kkolinko)
  • New filter FailedRequestFilter that will reject a request if there were errors during HTTP parameter parsing. (kkolinko)
  • Improve special attributes handling in Request object by using hash table lookup instead of series of string comparisons. (kkolinko)
  • Deprecate unused methods in IntrospectionUtils class. (kkolinko)
  • Improve processing of errors that are wrapped in InvocationTargetException. Rethrow fatal errors that must be rethrown. (kkolinko)
  • Improve handling of failed web application deployments during automatic deployment. Once deployment of a web application fails in one form (e.g. WAR), no further attempt (e.g. directory) will be made to deploy that web application. The base Lifecycle implementation has been improved to allow failed web applications to be started once the configuration issues have been resolved. Any changes to a context.xml file (global, per host or web application specific) will now result in a redeploy of the affected web application(s) that ensures that any changes are correctly applied rather than a reload which ignores changes in context.xml files. (markt/kkolinko)
  • 52173: Improve Javadoc for delegate attribute of WebappClassLoader. Based on a patch by bmargulies. (markt)
  • Add denyStatus attribute to RequestFilterValve (RemoteAddrValve, RemoteHostValve valves) and RequestFilter (RemoteAddrFilter, RemoteHostFilter filters). It allows to use different HTTP response code when rejecting denied request. E.g. 404 instead of 403. (kkolinko)
  • Slightly improve performance of UDecoder.convert(). Align / handling between implementations. (kkolinko)
  • Coyote
  • 51881: Correctly complete Comet requests when the Comet END event is triggered asynchronously. (markt)
  • 51905: Fix infinite loop in AprEndpoint shutdown if acceptor unlock fails. Reduce timeout before forcefully closing the socket from 30s to 10s. (kkolinko)
  • 51912: Fix HTTP header processing in NIO HTTP connector. (kkolinko)
  • Improve MimeHeaders.toString(). (kkolinko)
  • Fix threading issue in NIO connectors during shutdown that meant Comet connections were not always shut down cleanly. (markt)
  • In HTTP connectors: self-guard against using a non-recycled input buffer. Requests will be rejected with response status 400. (kkolinko)
  • 52121: Fix possible output corruption when compression is enabled for a connector and the response is flushed. Includes a test case provided by David Marcks. (kkolinko/markt)
  • Improve multi-byte character handling in Coyote output for HTTP and AJP. (rjung)
  • Refactor acceptor unlock code to reduce waiting time during connector pause and stop. (markt)
  • Jasper:
  • Correct possible (but very small) memory leak when using maxLoadedJsps to limit the number of JSPs loaded at any one time. (markt)
  • 52051: Better handling of missing resource problems with non-standard Servlet mappings so that a 404 response is returned to the client rather than a 500 response. (markt)
  • 52091: Address performance issues related to log creation in TagHandlerPool. Patch provided by Taiki Sugawara. (markt)
  • Switch to using Collections.enumeration() rather than custom code that does the same thing. (markt)
  • Cluster:
  • Avoid an unnecessary session ID change notice. Notice of changed session ID by JvmRouteBinderValve is unnecessary to BackupManager. In BackupManager, change of session ID is replicated by the call of a setId() method. (kfujino)
  • Fix duplicate resetDeltaRequest() call in DeltaSession.setId(String). (kkolinko)
  • Work around a known JVM bug that is fixed in 1.7.0_01 but still present in 1.6.0_29 and was triggering intermittent unit test failures for org.apache.catalina.tribes.group. TestGroupChannelMemberArrival.testMemberArrival. The bug affects any components that use NIO although it was more likely to be observed in the clustering module than the HTTP or AJP NIO connector. (markt)
  • When Context manager does not exist, no context manager message is replied in order to avoid timeout (default 60sec) of GET_ALL_SESSIONS sync phase. (kfujino)
  • Fix setting maxInactiveInterval, sessionIdLength and processExpiresFrequency for cluster managers. Use setter when setting maxActiveSessions. (rjung)
  • Web applications:
  • 50923: Use distinct background color for code tag in Tomcat documentation, for better readability. (kkolinko)
  • 51630: Fix bug in async0 example that triggered an IllegalStateException in the application log. (markt)
  • 52025: Add additional information regarding DriverManager, the service provider mechanism and memory leaks. (markt)
  • 52049: Improve setup instructions for running as a Windows service: remove references to specific Windows operating systems - it easily becomes dated; correct information on how a JRE is identified and selected. (markt)
  • 52172: Clarify Tomcat build instructions. Patch provided by bmargulies. (kkolinko)
  • Other:
  • Update the package re-named copy of Commons BCEL (formerly Jakarta BCEL) to the latest code from Commons BCEL trunk. (markt)
  • Remove some unused code from the packaged renamed Commons BCEL. (markt)
  • 52015: In jdbc-pool: JdbcInterceptor passes not 'this' but 'proxy' to getNext().invoke. (kfujino)
  • 52059: In Windows uninstaller: Do not forget to remove Tomcat keys from 32-bit registry on deinstallation. (kkolinko)
  • Start the process of deprecating unused and unnecessary code that will be removed in the next major release (8.0.x). (markt)
  • Ignore .git directory when building the source distributive. (markt)
  • Remove trailing whitespace from the default configuration files. (kkolinko)
  • Improve RUNNING.txt. (kkolinko)
  • Update optional Checkstyle library to 5.5. (kkolinko)
  • In test suite: add LoggingBaseTest class to allow use of Tomcat logging configuration in tests that do not start Tomcat. (kkolinko)
  • In test suite: speed up TestGroupChannelSenderConnections. Remove 48 seconds worth of waits. (kkolinko)
  • 52148: Add tomcat-coyote.jar to catalina-tasks.xml as this JAR is now required by the Ant tasks. Patch provided by Volker Krebs. (markt)
  • In jdbc-pool: Improve handling of Errors that originate from methods invoked through reflection. In TrapException interceptor: rethrow Error as is, without wrapping it in a RuntimeException. (kkolinko)
  • In jdbc-pool: Unwrap InvocationTargetException if it is caught in ResultSetProxy, like we do it elsewhere. (kkolinko)
  • When building jdbc-pool from within Tomcat, use Tomcat's output directory location. This allows to move all build output away from the source tree. (kkolinko)

New in Apache Tomcat 7.0.22 (Oct 5, 2011)

  • Catalina:
  • 51550: An additional change that ensures any exceptions thrown by an Authenticator (or any other Valve configured for the Context) will be handled by the custom error pages for the Context if an appropriate error page is configured. (markt)
  • 51580: Added a nicer error message when a WAR file contains filenames not properly encoded in UTF-8. (schultz)
  • 51687: Added (optional) protection against sun.java2d.Disposer thread pinning a WebappClassLoader into memory in the JreMemoryLeakPreventionListener. (schultz)
  • 51741: Fixes a problem with Eclipse WTP "Serve modules without publishing" feature where applications failed to access resources when using getResource() on the classloader. (slaurent)
  • 51744: Prevent application code from closing the associated JNDI context while the application is running. (markt)
  • Correct a regression with the fix for 51653 that broke custom error pages for 4xx responses from the Authenticators. Error handling and request listeners are now handled in the StandardHostValve to ensure they wrap all Context level activity. (markt)
  • 51758: The digester (used for processing XML files) used the logger name org.apache.commons.digester.Digester rather than the expected org.apache.tomcat.util.digester.Digester. The digester has been changed to use the expected logger name. (markt/kkolinko)
  • 51774: Fix incorrect cached method signature that prevented session tracking modes from being defined in web.xml when running under a security manager. (markt)
  • Add an annotation cache to the DefaultInstanceManager that improves performance for applications that make use of a lot of non-poolable objects (e.g. tag files) that need to be scanned for annotations when created. (markt)
  • Use the specification compliant request attribute of javax.servlet.request.ssl_session_id to access the SSL session ID and deprecated the Tomcat specific request attribute. (markt)
  • Allow to overwrite the check for distributability of session attributes by session implementations. (rjung)
  • Add Java 7 sunec.jar and zipfs.jar to the list of JARs to skip when scanning for TLDs and web fragments. (rjung)
  • 51862: Added a classesToInitialize attribute to JreMemoryLeakPreventionListener to allow pre-loading of configurable classes to avoid some classloader leaks. (slaurent)
  • Reduce visibility of static field ManagerBase.name and make it final. (kkolinko)
  • Add thread name to juli OneLineFormatter. (rjung)
  • Ensure Servlets that implement ContainerServlet always get treated as restricted. (markt)
  • Ensure that the access log always uses the correct value for the remote IP address associated with the request and that requests with multiple errors do not result in multiple entires in the access log. (markt)
  • Coyote:
  • Remove unused and undocumented socketCloseDelay attribute from NIO connector. (markt)
  • 49683: Support separate connection and keep-alive timeouts for the APR/native connector HTTP and AJP connectors. (markt)
  • Further re-factoring of the HTTP connectors to align the BIO, NIO and APR implementations. (markt)
  • 51794: Fix race condition in NioEndpoint. (fhanik)
  • 51811: Correct SSL configuration property name from sslImplemenationName to sslImplementationName. (rjung)
  • Fix a timing issue in NIO connector that meant that stopping a connector did not trigger a Comet END event if the associated processor was processing a READ event when the connector was stopped. (markt)
  • Replace unneeded call that iterated events queue in NioEndpoint.Poller. (kkolinko)
  • 51860: Fix issues if using NIO with a custom SSLImplementation. Based on a suggestion by Roman Tsirulnikov. (markt)
  • Allow the BIO HTTP connector to be used with SSL when running under Java 7. (markt)
  • Don't send AJP CPONG if endpoint is already paused. (rjung)
  • Align APR AJP connector with NIO one. Send 503 if endpoint is paused. (rjung)
  • Accept AJP request even if endpoint is paused, if CPING was successful. (rjung)
  • Jasper:
  • When unloading JSPs due to configuration of the maxLoadedJsps initialisation parameter, the unloading code was retaining a reference to the to the unloaded JSP preventing the associated class from being unloaded until the JSP that replaced it was itself unloaded. (markt)
  • 51852: Correct two problems in the handling of varargs methods with the BeanELResolver. The first meant the wrong method was sometimes called and the second that an ArrayIndexOutOfBoundsExceptions could be thrown. Patch (including a test case) provided by Matt Benson. (markt)
  • Cluster:
  • Refactor cluster manager configuration: move handling of common attributes to base class. (kfujino, rjung)
  • New cluster manager attribute sessionAttributeFilter allows to filter which session attributes are replicated using a regular expression applied to the attribute name. (rjung)
  • Web applications:
  • Correct the documentation for connectionLinger attribute for the AJP and HTTP connectors. (markt)
  • Document caveat of using RemoteAddrValve with IPv6 addresses. (kkolinko)
  • Other:
  • In jdbc-pool: Avoid IllegalArgumentException when setting maxActive less than or equal to 0. ArrayBlockingQueue doesn't allow capacity of 0 or less. (kfujino)
  • 48392 (r1169796): In jdbc-pool: Fix typo in StatementDecoratorInterceptor. (fhanik)
  • 51139: In jdbc-pool: validatorClassName and suspectTimeout are ignored. In order to support them correctly, validatorClassName and suspectTimeout are added to a property list. (kfujino)
  • 51786: In jdbc-pool: Discarded connection is not active in a pool any longer. It removes from the active connection list. (kfujino)
  • 51871: In jdbc-pool: Fix dependency in Maven POM file of tomcat-jbdc. (kkolinko)
  • Update the "test" target in the default build file to report a test failure only after all available connector variants (bio, nio, apr) have been tested. Do not stop after first connector that fails. (kkolinko)
  • 51887: When running the unit tests, use a fast but insecure random number source for session ID generation to reduce the delays caused by waiting for entropy. (kkolinko/markt)
  • Code clean-up to further reduce the number of warnings reported by Eclipse, FindBugs and CheckStyle. (markt/kkolinko)

New in Apache Tomcat 7.0.21 (Oct 5, 2011)

  • Catalina:
  • 41718: Include a response body when sending a redirect. (markt)
  • 51640: Improve the memory leak prevention for leaks triggered by java.sql.DriverManager. (markt)
  • 51644: Fix annotation scanning for contexts with a multi-level context path such as /a/b. (markt)
  • Unregisters MBean of DataSource when web application stops. (kfujino)
  • 51650: Code clean-up. Patch provided by Felix Schumacher. (markt)
  • 51653: Move application level error page handling from the Host to the Context. This ensures that application error page handling is completed before the requestDestroyed event of any ServletRequestListener is fired. (markt)
  • 51654: Improve handling of invalid appBase settings for Host elements. (markt)
  • 51658: Fix possible NPE when logging a failed request. Based on a suggestion by Felix Schumacher. (markt)
  • 51688: JreMemoryLeakPreventionListener now protects against AWT thread creation. (schultz)
  • 51712: Ensure cache control headers are sent when appropriate even if the request is secure. Patch provided by Michael Zampani. (markt)
  • 51713: Improve message that is logged if there is an error in the value of protocol in a Connector. (kkolinko)
  • 51739: When using a landing page with FORM authentication ensure that the request has a valid HTTP method. (markt)
  • Coyote:
  • 51641: Use correct key when removing processor instances from the connections map during clean-up. Patch provided by zhh. (mark)
  • More changes to align the code between the different HTTP connectors. (markt)
  • Ensure AjpMessage headers are correct for the direction of the message. (markt)
  • Code clean-up and re-factoring to reduce duplicate code in the AJP processor implementations. (markt)
  • Detect incomplete AJP messages and reject the associated request if one is found. (markt)
  • 51698: Fix CVE-2011-3190. Prevent AJP message injection. (markt)
  • Jasper:
  • 41673: Use platform line-endings when reporting compilation errors. (markt)
  • Cluster:
  • 51736: Make rpcTimeout configurable in BackupManager. (kfujino)
  • Web applications
  • 51649: Update the documentation web application to include the ThreadLocal leak prevention listener. (markt)
  • Other:
  • 51583 (r1157874, r1162102): Fix shutdown delay in jdbc-pool. (fhanik/kkolinko)
  • 51558: Don't force the use of StandardManager when using any of the Tomcat#addWebapp() methods. (markt)
  • 51704: Make use of File#mkdirs() more robust. (markt)

New in Apache Tomcat 7.0.20 (Aug 12, 2011)

  • Catalina:
  • Corrected missing comma in the value of jarsToSkip property in conf/catalina.properties file, which caused tomcat-jdbc.jar and commons-beanutils*.jar to be not ignored when scanning jars for tag libraries. (kkolinko)
  • 41709: Provide exception messages where no message is provided currently for IllegalStateExcpetions triggered by calling HttpServletResponse methods when the reponse is committed. (markt)
  • 51509: Fix potential concurrency issue in CSRF prevention filter that may lead to some requests failing that should not. (markt)
  • 51518: Correct error in web.xml parsing rules for the tag when using absolute ordering. (markt)
  • Move the SetCharacterEncoding filter from the examples web application to the org.apache.catalina.filters package so it is available for all web applications. (markt)
  • 51550: Internal errors in Tomcat components that process requests before they are passed to a web application, such as Authenticators, now return a 500 response rather than a 200 response. (markt)
  • 51555: Allow destroy() to be called on Lifecycle components that are in the initialized state. (markt)
  • Add x-threadname pattern format token to ExtendedAccessLogValve to log the current request thread name. Based on a patch from Felix Schumacher. (timw)
  • 51584: Ensure file paths are encoded/decoded when translated to/from URLs when working with resources from a Context so special characters don't cause issues. (markt)
  • 51586: Expand error handling to cover anything that is recoverable (or might be recoverable) when loading classes during HandlesTypes processing. (markt)
  • 51588: Make it easier to extend the AccessLogValve to add support for custom elements. (markt)
  • Ensure that calls to StandardWrapper methods() that may trigger creation of a Servlet instance always do so in way that correctly instantiates a Servlet instance. (markt)
  • In JDBCStore: Committing connection if autoCommit is false. Make sure committed connection is returned to the pool if datasource is enabled. (kfujino)
  • Split condition attribute of AccessLogValve into two, conditionIf and conditionUnless. Implement conditional logging that logs only if a request attribute is present. (kkolinko)
  • Allow to have several AccessLogValve instances in the same scope (e.g. in the same Context). (kkolinko)
  • 51610: If an unchecked exception occurs during a lifecycle transition (e.g. web application start) ensure that the component is put into the failed state. (markt)
  • 51614: Avoid calling store.load() and session.expire() twice in PersistentManager when expiring sessions. (kfujino)
  • Prevent spurious log warnings on container stop if a child component has previously failed. (markt)
  • Add missing getter and setter for the alwaysUseSession attribute of the authenticators. (markt)
  • Coyote:
  • 49595: Prevent JVM crash with the AJP APR connector when flushing a closed socket. (jfclere)
  • 50394: Return -1 instead throwing an exception when encountering an EOF while processing an input stream with the HTTP APR connector. (jfclere)
  • Correctly handle a connectionTimeout value of -1 (no timeout) for the HTTP NIO and AJP NIO connectors. (markt)
  • 51503: Add additional validation that prevents a connector from starting if it does not have a port > 0. (markt)
  • 51557: Ignore HTTP headers that do not comply with RFC 2616 and use header names that are not tokens. (markt)
  • Improve error handling for HTTP APR if an error occurs while using sendfile. (markt)
  • Ensure that when using sendfile, HTTP APR sockets are not added to multiple pollers. This may cause errors during shutdown. (markt)
  • Set reuse flag of final AJP END_RESPONSE packet to 0 if we plan to close the connection. (rjung)
  • Correctly indicate if socket is closing when calling recycle for the AJP NIO processor. Note since the flag is unused in this case there were no bugs triggered by the re-factoring error. (rjung)
  • Jasper:
  • 51532: JSP files with dependencies in JARs were recompiled on every access leading to poor performance. (markt)
  • 51544: Correctly resolve bean methods in EL so accessible methods that are overridden by inaccessible methods do not cause an IllegalAccessException. (markt)
  • Web applications:
  • 41498: Add the allRolesMode attribute to the Realm configuration page in the documentation web application. (markt)
  • 48997: Fixed some typos and correct cross-referencing to the HTTP Connector documentation with the SSL How-To page of the documentation web application. (markt)
  • 49122: Improvements and fixes for index page for ROOT web application. Based on a patch provided by pidster. (markt)
  • 51516: Correct documentation web application to show correct system property name for changing the name of the SSO session cookie. (markt)
  • Configure the Manager and Host Manager web applications with the Set Character Encoding Filter to make the default request character encoding UTF-8 to improve i18n support. Note that best results will be obtained if the connector is also configured with URIEncoding="UTF-8".(markt)
  • Update the documentation web application to be even more explicit about the implications of setting the path attribute on a Context element in server.xml. (markt)
  • 51561: Update the Realm page within the documentation web application to recommend the use of digest.[bat|sh] to generate digests rather than calling RealmBase directly. (markt)
  • 51567: Update the class loading page of the documentation web application to include information on the search order for the common class loader when separate values are used for $CATALINA_HOME and $CATALINA_BASE. (markt)
  • Improve class loading documentation and logging documentation. (kkolinko)
  • Add information to the security page of the the documentation web application for the ciphers attribute of the Connector element. (markt)
  • Other:
  • 51503: Add additional validation to Windows installer that ensure that the shutdown port, HTTP port and AJP port are all specified during the install process. (markt)
  • 51531: Update sample Eclipse classpath file to reflect updated ECJ jar. Patch provided by Ian Brandt. (markt)
  • Convert Tomcat unit tests to JUnit 4. (kkolinko)
  • Update optional CheckStyle library to 5.4. (kkolinko)
  • Remove resolveHosts attribute from AccessLogValve configuration in the default server.xml. It was documented in 7.0.19 that it has no effect. (kkolinko)
  • Simplify mapping for jsp servlet in the default web.xml. (kkolinko)
  • Correctly handle uninstall with the Windows installer of the service is installed with a name that contains a '-' character. (markt)
  • 51598: Prevent direct invocation of the Windows uninstaller without a service name from executing since the uninstall will not be complete. (markt)
  • Use Tomcat icon (cat) instead of Apache Commons Daemon (feather) one in the list of uninstallable programs on Windows. (kkolinko)
  • Update to Apache Commons Daemon 1.0.7. (markt)
  • 51621: Add additional required JARs to the deployer distribution. (markt)
  • Fix a small number of warnings reported by FindBugs. (markt)
  • Update to version 1.1.22 of the native component for the AJP APR/native and HTTP APR/native connectors. (markt)

New in Apache Tomcat 7.0.19 (Jul 20, 2011)

  • Catalina:
  • Add option to activate access log for unit tests. (rjung)
  • Fix regression in year number formatting for AccessLogValve. (rjung)
  • 46252: Allow to specify character set to be used to write the access log in AccessLogValve. (kkolinko)
  • 51494: Prevent an NPE when a long running request completes if the associated web application was destroyed while the request was processing. (markt)
  • Allow choosing a locale for timestamp formatting in AccessLogValve. (rjung)
  • When generating access logs for errors, log at the Context/Host level if a Context or Host can be identified for the failed request. (markt)
  • In JULI FileHandler and in AccessLogValve create a directory automatically when it is specified as a part of the file name, e.g. in the prefix attribute. Earlier this happened only if it was specified with the directory attribute. (kkolinko)
  • Log a failure if access log file cannot be opened. (kkolinko)
  • Use en_US as locale for timestamps in ExtendedAccessLogValve. (rjung)
  • Use en_US as locale for creationdate in WebdavServlet. (rjung)
  • Coyote:
  • 51477: Support all SSL protocol combinations in the APR/native connector. This only works when using the native library version 1.1.21 or later, which is not yet released. (rjung)
  • Various refactorings to reduce code duplication and unnecessary code in the connectors. (markt)
  • Correct regression introduced in 7.0.17 that triggered 400 entries in the AccessLog when using the AJP/BIO connector. (markt)
  • Fix regression producing invalid MBean names when using IPV6 addresses for connectors. (rjung)
  • Add missing thread name in RequestProcessor when Servlet 3 Async is used. Fixes null thread name in access log and JMX MBean. (rjung)
  • Fix CVE-2011-2526. Protect against infinite loops (HTTP NIO) and crashes (HTTP APR) if sendfile is configured to send more data than is available in the file. (markt)
  • Prevent NPEs when a socket is closed in non-error conditions after sendfile processing when using the HTTP NIO connector. (markt)
  • Cluster:
  • Remove unnecessary server.xml parsing code for old cluster implementation that does not ship as part of Tomcat 7. (markt)
  • Web applications:
  • Add additional information to the documentation web application on the benefits and remaining risks when running under a security manager. (markt)
  • 51490: Correct broken HTML in JSP tag plugin examples and improve the example to make failures more obvious. Based on suggestions by Charles. (markt)
  • Document ExtendedAccessLogValve. (rjung)
  • Correct default value of enableLookups for connectors and mention, that resolveHosts for the AccessLogValve is replaced by enableLookups. (rjung)
  • Other:
  • Update to Commons Daemon 1.0.6. (markt)
  • Update to Eclipse JDT Compiler 3.7. (markt)
  • Include jdbc-pool into tomcat release. (fhanik)