Changelog

Tomcat 9.0.52 (remm)

Catalina

  • Code: 65476: Correct an error in some code clean-up that mean that web application classes were not configured with the correct package. (markt)

not released Tomcat 9.0.51 (remm)

Catalina

  • Fix: 65411: Always close the connection when an uncaught NamingException occurs to avoid connection locking. Submitted by Ole Ostergaard. (remm)
  • Fix: 65433: Correct a regression in the fix for 65397 where a StringIndexOutOfBoundsException could be triggered if the canonical path of the target of a symlink was shorter than the canonical path of the directory in which the symlink had been created. Patch provided by Cedomir Igaly. (markt)
  • Add: 65443: Refactor the CorsFilter to make it easier to extend. (markt)
  • Fix: To avoid unnecessary cache revalidation, do not add an HTTP Expires header when setting adding an HTTP header of CacheControl: private. (markt)

Coyote

  • Fix: When writing an HTTP/2 response via sendfile (only enabled when useAsyncIO is true) the connection flow control window was sometimes ignored leading to various error conditions. sendfile now checks both the stream and connection flow control windows before writing. (markt)
  • Add: Add debug logging for writing an HTTP/2 response via sendfile. (markt)
  • Fix: Correct bugs in the HTTP/2 connection flow control management that meant it was possible for a connection to stall waiting for a connection flow control window update that had already arrived. Any streams on that connection that were trying to write when this happened would time out. (markt)
  • Fix: 65448: When using TLS with NIO, it was possible for a blocking response write to hang just before the final TLS packet associated with the response until the connection timed out at which point the final packet would be sent and the connection closed. (markt)
  • Fix: 65454: Fix a race condition that could result in a delay to a new request. The new request could be queued to wait for an existing request to finish processing rather than the thread pool creating a new thread to process the new request. (markt)
  • Fix: 65460: Correct a regression introduced in the previous release in the change to reduce the number of small HTTP/2 window updates sent for streams. A logic error meant that small window updates for the connection were dropped. This meant that the connection flow window slowly reduced over time until nothing could be sent. (markt)

Web applications

  • Fix: 65404: Correct a regression in the fix for 63362 that caused the server status page in the Manager web application to be truncated if HTTP upgrade was used such as when starting a WebSocket connection. (markt)

Other

  • Add: Improvements to Chinese translations contributed by ZhangJieWen and chengzheyan. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Japanese translations contributed by tak7iji. (markt)
  • Add: Improvements to Korean translations. (woonsan)
  • Fix: Use of GraalVM native images no longer automatically disables JMX support. JMX support may still be disabled by calling org.apache.tomcat.util.modeler.Registry.disableRegistry(). (markt)

2021-07-02 Tomcat 9.0.50 (remm)

Jasper

  • Fix: Jakarta to Javax backport issue in tests. (remm)

not released Tomcat 9.0.49 (remm)

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: 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

  • 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)
  • 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)

2021-06-15 Tomcat 9.0.48 (remm)

Coyote

  • Fix: Regression when generating reflection due to removed NIO classes in 9.0.47. (remm)

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)

not released Tomcat 9.0.47 (remm)

Catalina

  • Fix: 65301: RemoteIpValve will now avoid getting the local host name when it is not needed. (remm)
  • Fix: 65308: NPE in JNDIRealm when no userRoleAttribute is given. (fschumacher)
  • Add: #412: Add commented out, sample users for the Tomcat Manager app to the default tomcat-users.xml file. Based on a PR by Arnaud Dagnelies. (markt)
  • Add: #418: Add a new option, pass-through, to the default servlet's useBomIfPresent initialization parameter that causes the default servlet to leave any BOM in place when processing a static file and not to use the BOM to determine the encoding of the file. Based on a pull request by Jean-Louis Monteiro. (markt)
  • Update: Add cookieName attribute to the SSO valve to configure the SSO cookie name. (remm)
  • Fix: #419: When processing POST requests of type multipart/form-data for parts without a filename that are added to the parameter map in String form, check the size of the part before attempting conversion to String. Pull request provided by tianshuang. (markt)
  • Fix: 62912: Don't mutate an application provided content header if it does not contain a charset. Also remove the outdated workaround for the buggy Adobe Reader 9 plug-in for IE. (markt)
  • Fix: AprLifecycleListener does not show dev version suffix for libtcnative and libapr. (michaelo)
  • Update: Refactor principal handling in UserDatabaseRealm using an inner class that extends GenericPrincipal. (remm)
  • Fix: Enable the default doHead() implementation in HttpServlet to correctly handle responses where the content length needs to be represented as a long since it is larger than the maximum value that can be represented by an int. (markt)
  • Fix: Avoid synchronization on roles verification for the memory UserDatabase. (remm)
  • Fix: Fix the default doHead() implementation in HttpServlet to correctly handle responses where the Servlet calls ServletResponse.reset() and/or ServletResponse.resetBuffer(). (markt)
  • Fix: Fix the default doHead() implementation in HttpServlet to correctly handle responses generated using the Servlet non-blocking API. (markt)

Coyote

  • Add: 64943: Add support for Unix Domain Sockets to org.apache.coyote.http11.Http11AprProtocol. Depends on tomcat-native 1.2.26 and up. (minfrin)
  • Fix: 65303: Fix a possible NullPointerException if an error occurs on an HTTP/1.1 connection being upgraded to HTTP/2 or on a pushed HTTP/2 stream. (markt)
  • Fix: 65311: Fix a race condition in the NioBlockingSelector that could cause a delay to select operations. (markt)
  • Update: Simplify AprEndpoint socket bind for all platforms. (michaelo)
  • Update: Add back simplification of NIO block read and write, now better validated in Tomcat 10. (remm)
  • Fix: Optimize NIO selector handling for Java 11. (remm)
  • Fix: 65340: Add missing check for a negative return value for Hpack.decodeInteger in the HpackDecoder, which could cause a NegativeArraySizeException exception. Submitted by Thomas, and verified the fix is present in the donated hpack code in a further update. (remm)
  • Add: Add debug logging for HTTP/2 HPACK header decoding. (markt)
  • Fix: Correct parsing of HTTP headers consisting of a list of tokens so that a header with an empty token is treated consistently regardless of whether the empty token is at the start, middle or end of the list of tokens. (markt)
  • Fix: Remove support for the identity transfer encoding. The inclusion of this encoding in RFC 2616 was an error that was corrected in 2001. Requests using this transfer encoding will now receive a 501 response. (markt)
  • Fix: Process transfer encoding headers from both HTTP 1.0 and HTTP 1.1 clients. (markt)
  • Fix: Ensure that if the transfer encoding header contains the chunked, that the chunked encoding is the final encoding listed. (markt)

Jasper

  • Code: Review code used to generate Java source from JSPs and tags and remove code found to be unnecessary. (markt)
  • Code: Refactor use of internal ChildInfo class to use compile time type checking rather than run time type checking. (markt)
  • Fix: 65358: Improve expression language method matching for methods with varargs. Where multiple methods may match the provided parameters, the method that requires the fewest varargs is preferred. (markt)
  • Add: 65332: Add a commented out section in catalina.policy that provides the necessary permissions to compile JSPs with javac when running on Java 9 onwards with a security manager. It is commented out as it will cause errors if used with earlier Java versions. (markt)

WebSocket

  • Fix: 65317: When using permessage-deflate, the WebSocket connection was incorrectly closed if the uncompressed payload size was an exact multiple of 8192. Based on a patch provided by Saksham Verma. (markt)
  • Fix: 65342: Correct a regression introduced with the fix for 65262 that meant Tomcat's WebSocket implementation would only work with Tomcat's implementation of the Java EE WebSocket API. (markt)

Web applications

  • Fix: Improve the description of the maxConnections and acceptCount attributes in the Connector section of the documentation web application. (markt)

Other

  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)
  • Fix: 65362: Correct a regression in the previous release. The change to create OSGi Require-Capability sections in manifests for Jakarta API JARs manually rather than with bnd annotations did not add the necessary manual entries to the embedded JARs. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.30. Also update the minimum recommended version to 1.2.30. (markt)

2021-05-12 Tomcat 9.0.46 (markt)

Catalina

  • Fix: Allow APR connector creation using the listener with the flag and the default HTTP/1.1 protocol. (rjung/remm)
  • 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 9.0.44 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)
  • Fix: Improve the SSLValve so it is able to handle escaped client certificate headers from Nginx. Based on a patch by Florent Guillaume. (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

  • Fix: Create OSGi Require-Capability sections in manifests for Jakarta API JARs manually rather than via the aQute.bnd.annotation.spi.ServiceConsumer annotation as this triggers TCK failures for downstream consumers of the API JARs. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.28. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.22. (remm)
  • Update: Update the CXF module to Apache CXF 3.4.3. (remm)
  • 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)

2021-04-06 Tomcat 9.0.45 (markt)

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 9.0.44 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)

2021-03-10 Tomcat 9.0.44 (markt)

Catalina

  • Fix: Revert an incorrect fix for a potential resource leak that broke deployment via the Ant deploy task. (markt)
  • Fix: Improve error message for failed ConfigurationSource lookups in the Catalina implementation. (remm)
  • Fix: 64938: Align the behaviour when null is passed to the ServletResponse methods setCharacterEncoding(), setContentType() and setLocale() with the recent clarification from the Jakarta Servlet project of the expected behaviour in these cases. (markt)
  • Fix: 65135: Rename Context method isParallelAnnotationScanning to getParallelAnnotationScanning for consistency and ease of use in JMX descriptors. (remm)
  • Fix: Ensure that the AsyncListener.onError() event is triggered when a I/O error occurs during non-blocking I/O. There were some cases discovered where this was not happening. (markt)
  • Add: Make the non-blocking I/O error handling more robust by handling the case where the application code swallows an IOException in WriteListener.onWritePossible() and ReadListener.onDataAvailable(). (markt)
  • Fix: Correct syntax error in output of JsonErrorReportValve. Pull request provided by Viraj Kanwade. (markt)
  • Code: Make the StandardContext.postWorkDirectory() protected rather than private to help users wishing to customise the default work directory behaviour. (markt)

Coyote

  • Fix: 65118: Fix a potential NullPointerException when pruning closed HTTP/2 streams from the connection. (markt)
  • Fix: Avoid NullPointerException when a secure channel is closed before the SSL engine was initialized. (remm)
  • Fix: Ensure that the ReadListener's onError() event is triggered if the client closes the connection before sending the entire request body and the server is ready the request body using non-blocking I/O. (markt)
  • Fix: 65137: Ensure that a response is not corrupted as well as incomplete if the connection is closed before the response is fully written due to a write timeout. (markt)
  • Fix: Related to bug 65131, make sure all errors from OpenSSL are fully cleared, as there could be more than one error present after an operation (confirmed in the OpenSSL API documentation). (remm)
  • Fix: Make handling of OpenSSL read errors more robust when plain text data is reported to be available to read. (markt)
  • Fix: Correct handling of write errors during non-blocking I/O to ensure that the associated AsyncContext was closed down correctly. (markt)

Web applications

  • Fix: Remove the restriction that prevented the Manager web application deploying different web applications in parallel. (markt)

Other

  • Update: Update the OWB module to Apache OpenWebBeans 2.0.21. (remm)
  • Update: Update the CXF module to Apache CXF 3.4.2. (remm)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)
  • Add: Improvements to Brazilian Portuguese translations. Provided by Thiago. (mark)
  • Add: Improvements to Russian translations. Provided by Azat. (mark)
  • Add: Improvements to Chinese translations. Provided by shawn. (mark)
  • Update: Update to bnd 5.3.0. (markt)

2021-02-02 Tomcat 9.0.43 (markt)

Catalina

  • Fix: 65106: Fix the ConfigFileLoader handling of file URIs when running under a security manager on some JREs. (markt)

Coyote

  • Fix: Ensure that SNI provided host names are matched to SSL virtual host configurations in a case insensitive manner. (markt)
  • Fix: 65111: Free direct memory buffers in the APR connector. (remm)

not released Tomcat 9.0.42 (markt)

Catalina

  • Fix: 60781: Escape elements in the access log that need to be escaped for the access log to be parsed unambiguously. (fschumacher/markt)
  • Add: 64110: Add support for additional TLS related request attributes that provide details of the protocols and ciphers requested by a client in the initial TLS handshake. (markt)
  • Add: Let the RemoteCIDRValve inherit from RequestFilterValve and support all of its features. Especially add support for connector specific configuration using addConnectorPort. (rjung)
  • Add: 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 protocol used is AJP or HTTP in combination with the RemoteIp(Valve|Filter), the peer address might differ from the remoteAddress. The latter then contains the address of the client in front of the reverse proxy, not the address of the proxy itself. Support for the peer address has been added to the RemoteAddrValve and RemoteCIDRValve with the new attribute usePeerAddress. This can be used to restrict access to Tomcat based on the reverse proxy IP address, which is especially useful to harden access to AJP connectors. The peer address can also be logged in the access log using the new %{peer}a syntax. (rjung)
  • Fix: Avoid uncaught InaccessibleObjectException on Java 16 trying to clear references threads. (remm)
  • Fix: 65033: Fix JNDI realm error handling when connecting to a failed server when pooling was not enabled. (remm)
  • Fix: 65047: If the AccessLogValve is unable to open the access log file, include information on the current user in the associated log message (markt)

Coyote

  • Fix: Additional fix for 64830 to address an edge case that could trigger request corruption with h2c connections. (markt)
  • Fix: 64974: Improve handling of pipelined HTTP requests in combination with the Servlet non-blocking IO API. It was possible that some requests could get dropped. (markt)
  • Add: Add support for using Unix domain sockets for NIO when running on Java 16 or later. This uses NIO specific unixDomainSocketPath and unixDomainSocketPathPermissions attributes. Based on a PR submitted by Graham Leggett. (remm)
  • Fix: 65001: Fix error handling for exceptions thrown from calls to ReadListener and WriteListener. (markt)
  • Fix: Avoid possible infinite loop in OpenSSLEngine.unwrap when the destination buffers state is changed concurrently. (remm)

Jasper

  • Add: 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. (markt)
  • Fix: 64965: JspContextWrapper.findAttribute should ignore expired sessions rather than throw an IllegalStateException. (remm)
  • Update: Update to the Eclipse JDT compiler 4.18. (markt)

Web applications

  • Fix: 65007: Clarify that the commands shown in the TLS documentation for importing a signed TLS certificate from a certificate authority are typical examples that may need to be adjusted in some cases. (markt)

Tribes

  • Fix: Work around DNS caching for the DNS provider of the cloud membership. (jfclere)

Other

  • Add: Improvements to Chinese translations. Provided by leeyazhou and Yi Shen. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.26. (markt)
  • Add: Update the internal fork of Apache Commons Pool to 2.9.1-SNAPSHOT (2021-01-15). (markt)
  • Add: Update the internal fork of Apache Commons DBCP to 2.9.0-SNAPSHOT (2021-01-15). (markt)
  • Update: Migrate to new code signing service. (markt)
  • Code: Use java.nio.file.Path to test for one directory being a sub-directory of another in a consistent way. (markt)
  • Update: Update to Commons Daemon 1.2.4. (markt)
  • Add: Improvements to Brazilian Portuguese translations. Provided by Rual Zaninetti Rosa and Lucas. (markt)
  • Add: Improvements to Russian translations. Provided by Polina and Azat. (markt)
  • Update: Update the NSIS Installer used to build the Windows installer to version 3.06.1. (kkolinko)

2020-12-08 Tomcat 9.0.41 (markt)

Catalina

  • Fix: 56181: 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. (markt)
  • Fix: 56890: 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. (markt)
  • Add: 64080: Enhance the graceful shutdown feature. Includes a new option for StandardService, gracefulStopAwaitMillis, that allows a time to be specified to wait for client connections to complete and close before the Container hierarchy is stopped. (markt)
  • Fix: 64921: 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. (markt)
  • Fix: 64947: Don't assume that the Upgrade header has been set on the HttpServletResponse before any call is made to HttpServletRequest.upgrade(). (markt)
  • Fix: Ensure that values are not duplicated when manipulating the vary header. Based on a pull request by Fredrik Fall. (markt)

Coyote

  • Fix: 64944: Ensure that the bytesSent metric is correctly updated when compression is enabled. (markt)

WebSocket

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

Web applications

  • Fix: 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. (kkolinko/markt)

Tribes

  • Code: Start all core threads when starting the receiver and dispatch interceptor. (kfujino)

Other

  • Update: Update the OWB module to Apache OpenWebBeans 2.0.20. (remm)
  • Update: Update the CXF module to Apache CXF 3.4.1. (remm)
  • Add: 64931: Implement validation of changelog.xml file at build time. (kkolinko)
  • Update: Update to Maven Ant Resolver Tasks 1.3.0. (markt)
  • Fix: 62695: Provide SHA-256 and SHA-512 checksums for files published via Maven. (markt)

2020-11-17 Tomcat 9.0.40 (markt)

Catalina

  • Fix: 55559: Add a new attribute, localJndiResource, that allows a UserDatabaseRealm to obtain a UserDatabase instance from the local (web application) JNDI context rather than the global JNDI context. This option is only useful when the Realm is defined on the Context. (markt)
  • Fix: 64805: Correct imports used by JMXProxyServlet. (markt)
  • Fix: Fix JNDIRealm pooling problems retrying on another bad connection. Any retries are made on a new connection, just like with the single connection scenario. Also remove all connections from the pool after an error. (remm)
  • Fix: Remove the entry for org.apache.tomcat.util.descriptor.tld.LocalStrings from tomcat-embed-core's GraalVM tomcat-resource.json. It no more part of the jar since Fix unwanted JPMS dependency of embed-core on embed-jasper. (mgrigorov)
  • Fix: Add org.apache.coyote.http11.Http11Nio2Protocol to the list of classes which could be instantiated via reflection in GraalVM. (mgrigorov)
  • Add: Add JsonErrorReportValve that extends the ErrorReportValve that returns response as JSON instead of HTML. (kfujino)
  • Add: Add GraalVM config for Tomcat JNI related classes. This makes it possible to use the APR protocol in GraalVM native images. To use it add the following to the native-image arguments: -H:JNIConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-jni.json (mgrigorov)
  • Fix: JNDIRealm connections should only be created with the container classloader as the thread context classloader, just like for the JAAS realm. (remm)
  • Add: 64871: Log a warning if Tomcat blocks access to a file because it uses symlinks. (markt)
  • Update: Rename JDBCStore to DataSourceStore and remove bottlenecks for database backed session store. The JDBCStore is deprecated but remains unchanged. Patch submitted by Philippe Mouawad. (remm)

Coyote

  • Fix: Refactor the HTTP/2 window update handling for padding in data frames to ensure that the connection window is correctly updated after a data frame with zero length padding is received. (markt)
  • Fix: Fix processing of URIs with %nn encoded solidus characters when encodedSolidusHandling was set to passthrough and the encoded solidus was preceded by other %nn encoded characters. Based on a pull request by willmeck. (markt)
  • Fix: 63362: Add collection of statistics for HTTP/2, WebSocket and connections upgraded via the HTTP upgrade mechanism. (markt)
  • Fix: Restore exception catch around Poller.events, as it would cause the NIO poller thread to exit. This is a regression caused when the Poller.events method was refactored. (remm)
  • Add: Provide messages for some SocketTimeoutException instances that did not have one. (markt)
  • Fix: Avoid most of the thread pool use during NIO2 socket accept. Patch submitted by Anil Gursel. (remm)
  • Add: Add additional debug logging for I/O issues when communicating with the user agent. (markt)
  • Fix: 64830: Fix concurrency issue in HPACK decoder. (markt)
  • Fix: Fix a concurrency issue in the NIO connector that could cause newly created connections to be removed from the poller. (markt)

Jasper

  • Fix: 64784: Don't include the time the Java file was generated as a comment when generating Java files for JSPs and/or tags if the Java file was created during pre-compilation. This is to aid repeatable builds. (markt)
  • Fix: 64794: Security exception reading system property on JspRuntimeLibrary use. (remm)
  • Add: Add support for specifying Java 16 (with the value 16) 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: Update to the Eclipse JDT compiler 4.17. (markt)
  • Fix: 64849: Correct JPMS metadata for the Jakarta Expression Language JARs to provide missing ServiceLoader information. (markt)

WebSocket

  • Fix: 64848: Fix a variation of this memory leak when a write I/O error occurs on a non-container thread. (markt)

Web applications

  • Fix: 64799: Added missing resources to host-manager web app. (isapir)
  • Fix: 64797: Align manager.xml template file in Host-Manager with context.xml of real Manager web application. (isapir)
  • Add: Configure the examples web applications to set SameSite=strict for all cookies, including session cookies, created by the application. (markt)
  • Add: Configure the examples, Manager and Host Manager to use the HTTP header security filter with default settings apart from no HSTS header. Based on a suggestion by Debangshu Kundu. (markt)

Other

  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)
  • Add: Improvements to Russian translations. Provided by Azat. (markt)
  • Fix: Align JPMS module names with current Jakarta EE expectations. (markt)
  • Fix: 64870: Update to bnd 5.3.0-SNAPSHOT to work around a JRE bug. (markt)

2020-10-09 Tomcat 9.0.39 (markt)

Catalina

  • Update: The health check valve will now check the state of its associated containers to report availability. (remm)
  • Fix: Fix race condition when saving and recycling session in PersistentValve. (kfujino)
  • Update: Deprecate the JDBCRealm. (markt)
  • Fix: Correct numerous spellings throughout the code base. Based on a pull request from John Bampton. (markt)
  • Fix: 64715: Add PasswordValidationCallback to the JASPIC implementation. Patch provided by Robert Rodewald. (markt)
  • Update: Allow using the utility executor for annotation scanning. Patch provided by Jatin Kamnani. (remm)
  • Fix: 64751: Correct the JPMS module descriptor so the embedded JARs may be used with JPMS. (markt)
  • Fix: When performing an incremental build, ensure bnd does not create unwanted JPMS dependencies between embedded JARs. (markt)
  • Update: 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. (remm)
  • Fix: Throw SQLException instead of NullpointerException when failing to connect to the database. (kfujino)
  • Fix: 64735: Ensure that none of the methods on a ServletContext instance always fail when running under a SecurityManager. Pull request provided by Kyle Stiemann. (markt)
  • Fix: 64765: Ensure that the number of currently processing threads is tracked correctly when a web application is undeployed, long running requests are being processed and renewThreadsWhenStoppingContext is enabled for the web application. (markt)
  • Add: Improve the error messages when running under JPMS without the necessary options to enable reflection required by the memory leak prevention / detection code. (markt)
  • Update: Add connection pooling to JNDI realm. (remm)
  • Fix: When estimating the size of a resource in the static resource cache, include a specific allowance for the path to the resource. Based on a pull request by blueSky1825821. (markt)

Coyote

  • Fix: Do not send an HTTP/2 PING frame to measure round-trip time when it is known that the HTTP/2 connection is not in a good state. (markt)
  • Fix: Ensure HTTP/2 timeouts are processed for idle connections. (markt)
  • Fix: 64743: Correct a regression introduced in 9.0.37 that caused a Connection: close header to be added to the response if the Connector was configured with maxSwallowSize=-1. (markt)
  • Fix: When logging HTTP/2 debug messages, use consistent formatting for stream identifiers. (markt)
  • Fix: Correct some double counting in the code that tracks the number of in-flight asynchronous requests. The tracking enables Tomcat to shutdown gracefully when asynchronous processing is in use. (markt)
  • Fix: Improve the error handling for the HTTP/2 connection preface when the Connector is configured with useAsyncIO="true". (markt)
  • Fix: 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. (markt)
  • Fix: Don't send the Keep-Alive response header if the connection has been explicitly closed. (markt)
  • Fix: 64710: Avoid a BufferOverflowException if an HTTP/2 connection is closed while the parser still has a partial HTTP/2 frame in the input buffer. (markt)

Jasper

  • Fix: Use lazy instantiation to improve the performance when working with listeners added to the ELContext. Pull request provided by Thomas Andraschko. (markt)

Web applications

  • Add: Configure the Manager and Host Manager applications to set SameSite=strict for all cookies, including session cookies, created by the application. (markt)
  • Fix: Update the Manager How-To in the documentation web application to clarify when a user may wish to deploy additional instances of the Manager web application. (markt)

Other

  • Update: Update to Commons Daemon 1.2.3. This adds support to jsvc for --enable-preview and native memory tracking (Procrun already supported these features), adds some addition debug logging and adds a new feature to Procrun that outputs the command to (re-)configure the service with the current settings. (markt)
  • Add: When building, only rebuild JAR files (including OSGi and JPMS metadata) if the contents has changed. (markt)
  • Add: Improvements to Chinese translations. Pull request provided by Yang Yang. (markt)
  • Add: Expand coverage of Russian translations. Pull request provided by Nikolay Gribanov. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.18. (remm)
  • Update: Update the CXF module to Apache CXF 3.4.0. (remm)
  • Fix: Fix running service.bat when called from $CATALINA_HOME. (markt)
  • Fix: Complete the fix for 63815. Users wishing to use system properties that require quoting with catalina.sh and the debug option must use a JRE that includes the fix for JDK-8234808. (markt)
  • Add: Improvements to Chinese translations. Provided by leeyazhou. (markt)
  • Add: Improvements to Czech translations. Provided by Dušan Hlaváč and Arnošt Havelka. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)
  • Add: Improvements to Spanish translations. Provided by Andrewlanecarr. (markt)

2020-09-15 Tomcat 9.0.38 (markt)

Catalina

  • Fix: 64582: Pre-load the CoyoteOutputStream class to prevent a potential exception when running under a security manager. Patch provided by Johnathan Gilday. (markt)
  • Fix: 64593: If a request is not matched to a Context, delay issuing the 404 response to give the rewrite valve, if configured, an opportunity to rewrite the request. (remm/markt)
  • Fix: Change top package name for generated embedded classes to avoid conflict with default host name on case insensitive filesystems. (remm)
  • Fix: Add missing code generation for remaining digester rules. (remm)
  • Update: Add a dedicated loader for generated code to avoid dynamic class loading. (remm)
  • Add: Refactor the Default servlet to provide a single method that can be overridden (generateETag()) should a custom entity tag format be required. (markt)
  • Fix: Improve the validation of entity tags provided with conditional requests. Requests with headers that contain invalid entity tags will be rejected with a 400 response code. Improve the matching algorithm used to compare entity tags in conditional requests with the entity tag for the requested resource. Based on a pull request by Sergey Ponomarev. (markt)
  • Fix: Correct the description of the storage format for salted hashes in the Javadoc for MessageDigestCredentialHandler and refactor the associated code for clarity. Based on a patch provided by Milo van der Zee. (markt)
  • Fix: Correct the path validation to allow the use of the file system root for the docBase attribute of a Context. Note that such a configuration should be used with caution. (markt)
  • Add: Added filtering expression for requests that are not supposed to use session in PersistentValve. (kfujino)
  • Fix: Use the correct method to calculate session idle time in PersistentValve. (kfujino)
  • Fix: Fix path used by the health check valve when it is not associated with a Context. (remm)
  • Fix: 64712: The JASPIC authenticator now checks the ServerAuthModule for jakarta.servlet.http.authType and, if present, uses the value provided. Based on a patch by Robert Rodewald. (markt)
  • Fix: 64713: The JASPIC authenticator now checks the value of jakarta.servlet.http.registerSession set by the ServerAuthModule when deciding whether or nor to register the session. Based on a patch by Robert Rodewald. (markt)

Coyote

  • Add: 57661: For requests containing the Expect: 100-continue header, add optional support 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. (markt)
  • Fix: Refactor the implementation of ServletInputStream.available() to provide a more accurate return value, particularly when end of stream has been reached. (markt)
  • Fix: Refactor the stopping of the acceptor to ensure that the acceptor thread stops when a connector is started immediately after it is stopped. (markt)
  • Fix: 64614: Improve compatibility with FIPS keystores. When a FIPS keystore is configured and the keystore contains multiple keys, the alias attribute will be ignored and the key used will be implementation dependent. (jfclere)
  • Fix: 64621: Improve handling HTTP/2 stream reset frames received from clients. (markt)
  • Fix: 64660: Avoid a potential NPE in the AprEndpoint if a socket is closed in one thread at the same time as the poller is processing an event for that socket in another. (markt)
  • Fix: 64671: Avoid several potential NPEs introduced in the changes in the previous release to reduce the memory footprint of closed HTTP/2 streams. (markt)
  • Fix: Refactor the HTTP/2 implementation to more consistently return a stream closed error if errors occur after a stream has been reset by the client. (markt)
  • Fix: Improve handling of HTTP/2 stream level flow control errors and notify the stream immediately if it is waiting for an allocation when the flow control error occurs. (markt)
  • Fix: Ensure that window update frames are sent for HTTP/2 connections to account for DATA frames containing padding including when the associated stream has been closed. (markt)
  • Fix: Ensure that window update frames are sent for HTTP/2 connections and streams to account for DATA frames containing zero-length padding. (markt)
  • Fix: 64710: Revert the changes to reduce the memory footprint of closed HTTP/2 streams as they triggered multiple regressions in the form of NullPointerExceptions. (markt)
  • Fix: Ensure that the HTTP/2 overhead protection check is performed after each HTTP/2 frame is processed. (markt)

WebSocket

  • Fix: Requests received via proxies may be marked as using the ws or wss protocol rather than http or https. Ensure that such requests are not rejected. PR provided by Ronny Perinke. (markt)
  • Fix: 64848: Fix a potential issue where the write lock for a WebSocket connection may not be released if an exception occurs during the write. (markt)
  • Add: 64644: 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. (markt)

Web applications

  • Fix: Remove the localization of the text output of the Manager application list of contexts and the Host Manager application list of hosts so that the output is more consistent. PR provided by Holomark. (markt)
  • Fix: Clean-up / standardize the XSL files used to generate the documentation. PR provided by John Bampton. (markt)
  • Fix: 62723: Clarify the effects of some options for cluster channelSendOptions. Patch provided by Mitch Claborn. (schultz)
  • Fix: Remove the out of date functional specification section from the documentation web application. (markt)
  • Fix: Extracted CSS styles from the Manager we application for better code maintenance and replaced the GIF logo with SVG. (isapir)
  • Add: Add document for PersistentValve. (kfujino)

Other

  • Fix: Correct a regression in the fix for 64540 and include org.apache.tomcat.util.modeler.modules and org.apache.tomcat.util.net.jsse in the list of exported packages. (markt)
  • Fix: Remove the local copy of javax.transaction.xa package which is only used during compilation. The package is provided by the JRE from Java 1.4 onwards so the local copy should be unnecessary. (markt)
  • Add: Improve the quality of the Japanese translations provided with Apache Tomcat. Includes contributions from Yuki Shira. (markt)
  • Fix: 64645: Use a non-zero exit code if the service.bat does not complete normally. (markt)
  • Add: Update the internal fork of Apache Commons BCEL to 6.5.0. Code clean-up only. (markt)
  • Add: Update the internal fork of Apache Commons Codec to 53c93d0 (2020-08-18, 1.15-SNAPSHOT). Code clean-up. (markt)
  • Add: Update the internal fork of Apache Commons FileUpload to c25a4e3 (2020-08-26, 2.0-SNAPSHOT). Code clean-up and RFC 2231 support. (markt)
  • Add: Update the internal fork of Apache Commons Pool to 2.8.1. Code clean-up and improved abandoned pool handling. (markt)
  • Add: Update the internal fork of Apache Commons DBCP to 6d232e5 (2020-08-11, 2.8.0-SNAPSHOT). Code clean-up various bug fixes. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.25. (markt)

2020-07-05 Tomcat 9.0.37 (markt)

Catalina

  • Add: Remove the error message on start if java.io.tmpdir is missing and add an explicit error message on application deployment when the sole feature that depends on it (anti-resource locking) is configured and can't be used. (markt)
  • Update: Implement a significant portion of the TLS environment variables for the rewrite valve. (remm)
  • Fix: 64506: Correct a potential race condition in the resource cache implementation that could lead to NullPointerExceptions during class loading. (markt)
  • Add: Add application/wasm to the media types recognised by Tomcat. Based on a PR by Thiago Henrique Hüpner. (markt)
  • Fix: Fix a bug in HttpServlet so that a 405 response is returned for an HTTP/2 request if the mapped servlet does implement the requested method rather than the more general 400 response. (markt)
  • Add: Add generated classes using Tomcat embedded as an optional replacement for the Catalina configuration files. (remm)
  • Fix: 64541: Refactor the DTD used to validate mbeans-descriptors.xml files to avoid issues when XML entity expansion is limited or disabled. (markt)

Coyote

  • Add: Include a Connection: close HTTP header when committing a response and it is known that the maxSwallowSize limit is going to be exceeded. (markt)
  • Fix: 64509: Correctly parse RFC 2109 version 1 cookies that use a comma as a separator between cookies when using the RFC 6265 cookie processor. Based on a patch by W J Carpenter. (markt)
  • Fix: Fix the utility code that converted IPv6 addresses to a canonical form to correctly handle input addresses that ended with a pair of colons. Based on a patch by syarramsetty-skyhook. (markt)
  • Fix: Correctly parse RFC 2109 version 1 cookies that have additional linear white space around cookie attribute names and values when using the RFC 6265 cookie processor. (markt)
  • Fix: Once an HTTP/2 stream has been closed, ensure that the code that cleans up references that are no longer required is called. (markt)
  • Fix: Reduce the memory footprint of closed HTTP/2 streams. (markt)
  • Fix: Ensure that the HTTP/1.1 processor is correctly recycled when a direct connection to h2c is made. (markt)

Cluster

  • Fix: 64560: Refactor the replication of a changed session ID for a replicated session so that the list of changes associated with the session is not reset when the session ID changes. (markt)

WebSocket

  • Fix: 64563: Add additional validation of payload length for WebSocket messages. (markt)
  • Fix: Correct the calculation of payload length when four or more bytes are required to represent the payload length. (markt)

Other

  • Fix: 64498: Fix incorrect version format in OSGi manifests. Patch provided by Raymond Augé. (markt)
  • Fix: 64501: Refactor the handling of the deprecated LOGGING_CONFIG environment variable to avoid using a POSIX shell feature that is not available by default on Solaris 10. (markt)
  • Fix: 64513: Remove bndlib from dependencies as it is not required. Pull request provided by Raymond Augé. (markt)
  • Fix: 64515: Bnd files don't need to be filtered (save some work). Pull request provided by Raymond Augé. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.17. (remm)
  • Fix: 64514: Fixes some missing class dependency issues in bootstrap to address packaging/dependency concerns for JPMS and OSGi. Pull request provided by Raymond Augé. (markt)
  • Fix: 64521: Avoid moving i18n translations into classes dir since they are packaged into separate jars. Pull request provided by Raymond Augé. (markt)
  • Fix: 64522: Package jars in effective dependency order. Pull request provided by Raymond Augé. (markt)
  • Fix: Store common build details in a shared build-defaults.bnd. Pull request provided by Raymond Augé. (markt)
  • Fix: 64532: Update to bnd 5.1.1. Pull request provided by Raymond Augé. (markt)
  • Fix: 64540: Switch from bndwrap task to bnd task, begin generating a better manifest and make sure the resulting jar contents are correct. Pull request provided by Raymond Augé. (markt)
  • Fix: 64544: Add built libs to the bnd classpath for introspection. Pull request provided by Raymond Augé. (markt)
  • Add: Improve the quality and expand the coverage of the French translations provided with Apache Tomcat. (remm)
  • Fix: 64548: Generate JPMS metadata. (rotty3000)

2020-06-07 Tomcat 9.0.36 (markt)

Catalina

  • Fix: 64432: Correct a refactoring regression that broke handling of multi-line configuration in the RewriteValve. Patch provided by Jj. (markt)
  • Fix: Fix use of multiple parameters when defining RewriteMaps. (remm/fschumacher)
  • Update: Add the special internal rewrite maps for case modification and escaping. (remm/fschumacher)
  • Fix: Correct a regression in an earlier fix that broke the loading of configuration files such as keystores via URIs on Windows. (markt)
  • Fix: 64470: The default value of the solidus handling should reflect the associated system property. (remm)
  • Fix: Implement a few rewrite SSL env that correspond to Servlet request attributes. (remm)
  • Update: 64442: Be more flexible with respect to the ordering of groups, roles and users in the tomcat-users.xml file. (fschumacher)
  • Fix: 64493: Revert possible change of returned protocol attribute value on the Connector. (remm)

Coyote

  • Update: Add support for ALPN on recent OpenJDK 8 releases. (remm)
  • Fix: 64467: Improve performance of closing idle HTTP/2 streams. (markt)
  • Update: Expose server certificate through the SSLSupport interface. (remm)
  • Add: 64483: Log a warning if an AJP request is rejected because it contains an unexpected request attribute. (markt)
  • Fix: 64485: Fix possible resource leak getting last modified from ConfigurationSource.Resource. (remm)

Jasper

  • Fix: 64488: Ensure that the ImportHandler from the Expression Language API is able to load classes from the Java runtime when running under a SecurityManager. Based on a patch by Volodymyr Siedleck. (markt)

WebSocket

  • Fix: Consistently throw a DeploymentException when an invalid endpoint path is specified and catch invalid endpoint paths earlier. (markt)
  • Add: Include the target URL in the log message when a WebSocket connection fails. (markt)

Other

  • Update: Update the list of known Charsets in the CharsetCache to include ISO-8859-16, added in OpenJDK 15. (markt)
  • Add: Improve the quality and expand the coverage of the French translations provided with Apache Tomcat. (remm)
  • Add: 64430: Add support for the CATALINA_OUT_CMD environment variable that defines a command to which captured stdout and stderr will be redirected. Patch provided by Harald Dunkel. (markt)
  • Update: Switch from the unsupported Maven Ant Tasks to the supported Maven Resolver Ant Tasks to upload artifacts to the ASF Maven repository (and from there to Maven Central). (markt)
  • Update: Update dependency on bnd to 5.1.0. (markt)

2020-05-11 Tomcat 9.0.35 (markt)

Catalina

  • Fix: Reduce reflection use and remove AJP specific code in the Connector. (remm/markt/fhanik)
  • Fix: Rework the fix for 64021 to better support web applications that use a custom class loader that loads resources from non-standard locations. (markt)
  • Update: Remove redundant sole path/URI from error page message on SC_NOT_FOUND. (michaelo)
  • Add: Log a warning if a CredentialHandler instance is added to an instance of the CombinedRealm (or a sub-class) as the CombinedRealm doesn't use a configured CredentialHandler and it is likely that a configuration error has occurred. (markt)
  • Add: Add more descriptive error message in DefaultServlet for SC_NOT_FOUND. (michaelo)
  • Add: 59203: Before calling Thread.stop() (if configured to do so) on a web application created thread that is not stopped by the web application when the web application is stopped, try interrupting the thread first. Based on a pull request by Govinda Sakhare. (markt)
  • Fix: 64309: Improve the regular expression used to search for class loader repositories when bootstrapping Tomcat. Pull request provided by Paul Muriel Biya-Bi. (markt)
  • Fix: 64384: Fix multipart configuration ignoring some parameters in some cases. (schultz)
  • Add: 64386: WebdavServlet does not send "getlastmodified" property for resource collections. (michaelo)
  • Update: Remove reason phrase on WebDAV Multi-Status (207) response. (michaelo)
  • Fix: 64398: Change default value separator for property replacement to :- due to possible conflicts. The syntax is now ${name:-default}. (remm)
  • Add: Improve validation of storage location when using FileStore. (markt)

Coyote

  • Fix: Move SocketProperties mbean to its own type rather than use a subType to improve robustness with tools. (remm)
  • Fix: Include the problematic data in the error message when reporting that the provided request line contains an invalid component. (markt)
  • Fix: Improve the handling of requests that use an expectation. Do not disable keep-alive where the response has a non-2xx status code but the request body has been fully read. (rjung/markt)
  • Fix: 64403: Ensure that compressed HTTP/2 responses are not sent with a content length header appropriate for the original, uncompressed response. (markt)

Jasper

  • Update: Remove redundant sole path/URI from error page message on SC_NOT_FOUND. (michaelo)
  • Add: Add more descriptive error message in DefaultServlet for SC_NOT_FOUND. (michaelo)
  • Fix: 64373: When a tag file is packaged in a WAR and then that WAR is unpacked in /WEB-INF/classes ensure that the tag file can still be found. Patch provided by Karl von Randow. (markt)
  • Fix: Ensure that the Jasper code that interfaces with the Eclipse Compiler for Java (ECJ) enables Jasper to compile JSPs using ECJ 4.14 onwards when the JSPs have inner classes. (markt)

Web applications

  • Fix: Fix the saving of a Context configuration file via the scripting interface of the Manager web application. (markt)
  • Add: Add a section to the TLS Connector documentation on different key store types and how to configure them. (markt)

Other

  • Update: Update JUnit to version 4.13. (markt)
  • Fix: Add missing entries to test class path in sample NetBeans configuration files. Patch provided by Brian Burch. (markt)
  • Code: Refactor to use parameterized Collection constructors where possible. Pull request provided by Lars Grefer. (markt)
  • Code: Refactor to use empty arrays with Collections.toArray(). Pull request provided by Lars Grefer. (markt)
  • Code: Refactor loops with a condition to exit as soon as the condition is met. Pull request provided by Lars Grefer. (markt)
  • Code: Refactor bulk addition to collections to use addAll() rather than a loop. Pull request provided by Lars Grefer. (markt)
  • Add: Improve the quality and expand the coverage of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage of the Chinese translations provided with Apache Tomcat. Contributions provided by winsonzhao, ZhangJieWen and Lee Yazhou. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.24. (markt)
  • Code: Refactor to use enhanced for loops where possible. Pull request by Lars Grefer. (markt)
  • Add: Improve IDE support for IntelliJ IDEA. Patch provided by Lars Grefer. (markt)
  • Add: Improve the quality of the Japanese translations provided with Apache Tomcat. Includes contributions from Yoshy. (markt)
  • Add: Improve the coverage and quality of the Korean translations provided with Apache Tomcat. (woonsan)
  • Update: Update dependency on bnd to 5.0.1. (markt)

2020-04-08 Tomcat 9.0.34 (markt)

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)
  • Fix: 64265: Fix ETag comparison performed by the default servlet. The default servlet always uses weak comparison. (markt)
  • Fix: Add support for default values when using ${...} property replacement in configuration files. Based on a pull request provided by Bernd Bohmann. (markt)

Coyote

  • Add: When configuring an HTTP Connector, warn if the encoding specified for URIEncoding is not 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)

Cluster

  • Code: Refactor the creation of DeltaRequest objects to make it simpler to use custom implementations. Based on a pull request provided by Thomas Stock. (markt)

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 interpreted in a URI. (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: Deprecated 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)

2020-03-16 Tomcat 9.0.33 (markt)

Coyote

  • Fix: 64210: Correct a regression in the improvements to HTTP header validation that caused requests to be incorrectly treated as invalid if a CRLF sequence was split between TCP packets. Improve validation of request lines, including for HTTP/0.9 requests. (markt)

Other

  • Fix: 64206: Correct regression introduced in 9.0.31 that meant that the HTTP port specified when using the Windows Installer was ignored and 8080 was always used. (markt)

not released Tomcat 9.0.32 (markt)

Catalina

  • Fix: Store config compatibility with HostWebXmlCacheCleaner listener. (remm)
  • Fix: Modify the RewriteValve to use ServletRequest.getServerName() to populate the HTTP_HOST variable rather than extracting it from the Host header as this allows HTTP/2 to be supported. (markt)
  • Fix: Switch Tomcat embedded to loading MIME type mappings from a property file generated from the default web.xml so the MIME type mappings are consistent regardless of how Tomcat is started. (markt)
  • Fix: Missing store config attributes for Resources elements. (remm)
  • Fix: 64153: Ensure that the parent for the web application class loader is set consistently. (markt)
  • Fix: 64166: Ensure that the names returned by HttpServletResponse.getHeaderNames() are unique. (markt)
  • Code: Rename org.apache.tomcat.util.digester.Digester$EnvironmentPropertySource to org.apache.tomcat.util.digester.EnvironmentPropertySource. The old class is still available but deprecated. Patch provided by Bernd Bohmann. (markt)
  • Add: Add new attribute persistAuthentication to both StandardManager and PersistentManager to support authentication persistence. Patch provided by Carsten Klein. (markt)
  • Fix: 64184: Avoid repeated log messages if a MemoryUserDatabase is configured but the specified configuration file is missing. (markt)
  • Add: 64189: Expose the web application version String as a ServletContext attribute named org.apache.catalina.webappVersion. (markt)

Coyote

  • Fix: When the NIO or APR/native connectors were configured with useAsyncIO="true" and a zero length read or write was performed, the read/write would time out rather than return immediately. (markt)
  • Fix: 64141: If using a CA certificate, remove a default value for the truststore file when not using a JSSE configuration. (remm)
  • Fix: Improve robustness of OpenSSLEngine shutdown. Based on code submitted by Manuel Dominguez Sarmiento. (remm)
  • Fix: Add the TLS request attributes used by IIS to the attributes that an AJP Connector will always accept. (markt)
  • Fix: A zero length AJP secret will now behave as if it has not been specified. (remm)
  • Fix: 64188: If an error occurs while committing or flushing the response when using a multiplexing protocol like HTTP/2 that requires the channel to be closed but not the connection, just close the channel and allow the other channels using the connection to continue. Based on a suggestion from Alejandro Anadon. (markt)
  • Fix: Correct the semantics of getEnableSessionCreation and setEnableSessionCreation for OpenSSLEngine. Pull request provided by Alexander Scheel. (markt)
  • Fix: 64192: Correctly handle case where unread data is returned to the read buffer when the read buffer is non empty. Ensure a gathering TLS read stops once the provided ByteBuffers are full or no more data is available. (markt)
  • Fix: 64195: Revert simplification of NIO block read and write, deferred to Tomcat 10. (remm)
  • Fix: Allow async requests to complete cleanly when the Connector is paused before complete() is called on a container thread. (markt)

Jasper

  • Code: Parameterize JSP version and API class names in localization messages to allow simpler re-use between major versions. (markt)
  • Fix: Ensure that TLD files listed in the jsp-config section of web.xml that are registered in the uriTldResourcePathMap with the URI specified in web.xml are also registered with the URI in the TLD file if it is different. Patch provided by Markus Lottmann. (markt)

Cluster

  • Fix: Fix cloud environment lookup order and add a dedicated DNS_MEMBERSHIP_SERVICE_NAME environment for use with the DNS membership provider. Submitted by Bernd Bohmann. (remm)
  • Fix: Allow configuring the DNSMembershipProvider using the dns alias. Submitted by Bernd Bohmann. (remm)

Web applications

  • Fix: Add to the documentation for the JmxRemoteLifecycleListener the requirement to use -Dcom.sun.management.jmxremote.registry.ssl=false if TLS is not being used else clients will be unable to connect to the JMX server. (markt)
  • Add: Expand the documentation for the address attribute of the AJP Connector and document that the AJP Connector also supports the ipv6v6only attribute with the APR/Native implementation. (markt)

Other

  • Add: Expand the coverage of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage of the Chinese translations provided with Apache Tomcat. Contribution provided by BoltzmannWxd. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.15. (remm)
  • Update: Update the CXF module to Apache CXF 3.3.5. (remm)
  • Add: Expand the coverage of the Korean translations provided with Apache Tomcat. Contributions provided by B. Cansmile Cha. (markt)
  • Add: Expand the coverage of the French translations provided with Apache Tomcat. (remm)
  • Add: 64190: Add support for specifying milliseconds (using S, SS or SSS) in the timestamp used by JULI's OneLineFormatter. (markt)

2020-02-11 Tomcat 9.0.31 (markt)

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 unexpectedly. (markt)

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 corruption 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 i18n 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)

2019-12-12 Tomcat 9.0.30 (markt)

Catalina

  • Add: 63681: Introduce RealmBase#authenticate(GSSName, GSSCredential) and friends. (michaelo)
  • Fix: 63964: Correct a regression in the static resource caching changes introduced in 9.0.28. URLs constructed from URLs obtained from the cache could not be used to access resources. (markt)
  • Fix: 63970: Correct a regression in the static resource caching changes introduced in 9.0.28. Connections to URLs obtained for JAR resources could not be cast to JarURLConnection. (markt)
  • Add: 63937: Add a new attribute to the standard Authenticator implementations, allowCorsPreflight, that allows the Authenticators to be configured to allow CORS preflight requests to bypass authentication as required by the CORS specification. (markt)
  • Fix: 63939: Correct the same origin check in the CORS filter. An origin with an explicit default port is now considered to be the same as an origin without a default port and origins are now compared in a case-sensitive manner as required by the CORS specification. (markt)
  • Fix: 63981: Allow multiple calls to Registry.disableRegistry() without the second and subsequent calls triggering the logging of a warning. Based on a patch by Andy Wilkinson. (markt)
  • Fix: 63982: CombinedRealm makes assumptions about principal implementation (michaelo)
  • Fix: 63983: Correct a regression in the static resource caching changes introduced in 9.0.28. A large number of file descriptors were opened that could reach the OS limit before being released by GC. (markt)
  • Update: 63987: Deprecate Realm.getRoles(Principal). (michaelo)
  • Code: Add a unit test for the session FileStore implementation and refactor loops in FileStore to use the ForEach style. Pull request provided by Govinda Sakhare. (markt)
  • Update: Moved server-side include (SSI) module into a separate JAR library. (schultz)
  • Fix: Refactor FORM authentication to reduce duplicate code and to ensure that the authenticated Principal is not cached in the session when caching is disabled. This is the fix for CVE-2019-17563. (markt/kkolinko)

Coyote

  • Fix: Fix endpoint closeSocket and destroySocket discrepancies, in particular in the APR connector. (remm)
  • Fix: Harmonize maxConnections default value to 8192 across all connectors. (remm)
  • Fix: 63931: Improve timeout handling for asyncIO to ensure that blocking operations see a SocketTimeoutException if one occurs. (remm/markt)
  • Fix: 63932: By default, do not compress content that has a strong ETag. This behaviour is configuration for the HTTP/1.1 and HTTP/2 connectors via the new Connector attribute noCompressionStrongETag. (markt)
  • Fix: 63949: Fix non blocking write problems with NIO due to the need for a write loop. (remm)
  • Fix: Simplify regular endpoint writes by removing write(Non)BlockingDirect. All regular writes will now be buffered for a more predictable behavior. (remm)
  • Fix: Send an exception directly to the completion handler when a timeout exception occurs for the operation, and add a boolean to make sure the completion handler is called only once. (remm/markt)
  • Add: When reporting / logging invalid HTTP headers encode any non-printing characters using the 0xNN form. (markt)

WebSocket

  • Fix: Ensure a couple of very unlikely concurrency issues are avoided when writing WebSocket messages. (markt)

Web applications

  • Fix: Fix the broken re-try link on the error page for the FORM authentication example in the JSP section of the examples web application. (markt)
  • Add: Improvements to CsrfPreventionFilter: additional logging, allow the CSRF nonce request parameter name to be customized. (schultz)
  • Fix: Correct the documentation for the maxConnections attribute of the Connector in the documentation web application. (markt)
  • Add: Add the ability to set and display session attributes in the JSP FORM authentication example to demonstrate session persistence across restarts for authenticated sessions. (markt)

Other

  • Fix: Correct the fix for 63815 (quoting the use of CATALINA_OPTS and JAVA_OPTS when used in shell scripts to avoid the expansion of *) as it caused various regressions, particularly with daemon.sh. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.13. (remm)
  • Update: Support Java 11 in Graal Native Images with Graal 19.3+. (remm)
  • Add: Expand the search made by the Windows installer for a suitable Java installation to include the 64-bit JDK registry entries and the JAVA_HOME environment variable. Pull request provided by Alexander Norz. (markt)
  • Add: Expand the coverage of the Korean translations provided with Apache Tomcat. (woonsan)
  • Add: Expand the coverage of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage of the Chinese translations provided with Apache Tomcat. Contributions provided by lins and 磊. (markt)
  • Add: Update the internal fork of Apache Commons BCEL to ff6941e (2019-12-06, 6.4.2-dev). Code clean-up only. (markt)
  • Add: Update the internal fork of Apache Commons Codec to 9637dd4 (2019-12-06, 1.14-SNAPSHOT). Code clean-up and a fix for CODEC-265. (markt)
  • Add: Update the internal fork of Apache Commons FileUpload to 2317552 (2019-12-06, 2.0-SNAPSHOT). Refactoring. (markt)
  • Add: Update the internal fork of Apache Commons Pool 2 to 6092f92 (2019-12-06, 2.8.0-SNAPSHOT). Clean-up and minor refactoring. (markt)
  • Add: Update the internal fork of Apache Commons DBCP 2 to a36390 (2019-12-06, 2.7.1-SNAPSHOT). Minor refactoring. (markt)

2019-11-21 Tomcat 9.0.29 (markt)

Catalina

  • Fix: Refactor JMX remote RMI registry creation. This is the fix for CVE-2019-12418. (remm)
  • Add: Improvement to CsrfPreventionFilter: expose the latest available nonce as a request attribute; expose the expected nonce request parameter name as a context attribute. (schultz)

Coyote

  • Add: 63835: Add support for Keep-Alive response header. (michaelo)
  • Fix: Correct a logic bug in the NioEndpoint timeout handling that meant a write timeout could be handled as a read timeout. (markt)

Web applications

  • Add: Add a warning regarding potential poor performance of the HTTP and AJP connectors if socket.txBufSize is configured with an explicit value rather than using the JVM default. (markt)

Other

  • Fix: Improve OWB module based using custom shade appender. (remm)
  • Fix: Add security filter in OWB module in addition to the valve for more flexibility. (remm)

not released Tomcat 9.0.28 (markt)

Catalina

  • Fix: Bad paths for URIs can cause exceptions on Windows due to its path separator, so wrap using an IOException. (remm)
  • Fix: 63832: Properly mark container as FAILED when a JVM error occurs on stop. (remm)
  • Add: Add more details on the usage of RewriteMap functionality in the RewriteValve. (fschumacher)
  • Fix: 63836 Ensure that references to the Host object are cleared once the Host instance is destroyed. (markt)
  • Fix: Ensure that, when static resource caching is enabled for a web application, all access to static files (including JSP files) goes via the cache so that a consistent view of the static files is seen. Prior to this change it was possible to see an updated last modified time but the content would be that prior to the modification. (markt)
  • Update: 63905 Clean up Tomcat CSS. (michaelo)
  • Fix: 63909: When the ExpiresFilter is used without a default and the response is served by the Default Servlet, ensure that the filter processes the response if the Default Servlet sets a 304 (Not Found) status code. (markt)

Coyote

  • Fix: Ensure that ServletRequest.isAsyncStarted() returns false once AsyncContext.complete() or AsyncContext.dispatch() has been called during AsyncListener.onTimeout() or AsyncListener.onError(). (markt)
  • Fix: 63816 and 63817: Correctly handle I/O errors after asynchronous processing has been started but before the container thread that started asynchronous processing has completed processing the current request/response. (markt)
  • Fix: 63825: When processing the Expect and Connection HTTP headers looking for a specific token, be stricter in ensuring that the exact token is present. (markt)
  • Fix: 63829: Improve the check of the Content-Encoding header when looking to see if Tomcat is serving pre-compressed content. Ensure that only a full token is matched and that the match is case insensitive. (markt)
  • Fix: 63864: Refactor parsing of the transfer-encoding request header to use the shared parsing code and reduce duplication. (markt)
  • Fix: 63865: Add Unset option to same-site cookies and pass through None value if set by user. Patch provided by John Kelly. (markt)
  • Fix: 63879: Remove stack trace from debug logging on socket wrapper close. (remm)
  • Update: Add connection tracking on the connector endpoint to remove excessive concurrency in the protocol handler when maintaining an association between the socket wrapper and its current processor. (remm)
  • Fix: 63894: Ensure that the configured values for certificateVerification and certificateVerificationDepth are correctly passed to the OpenSSL based SSLEngine implementation. (remm/markt)
  • Fix: Improve cleanup after errors when setting socket options. (remm)
  • Fix: 63859: Do not perform a blocking read after a CPING message is received by the AJP connector because, if the JK Connector is configured with ping_mode="I", the CPING message will not always be followed by the start of a request. (markt)
  • Fix: Properly calculate all dynamic parts of the ErrorReportValve response on the fly in org.apache.coyote.http2.TestHttp2InitialConnection. (michaelo)

Jasper

  • Fix: 63897: Capture the timestamp of a JSP for the purposes of modification tracking before the JSP is compiled to prevent a race condition if the JSP is modified during compilation. Patch provided by Karl von Randow. (markt)
  • Fix: Fix a race condition that could mean changes to a modified JSP were not visible to end users. (markt)

WebSocket

  • Fix: 63913: Wrap any NullPointerExceptions throw by the Inflater or Deflater used by the PerMessageDeflate extension in an IOException so that the error can be caught and handled by the WebSocket error handling mechanism. (markt)

Web applications

  • Fix: Correct the description of the default value for the server attribute in the security How-To. (markt)

Other

  • Fix: 63815: Quote the use of CATALINA_OPTS and JAVA_OPTS when used in shell scripts to avoid the expansion of *. Note that any newlines present in CATALINA_OPTS and/or JAVA_OPTS will no longer removed. (markt)
  • Fix: 63826: Remove commons-daemon-native.tar.gz and tomcat-native.tar.gz from the binary zip distributions for Windows since compiled versions of those components are already included within the zip distributions. (markt)
  • Fix: 63838: Suppress reflexive access warnings when running the unit tests on the command line. (markt)
  • Fix: Add missing charsets from the HPE JVM on HP-UX to pass unit tests in org.apache.tomcat.util.buf.TestCharsetCache. (michaelo)
  • Update: Update the CXF module to Apache CXF 3.3.4. (remm)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage and quality of the Japanese translations provided with Apache Tomcat. Patch provided by motohashi.yuki. (markt)
  • Add: Expand the coverage and quality of the Simplified Chinese translations provided with Apache Tomcat. Contributions provided by rpo130, Mason Shen, leeyazhou, winsonzhao, qingshi huang, Lay, Shucheng Hou and Yanming Zhou. (markt)
  • Add: Expand the coverage and quality of the Brazilian Portuguese translations provided with Apache Tomcat. Patch provided by Danielamorais. (markt)

2019-10-11 Tomcat 9.0.27 (markt)

Catalina

  • Fix: Correct a regression introduced in 9.0.25 that prevented configuration files from being loaded from the class path. (markt)

Coyote

  • Fix: Use URL safe base 64 encoding rather than standard base 64 encoding when generating or parsing the HTTP2-Settings header as part of an HTTP upgrade to h2c as required by RFC 7540. (markt)
  • Fix: 63765: NIO2 should try to unwrap after TLS handshake to avoid edge cases. (remm)
  • Fix: 63766: Ensure Processor objects are recycled when processing an HTTP upgrade connection that terminates before processing switches to the Processor for the upgraded protocol. (markt)
  • Fix: Fix a memory leak introduced by the HTTP/2 timeout refactoring in 9.0.23 that could occur when HTTP/2 or WebSocket was used. (markt)

Jasper

  • Update: Update to the Eclipse JDT compiler 4.13. (markt)
  • Fix: Add GraalVM specific ELResolver to avoid BeanInfo use in BeanElResolver if possible, as it needs manual reflection configuration. (remm)
  • Fix: 63781: When performing various checks related to the visibility of classes, fields an methods in the EL implementation, also check that the containing module has been exported. (markt)

Web Socket

  • Fix: 63753: Ensure that the Host header in a Web Socket HTTP upgrade request only contains a port if a non-default port is being used. (markt)
  • Fix: When running on Java 9 and above, don't attempt to instantiate WebSocket Endpoints found in modules that are not exported. (markt)

Web Applications

  • Add: Add base GraalVM documentation. (remm)
  • Add: Add Javadoc for the Common Annotations API implementation. (markt)
  • Fix: Correct various typos in the comments, error messages and Javadoc. Patch provided by 康智冬. (markt)

jdbc-pool

  • Fix: When connections are validated without an explicit validation query, ensure that any transactions opened by the validation process are committed. Patch provided by Pascal Davoust. (markt)

Other

  • Code: Deprecate org.apache.tomcat.util.compat.TLS. Its functionality was only used for unit tests in org.apache.tomcat.util.net.TesterSupport and has been moved there. (rjung)
  • Fix: 63759: When installing Tomcat with the Windows installer, grant sufficient privileges to enable the uninstaller to execute when user account control is active. (markt)
  • Add: Use a build property to define the minimum supported Java version and use that build property to reduce the number of edits required to update the minimum supported Java version. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.12. (remm)
  • Update: Update the CXF module to Apache CXF 3.3.3. (remm)
  • Update: 63767: Update to Commons Daemon 1.2.2. This corrects a regression in Commons Daemon 1.2.0 and 1.2.1 that caused the Windows Service to crash on start when running on an operating system that had not been fully updated. (markt)

2019-09-19 Tomcat 9.0.26 (markt)

Other

  • Fix: Re-tagged to ensure that the source file for the changelog did not contain an XML byte order mark. (markt)

not released Tomcat 9.0.25 (markt)

Catalina

  • Fix: Avoid a possible InvalidPathException when obtaining a URI for a configuration file. (markt)
  • Fix: 63684: Wrapper never passed to RealmBase.hasRole() for given security constraints. (michaelo)
  • Fix: 63740: Ensure configuration files are loaded correctly when a Host is configured with an xmlBase. Patch provided by uk4sx. (markt)
  • Fix: Avoid a potential NullPointerException on Service stop if a Service is embedded directly (i.e. with no Server) in an application and JNDI is enabled. Patch provided by S. Ali Tokmen. (markt)
  • Add: Add a new PropertySource implementation, EnvironmentPropertySource, that can be used to do property replacement in configuration files with environment variables. Based on a pull request provided by Thomas Meyer. (markt)

Coyote

  • Fix: 63682: Fix a potential hang when using the asynchronous Servlet API to write the response body and the stream and/or connection window reaches 0 bytes in size. (markt)
  • Fix: 63690: Use the average of the current and previous sizes when calculating overhead for HTTP/2 DATA and WINDOW_UPDATE frames to avoid false positives as a result of client side buffering behaviour that causes a small percentage of non-final DATA frames to be smaller than expected. (markt)
  • Fix: 63706: Avoid NPE accessing https port with plaintext. (remm)
  • Fix: Correct typos in the names of the configuration attributes overheadDataThreshold and overheadWindowUpdateThreshold. (markt)
  • Fix: If the HTTP/2 connection requires an initial window size larger than the default, send a WINDOW_UPDATE to increase the flow control window for the connection so that the initial size of the flow control window for the connection is consistent with the increased value. (markt)
  • Fix: 63710: When using HTTP/2, ensure that a content-length header is not set for those responses with status codes that do not permit one. (markt)
  • Fix: 63737: Correct various issues when parsing the accept-encoding header to determine if gzip encoding is supported including only parsing the first header found. (markt)

Jasper

  • Fix: 63724: Correct a regression introduced in 9.0.21 that broke compilation of JSPs in some configurations. (markt)

Web applications

  • Fix: Correct the source code links on the index page for the ROOT web application to point to Git rather than Subversion. (markt)
  • Fix: Fix various issues with the Javadoc generated for the documentation web application to enable release builds to be built with Java 10 onwards. (markt)
  • Fix: 63733: Remove the documentation for the "Additional Components" since they have been removed / merged into the core Tomcat distribution for 9.0.5 onwards. (markt)
  • Fix: 63739: Correct the invalid Automatic-Module-Name manifest entries for the Tomcat provided JARs included in the Tomcat embedded distribution. (markt)
  • Fix: Fix a large number of Javadoc and documentation typos. Patch provided by KangZhiDong. (markt)
  • Fix: Spelling and formatting corrections for the cluster how-to. Pull request provided by Bill Mitchell. (markt)

Other

  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage and quality of the Simplified Chinese translations provided with Apache Tomcat. Includes contributions by leeyazhou and 康智冬. (markt)
  • Fix: 62140: Additional usage documentation in comments for catalina.[bat|sh]. (markt)
  • Fix: Fix JSSE_OPTS quoting in catalina.bat. Contributed by Peter Uhnak. (fschumacher)
  • Update: 63625: Update to Commons Daemon 1.2.1. This corrects several regressions in Commons Daemon 1.2.1, most notably the Windows Service crashing on start when using 32-bit JVMs. (markt)
  • Fix: 63689: Correct a regression in the fix for 63285 that meant that when installing a service, the service display name was not set. (markt)
  • Fix: When performing a silent install with the Windows Installer, ensure that the registry entries are added to the 64-bit registry when using a 64-bit JVM. (markt)
  • Fix: Remove unused i18n messages and associated translations. Patch provided by KangZhiDong. (markt)
  • Add: Expand the coverage and quality of the Korean translations provided with Apache Tomcat. (woonsan)

2019-08-17 Tomcat 9.0.24 (markt)

Coyote

  • Code: Remove the code in the sendfile poller that ensured smaller pollsets were used with older, no longer supported versions of Windows that could not support larger pollsets. (markt)

not released Tomcat 9.0.23 (markt)

Catalina

  • Add: 57665: Add support for the X-Forwarded-Host header to the RemoteIpFilter and RemoteIpValve. (markt)
  • Add: 62496: Add option to write auth information (remote user/auth type) to response headers. (michaelo)
  • Fix: 63550: Only try the alternateURL in the JNDIRealm if one has been specified. (markt)
  • Add: 63556: Mark request as forwarded in RemoteIpValve and RemoteIpFilter (michaelo)
  • Fix: 63579: Correct parsing of malformed OPTIONS requests and reject them with a 400 response rather than triggering an internal error that results in a 500 response. (markt)
  • Fix: 63608: Align the implementation of the negative match feature for patterns used with the RewriteValve with the description in the documentation. (markt)
  • Update: 63627: Implement more fine-grained handling in RealmBase.authenticate(GSSContext, boolean). (michaelo)
  • Fix: If an unhandled exception occurs on a asynchronous thread started via AsyncContext.start(Runnable), process it using the standard error page mechanism. (markt)
  • Fix: Discard large byte buffers allocated using setBufferSize when recycling the request. (remm)
  • Fix: Avoid a NullPointerException in the CrawlerSessionManagerValve if no ROOT Context is deployed and a request does not map to any of the other deployed Contexts. Patch provided by Jop Zinkweg. (markt)
  • Fix: 63636: Context.findRoleMapping() never called in StandardWrapper.findSecurityReference(). (michaelo)

Coyote

  • Code: Refactor the APR poller to always use a single pollset now that the Windows operating systems that required multiple smaller pollsets to be used are no longer supported. (markt)
  • Fix: 63524: Improve the handling of PEM file based keys and certificates that do not include a full certificate chain when configuring the internal, in-memory key store. Improve the handling of PKCS#1 formatted private keys when configuring the internal, in-memory key store. (markt)
  • Update: Add callback when finishing the set properties rule in the digester. (remm)
  • Fix: 63568: Avoid error when trying to set tcpNoDelay on socket types that do not support it, which can occur when using the NIO inherited channel capability. Submitted by František Kučera. (remm)
  • Fix: 63570: Fix regression retrieving local address with the NIO connector. Submitted by Aditya Kadakia. (remm)
  • Fix: Correct parsing of invalid host names that contain bytes in the range 128 to 255 and reject them with a 400 response rather than triggering an internal error that results in a 500 response. (markt)
  • Fix: 63571: Allow users to configure infinite TLS session caches and/or timeouts. (markt)
  • Fix: 63578: Improve handling of invalid requests so that 400 responses are returned to the client rather than 500 responses. (markt)
  • Fix: Fix h2spec test suite failure. It is an error if a Huffman encoded string literal contains the EOS symbol. (jfclere)
  • Add: Connections that fail the TLS handshake will now appear in the access logs with a 400 status code. (markt)
  • Fix: Timeouts for HTTP/2 connections were not always correctly handled leaving some connections open for longer than expected. (markt)
  • Fix: 63650: Refactor initialisation for JSSE based TLS connectors to enable custom JSSE providers that provide custom cipher suites to be used. (markt)
  • Add: 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. (markt)
  • Fix: Fix a crash on shutdown with the APR/native connector when a blocking I/O operation was still in progress when the connector stopped. (markt)

Cluster

  • Fix: Avoid failing Kubernetes membership (and preventing startup) if the stream cannot be opened, to get the same behavior as the DNS based membership. The namespace is still a failure on startup but it is easy to provide. (remm)
  • Fix: Avoid non fatal NPEs with Tribes when JMX is not available. (remm)
  • Fix: Make Kube environment optional for Kube memberships, for easier testing and Graal training. A warn log will occur if the environment is not present. (remm)

Web applications

  • Fix: 63597: Update the custom 404 error page for the Host Manager to take account of previous refactoring so that the page is used for 404 errors rather than falling back to the default error page. (markt)

Other

  • Fix: JNDI support for GraalVM native images. (remm)
  • Fix: JSP runtime library support for GraalVM native images. (remm)
  • Fix: java.util.logging configuration for GraalVM native images. (remm)
  • Update: Update Checkstyle to 8.22. (markt)
  • Fix: 55969: Tighten up the security of the Apache Tomcat installation created by the Windows installer. Change the default shutdown port used by the Windows installer from 8005 to -1 (disabled). Limit access to the chosen installation directory to local administrators, Local System and Local Service. (markt)
  • Update: 62696: The digital signature for the Windows installer now uses SHA-256 for hashes. (markt)
  • Add: 63285: Add an option to service.bat so that when installing a Windows service, the name of the executables used by the Windows service may be changed to match the service name. This makes the installation behaviour consistent with the Windows installer. The original executable names will be restored when the Windows service is removed. The renaming can be enabled by using the new --rename option after the service name. (markt)
  • Update: 63310: Update to Commons Daemon 1.2.0. This provides improved support for Java 11. This also changes the user configured by the Windows installer for the Windows service from Local System to the lower privileged Local Service. (markt)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)
  • Fix: 63555: Add Automatic-Module-Name entries for each of the Tomcat provided JARs included in the Tomcat embedded distribution. (markt)
  • Fix: 63567: Restore the passing of $LOGGING_MANAGER to the jvm in catalina.sh when calling stop. (markt)
  • Fix: Correct broken OSGi data in JAR file manifests. (markt)
  • Fix: Add "embed" to the Bundle-Name and Bundle-Symbolic-Name for the Tomcat embedded WebSocket JAR to align the naming with the other embedded JARs and to differentiate it from the standard WebSocket JAR that does not include the API classes. (markt)
  • Update: Update dependency on bnd to 4.2.0. (markt)
  • Update: Update the internal fork of Commons Codec to 3ebef4a (2018-08-01) to pick up the fix for CODEC-134. (markt)
  • Update: Update the internal fork of Commons Pool2 to 796e32d (2018-08-01) to pick up the changes Commons Pool2 2.7.0. (markt)
  • Update: Update the internal fork of Commons DBCP2 to 87d9e3a (2018-08-01) to pick up the changes Commons DBCP2 2.7.0 and DBCP-555. (markt)
  • Update: 63648: Update the test TLS keys and certificates used in the test suite to replace the keys and certificates that are about to expire. (markt)

2019-07-09 Tomcat 9.0.22 (markt)

Catalina

  • Fix: Improve parsing of Range request headers. (markt)
  • Fix: Range headers that specify a range unit Tomcat does not recognise should be ignored rather than triggering a 416 response. Based on a pull request by zhanhb. (markt)
  • Fix: When comparing a date from a If-Range header, an exact match is required. Based on a pull request by zhanhb. (markt)
  • Fix: Add an option to the default servlet to disable processing of PUT requests with Content-Range headers as partial PUTs. The default behaviour (processing as partial PUT) is unchanged. Based on a pull request by zhanhb. (markt)
  • Fix: Improve parsing of Content-Range headers. (markt)
  • Update: Update the recommended minimum Tomcat Native version to 1.2.23. (markt)

Coyote

  • Fix: Remove a source of potential deadlocks when using HTTP/2 when the Connector is configured with useAsyncIO as true. (markt)
  • Fix: 63523: Restore SSLUtilBase methods as protected to preserve compatibility. (remm)
  • Fix: Fix typo in UTF-32LE charset name. Patch by zhanhb via Github. (fschumacher)
  • Fix: Once a URI is identified as invalid don't attempt to process it further. Based on a PR by Alex Repert. (markt)
  • Fix: Fix to avoid the possibility of long poll times for individual pollers when using multiple pollers with APR. (markt)
  • Fix: Refactor the fix for 63205 so it only applies when using PKCS12 keystores as regressions have been reported with some other keystore types. (markt)

Jasper

  • Add: Include file names if SMAP processor is unable to delete or rename a class file during SMAP generation. (markt)
  • Update: Update to the Eclipse JDT compiler 4.12. (markt)

WebSocket

  • Fix: 63521: As required by the WebSocket specification, if a POJO that is deployed as a result of the SCI scan for annotated POJOs is subsequently deployed via the programmatic API ignore the programmatic deployment. (markt)

Other

  • Fix: Switch the check for terminal availability to test for stdin as using stdout does not work when output is piped to another process. Patch provided by Radosław Józwik. (markt)
  • Add: Add user buildable optional modules for easier CDI 2 and JAX-RS support. Also include a new documentation page describing how to use it. (remm)

2019-06-07 Tomcat 9.0.21 (markt)

Catalina

  • Add: 57287: Add file sorting to DefaultServlet (schultz)
  • Fix: Fix --no-jmx flag processing, which was called after registry initialization. (remm)
  • Fix: Ensure that a default request character encoding set on a ServletContext is used when calling ServletRequest#getReader(). (markt)
  • Fix: Make a best efforts attempt to clean-up if a request fails during processing due to an OutOfMemoryException. (markt)
  • Fix: Improve the BoM detection for static files handled by the default servlet for the rarely used UTF-32 encodings. Identified by Coverity Scan. (markt)
  • Fix: Ensure that the default servlet reads the entire global XSLT file if one is defined. Identified by Coverity Scan. (markt)
  • Fix: Avoid potential NullPointerException when generating an HTTP Allow header. Identified by Coverity Scan. (markt)
  • Code: Add Context.createInstanceManager() for easier framework integration. (remm)
  • Code: Add utility org.apache.catalina.core.FrameworkListener to allow replicating adding a Listener to context.xml in a programmatic way. (remm)
  • Code: Move Container.ADD_CHILD_EVENT to before the child container start, and Container.REMOVE_CHILD_EVENT to before removal of the child from the internal child collection. (remm)
  • Add: Remove any fragment included in the target path used to obtain a RequestDispatcher. The requested target path is logged as a warning since this is an application error. (markt)

Coyote

  • Fix: NIO poller seems to create some unwanted concurrency, causing rare CI test failures. Add sync when processing async operation to avoid this. (remm)
  • Fix: Fix concurrency issue that lead to incorrect HTTP/2 connection timeout. (remm/markt)
  • Fix: Avoid useless exception wrapping in async IO. (remm)
  • Fix: 63412: Security manager failure when using the async IO API from a webapp. (remm)
  • Fix: Remove acceptorThreadCount Connector attribute, one accept thread is sufficient. As documented, value 2 was the only other sensible value, but without and impact beyond certain microbenchmarks. (remm)
  • Fix: Avoid possible NPEs on connector stop. (remm)
  • Update: Remove pollerThreadCount Connector attribute for NIO, one poller thread is sufficient. (remm)
  • Add: Add async IO for APR connector for consistency, but disable it by default due to low performance. (remm)
  • Fix: Avoid blocking write of internal buffer when using async IO. (remm)
  • Code: Refactor async IO implementation to the SocketWrapperBase. (remm)
  • Update: Refactor SocketWrapperBase close using an atomic boolean and a doClose method that subclasses will implement, with a guarantee that it will be run only once. (remm)
  • Fix: Decouple the socket wrapper, which is not recycled, from the NIOx channel after close, and replace it with a dummy static object. (remm)
  • Fix: Clear buffers on socket wrapper close. (remm)
  • Fix: NIO2 failed to properly close sockets on connector stop. (remm)
  • Update: Reduce the default for maxConcurrentStreams on the Http2Protocol from 200 to 100 to align with typical defaults for HTTP/2 implementations. (markt)
  • Update: Reduce the default HTTP/2 header list size from 4GB to 32kB to align with typical HTTP/2 implementations. (markt)
  • Add: Add support for same-site cookie attribute. Patch provided by John Kelly. (markt)
  • Fix: Drop legacy NIO double socket close (close channel, then close socket). (remm)
  • Fix: Fix HTTP/2 end of stream concurrency with async. (remm)
  • Fix: Correct a bug in the stream flushing code that could lead to multiple threads processing the stream concurrently which in turn could cause errors processing the stream. (markt)

Cluster

  • Fix: 62841: Refactor the DeltaRequest serialization to reduce the window during which the DeltaSession is locked and to remove a potential cause of deadlocks during serialization. (markt)
  • Fix: 63441: Further streamline the processing of session creation messages in the DeltaManager to reduce the possibility of a session update message being processed before the session has been created. (markt)

WebSocket

  • Fix: Fix timeout logic for async non blocking writes. Identified by Coverity Scan. (remm)

Web applications

  • Add: Expand the explanation of how deprecated TLS configuration attributes are converted to the new TLS configuration style. (markt)

Tribes

  • Fix: Treat NoRouteToHostException the same way as SocketTimeoutException when checking the health of group members. This avoids a SEVERE log message every time the check is performed when the host associated with a group member is not powered on. (markt)

Other

  • Update: Switch from FindBugs to SpotBugs. (fschumacher)
  • Update: Start Graal native image compatibility, using the tomcat-maven packaging. (remm)
  • Fix: 63403: Fix TestHttp2InitialConnection test failures when running with a non-English locale. (kkolinko)
  • Fix: Add Graal JreCompat, and use it to disable JMX and URL stream handlers. (remm)
  • Add: Expand the coverage and quality of the Czech translations provided with Apache Tomcat. Includes contributions by Arnošt Havelka. (markt)
  • Add: Expand the coverage and quality of the German translations provided with Apache Tomcat. Includes contributions by Niklasmerz, dusiema and Jens. (markt)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage and quality of the Simplified Chinese translations provided with Apache Tomcat. Includes contributions by 諵. (markt)
  • Fix: Use the test command to check for terminal availability rather than the tty command since the tty based test fails on non-English locales. (markt)

2019-05-13 Tomcat 9.0.20 (markt)

Catalina

  • Fix: Fix some edge cases where the docBase was not being set using a canonical path which in turn meant resource URLs were not being constructed as expected. (markt)
  • Fix: Fix a potential resource leak when executing CGI scripts from a WAR file. Identified by Coverity scan. (markt)
  • Fix: Fix a potential concurrency issue in the StringCache identified by Coverity scan. (markt)
  • Fix: Fix a potential concurrency issue in the main Sendfile thread of the APR connector. Identified by Coverity scan. (markt)
  • Fix: Fix a potential resource leak when running a web application from a WAR file. Identified by Coverity scan. (markt)
  • Fix: Fix a potential resource leak on some exception paths in the DataSourceRealm. Identified by Coverity scan. (markt)
  • Fix: Fix a potential resource leak on an exception path when parsing JSP files. Identified by Coverity scan. (markt)
  • Fix: Fix a potential resource leak when a JNDI lookup returns an object of an in compatible class. Identified by Coverity scan. (markt)
  • Code: Refactor ManagerServlet to avoid loading classes when filtering JNDI resources for resources of a specified type. (markt)
  • Fix: 63324: Refactor the CrawlerSessionManagerValve so that the object placed in the session is compatible with session serialization with mem-cached. Patch provided by Martin Lemanski. (markt)
  • Add: 63358: Expand the throwOnFailure support in the Connector to include the adding of a Connector to a running Service. (markt)
  • Add: 63361: Add a new method (Registry.disableRegistry()) that can be used to disable JMX registration of Tomcat components providing it is called before the first component is registered. (markt)
  • Fix: Avoid OutOfMemoryErrors and ArrayIndexOutOfBoundsExceptions when accessing large files via the default servlet when resource caching has been disabled. (markt)
  • Fix: Avoid a NullPointerException when a Context is defined in server.xml with a docBase but not the optional path. (markt)
  • Fix: 63333: Override the isAvailable() method in the JAASRealm so that only login failures caused by invalid credentials trigger account lock out when the LockOutRealm is in use. Patch provided by jchobantonov. (markt)
  • Fix: Add --no-jmx flag to allow disabling JMX in startup.Tomcat.main. (remm)

Coyote

  • Fix: The useAsyncIO boolean attribute on the Connector element value now defaults to true. (remm)
  • Fix: Possible HTTP/2 connection leak issue when using async with NIO. (remm)
  • Fix: Fix socket close discrepancies for NIO, now the wrapper close is used everywhere except for socket accept problems. (remm)
  • Fix: Implement poller timeout when using async IO with NIO. (remm)
  • Fix: Avoid creating and using object caches when they are disabled. (remm)
  • Fix: When running on newer JREs that don't support SSLv2Hello, don't warn that it is not available unless explicitly configured. (markt)
  • Fix: Change default value of pollerThreadCount of NIO to 1. (remm)
  • Fix: Associate BlockPoller thread name with its NIO connector for better readability. (remm)
  • Fix: The async HTTP/2 frame parser should tolerate concurrency so clearing shared buffers before attempting a read is not possible. (remm)
  • Update: Update the HTTP/2 connection preface and initial frame reading to be asynchronous instead of blocking IO. (remm)
  • Code: Refactor Hostname validation to improve performance. Patch provided by Uwe Hees. (markt)
  • Update: Add additional NIO2 style read and write methods closer to core NIO2, for possible use with an asynchronous workflow like CompletableFuture. (remm)
  • Fix: Expand HTTP/2 timeout handling to include connection window exhaustion on write. This is the fix for CVE-2019-10072. (markt)

Jasper

  • Fix: 63359: Ensure that the type conversions used when converting from strings for jsp:setProperty actions are correctly implemented as per section JSP.1.14.2.1 of the JSP 2.3 specification. (markt)

Other

  • Fix: 63335: Ensure that stack traces written by the OneLineFormatter are fully indented. The entire stack trace is now indented by an additional TAB character. (markt)
  • Fix: 63370: Message files (LocalStrings_*.properties) of the examples webapp not converted to ascii. (woonsan)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)
  • Add: Expand the coverage and quality of the Japanese translations provided with Apache Tomcat. Includes contributions by motohashi.yuki. (markt)
  • Add: Expand the coverage and quality of the Czech translations provided with Apache Tomcat. Includes contributions by Arnošt Havelka. (markt)
  • Fix: When using the OneLineFormatter, don't print a blank line in the log after printing a stack trace. (markt)
  • Update: Update the internal fork of Apache Commons FileUpload to 41e4047 (2019-04-24) pick up some enhancements. (markt)
  • Update: Update the internal fork of Apache Commons DBCP 2 to dcdbc72 (2019-04-24) to pick up some clean-up and enhancements. (markt)
  • Update: Update the internal fork of Apache Commons Pool 2 to 0664f4d (2019-04-30) to pick up some enhancements and bug fixes. (markt)

2019-04-13 Tomcat 9.0.19 (markt)

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)

not released Tomcat 9.0.18 (markt)

Catalina

  • Fix: 63196: Provide a default (X-Forwarded-Proto) for the protocolHeader attribute of the RemoteIpFilter and RemoteIpValve. (markt)
  • Fix: 63235: Refactor Charset cache to reduce start time. (markt)
  • Fix: 63249: Use a consistent log level (WARN) when logging the failure to register or deregister a JMX Bean. (markt)
  • Fix: 63249: Use a consistent log level (ERROR) when logging the LifecycleException associated with the failure to start or stop a component. (markt)
  • Fix: When the SSI directive fsize is used with an invalid target, return a file size of - rather than 1k. (markt)
  • Fix: 63251: Implement a work-around for a known JRE bug (JDK-8194653) that may cause a dead-lock when Tomcat starts. (markt)
  • Fix: 63275: When using a RequestDispatcher ensure that HttpServletRequest.getContextPath() returns an encoded path in the dispatched request. (markt)
  • Update: Add optional listeners for Server/Listener, as a slight variant of a standard listener. The difference is that loading is not fatal when it fails. This would allow adding example configuration to the standard server.xml if deemed useful. Storeconfig will not attempt to persist the new listener. (remm)
  • Fix: 63286: Document the differences in behaviour between the LogFormat directive in httpd and the pattern attribute in the AccessLogValve for %D and %T. (markt)
  • Fix: 63287: Make logging levels more consistent for similar issues of similar severity. (markt)
  • Fix: 63311: Add support for https URLs to the local resolver within Tomcat used to resolve standard XML DTDs and schemas when Tomcat is configured to validate XML configuration files such as web.xml. (markt)
  • Fix: Encode the output of the SSI printenv command. This is the fix for CVE-2019-0221. (markt)
  • Code: Use constants for SSI encoding values. (markt)
  • Add: When the CGI Servlet is configured with enableCmdLineArguments set to true, limit the encoded form of the individual command line arguments to those values allowed by RFC 3875. This restriction may be relaxed by the use of the new initialisation parameter cmdLineArgumentsEncoded. (markt)
  • Add: When the CGI Servlet is configured with enableCmdLineArguments set to true, limit the decoded form of the individual command line arguments to known safe values when running on Windows. This restriction may be relaxed by the use of the new initialisation parameter cmdLineArgumentsDecoded. This is the fix for CVE-2019-0232. (markt)

Coyote

  • Fix: Fix bad interaction between NIO2 async read API and the regular read. (remm)
  • Fix: Refactor NIO2 write pending strategy for the classic IO API. (remm)
  • Fix: Restore original maxConnections default for NIO2 as the underlying close issues have been fixed. (remm)
  • Fix: Harmonize NIO2 isReadyForWrite with isReadyForRead code. (remm)
  • Fix: When using a JSSE TLS connector that supported ALPN (Java 9 onwards) and a protocol was not negotiated, Tomcat failed to fallback to HTTP/1.1 and instead dropped the connection. (markt)
  • Fix: Correct a regression in the TLS connector refactoring in Tomcat 9.0.17 that prevented the use of PKCS#8 private keys with OpenSSL based connectors. (markt)
  • Fix: Fix NIO2 SSL edge cases. (remm)
  • Fix: When performing an upgrade from HTTP/1.1 to HTTP/2, ensure that any query string present in the original HTTP/1.1 request is passed to the HTTP/2 request processing. (markt)
  • Fix: When Tomcat writes a final response without reading all of an HTTP/2 request, reset the stream to inform the client that the remaining request body is not required. (markt)

Jasper

  • Add: Add support for specifying Java 11 (with the value 11) as the compiler source and/or compiler target for JSP compilation. (markt)
  • Add: Add support for specifying Java 12 (with the value 12) and Java 13 (with the value 13) 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. Based on a patch by Thomas Collignon. (markt)

Web applications

  • Fix: 63184: Expand the SSI documentation to provide more information on the supported directives and their attributes. Patch provided by nightwatchcyber. (markt)
  • Add: Add a note to the documentation about the risk of DoS with poorly written regular expressions and the RewriteValve. Patch provided by salgattas. (markt)

jdbc-pool

  • Fix: Improved maxAge handling. Add support for age check on idle connections. Connection that expired reconnects rather than closes it. Patch provided by toby1984. (kfujino)
  • Fix: 63320: Ensure that StatementCache caches statements that include arrays in arguments. (kfujino)

Other

  • Update: Update to the Eclipse JDT compiler 4.10. (markt)
  • Add: Expand the coverage and quality of the Spanish translations provided with Apache Tomcat. Includes contributions by Ulises Gonzalez Horta. (markt)
  • Add: Expand the coverage and quality of the Czech translations provided with Apache Tomcat. Includes contributions by Arnošt Havelka. (markt)
  • Add: Expand the coverage and quality of the Chinese translations provided with Apache Tomcat. Includes contributions by winsonzhao and wjt. (markt)
  • Add: Expand the coverage and quality of the Russian translations provided with Apache Tomcat. (kkolinko)
  • Add: Expand the coverage and quality of the Japanese translations provided with Apache Tomcat. (kfujino)
  • Add: Expand the coverage and quality of the Korean translations provided with Apache Tomcat. (woonsan)
  • Add: Expand the coverage and quality of the German translations provided with Apache Tomcat. (fschumacher)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)

2019-03-18 Tomcat 9.0.17 (markt)

Catalina

  • 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)
  • 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 default 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)
  • Fix: Always use the absolute path of the docBase during the deployment process to determine the Context name, deployment type, whether the docBase is located within the appBase etc. (markt)

Coyote

  • 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: 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)
  • 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: Ensure enough buffer space when using TLS with NIO2 by using the main read buffer to store additional decrypted data. (remm)
  • 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: 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

  • Add: Add feature that discover local member from the static member list. (kfujino)
  • Fix: Ensure that members registered in the addSuspects list are static members. (kfujino)

Other

  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. (remm)
  • 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)
  • Add: Expand the coverage and quality of the Russian translations provided with Apache Tomcat. (kkolinko)
  • Fix: Fix the artifactId of tomcat-i18n-cs. (rjung)
  • Add: Expand the coverage and quality of the Korean translations provided with Apache Tomcat. (woonsan)
  • Add: Expand the coverage and quality of the Chinese translations provided with Apache Tomcat. Includes contributions by winsonzhao. (markt)
  • Add: Expand the coverage and quality of the Czech translations provided with Apache Tomcat. Includes contributions by Arnošt Havelka. (markt)
  • Add: Expand the coverage and quality of the Spanish translations provided with Apache Tomcat. Includes contributions by Ulises Gonzalez Horta. (markt)

2019-02-08 Tomcat 9.0.16 (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: 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)

not released Tomcat 9.0.15 (markt)

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: 63002: Fix setting rewrite qsdiscard flag. (remm)
  • 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)
  • Fix: Ensure that the HEAD response is consistent with the GET response when HttpServlet is relied upon to generate the HEAD response and the GET response uses chunking. (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)
  • Update: Add basic health check valve. (remm)
  • Fix: Correct a bug exposed in 9.0.14 and ensure that the Tomcat terminates in a timely manner when running as a service. (markt)
  • Fix: Log a message when using a Connector that requires Apr without enabling the AprLifecycleListener first. (csutherl)
  • Fix: Utility thread count for special negative or zero values will again be based on Runtime.getRuntime().availableProcessors(). (remm)
  • 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)
  • Fix: 63078: Ensure the utility thread pool is at least two, as the deployer uses a blocking pattern. (remm, 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: Add SSL configuration options to the JMX remote listener using the SSLHostConfig framework. (remm)
  • 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)
  • Fix: Fix use of write timeout instead of read timeout for HTTP/2 NIO2 frame read. (remm)
  • Fix: Fix incorrect APR sendfile thread stop. (remm)

Jasper

  • Fix: 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)

Tribes

  • Update: Add dns-ping support to enumerate cluster members. This is much simpler than getting the pod list but it does not indicate pod status. Submitted by Maxime Beck. (remm)
  • Fix: Never expire the local member from a Membership. (remm)

Other

  • Update: Update container image with monitoring contraptions. (remm)
  • Add: Expand the coverage and quality of the Korean translations provided with Apache Tomcat. Includes contributions from woonsan and Chris Cho. (markt)
  • Add: Expand the coverage and quality of the Japanese translations provided with Apache Tomcat. Includes contributions from kfujino, Yujiorama and motohashi.yuki. (markt)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. Includes contributions from remm, Ludovic Pénet and evernat. (markt)
  • Add: Expand the coverage and quality of the German translations provided with Apache Tomcat. Includes contributions from fschumacher, Stefan and burghard. (markt)
  • Add: Expand the coverage and quality of the Chinese (simplified) translations provided with Apache Tomcat. Includes contributions from winsonzhao, Lanranzi, shawn, Winsonzhoa, JinXiqian, RichardHo, qingshi huang, Greenman0007, Jim Ma, huxing, 袁宇杰 and evernat. (markt)
  • Add: Expand the coverage and quality of the Spanish translations provided with Apache Tomcat. Includes contributions from Ulises Gonzalez Horta, Israel, Eduardo Quintanilla and Miguel Ortega. (markt)
  • Add: Expand the coverage and quality of the Russian translations provided with Apache Tomcat. Includes contributions from Andrei Maiseyenka and solomax. (markt)
  • Add: Expand the coverage and quality of the Brazilian Portuguese translations provided with Apache Tomcat. Includes contributions from Victor Caetano and Dabilo. (markt)
  • 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: 63072: Remove extras (JMX remote listener and webservices object factories) and merge them back into the core build. (remm)
  • Add: Update the internal fork of Apache Commons FileUpload to pick up the changes in the Apache Commons FileUpload 1.4 release. (markt)
  • Update: Update the internal fork of Apache Commons DBCP 2 to de20b77 (2019-01-29) to pick up some bug fixes and enhancements. (markt)
  • 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)

2018-12-12 Tomcat 9.0.14 (markt)

Catalina

  • Fix: 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)
  • Fix: The default Servlet should not override a previously set content-type. (remm)
  • Fix: Fix storeconfig for the cluster encryption interceptor key attribute. (remm)
  • Add: Add a scheduled executor to the Server, which can be used to process periodic utility tasks. The utility threads are non daemon by default. (remm)
  • Update: Refactor container background processor using the Server executor, and add monitoring to reschedule it in case of an unexpected error. (remm)
  • Update: Refactor parallel deployment threads using the Server executor. (remm)
  • Add: Introduce a ConfigurationSource API to standardize access to the core configuration resources of Tomcat. (remm)
  • Update: Update the Tomcat embedded API by allowing to set a configuration source, which will allow processing of core configuration. (remm)
  • Update: Refactor processing of server.xml, web.xml, context.xml, other configuration files and resources using the ConfigurationSource API. JASPIC persistent providers load and store remains file based. StoreConfig Tomcat configuration files storing remains file based at their previous default locations. (remm)
  • 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: Fix more storeconfig issues with duplicated SSL attributes. (remm)
  • Fix: 62924: Fix file descriptor leak introduced in the code that monitors tomcat-users.xml for modifications. (markt)
  • Update: Add periodic event notification for lifecycle listeners configured on the Server. (remm)
  • Fix: 62968: Avoid unnecessary (and relatively expensive) getResources() call in the Mapper when processing rule 7. (markt)
  • Update: Update the recommended minimum Tomcat Native version to 1.2.19. (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. Patch provided by rmannibucau. (markt)
  • Fix: Filter out tomcat-web.xml from the watched resources list in storeconfig. (remm)
  • Fix: 62988: Fix the LoadBalancerDrainingValve so it works when the session cookie configuration is not explicitly declared. Based on a patch provided by Andreas Kurth. (markt)

Coyote

  • Update: Refactor connector async timeout threads using a scheduled executor. (remm)
  • Update: Avoid using a dedicated thread for accept on the NIO2 connector, it is always less efficient. (remm)
  • Update: Load SSL configuration resources for JSSE using the ConfigurationSource API. OpenSSL use requires actual files. (remm)
  • Fix: 62899: Prevent the incorrect timing out of connections when Servlet non-blocking I/O is used to read a request body over an HTTP/2 stream. (markt)
  • Fix: Avoid bad SSLHostConfig JMX registrations before init. (remm)
  • Fix: Avoid a potential hang when a client connects using TLS 1.0 to a Tomcat HTTPS connector configured to use NIO or NIO2 with OpenSSL 1.1.1 or later. (markt)

Jasper

  • Update: Update the Eclipse Compiler for Java to 4.9. Additional patch by Lukasz Jader. (markt)
  • Add: 53737: Extend JspC, the precompilation tool, to include support for resource JARs. (markt)
  • Fix: 62976: Avoid an IllegalStateException when using background compilation when tag files are packaged in JAR files. (markt)

Web applications

  • Add: 53553: Add the ability to specify a context.xml from the server to use when uploading a web application for deployment with the Manager web application. Patch provided by Anton Lindström. (markt)
  • Fix: 62918: Filter out subtype mbeans to avoid breaking the connector status page. (remm)
  • Fix: Unify letter case of the word 'How-To' in the webapps (csutherl)

Tribes

  • Update: Refactor various operations performed in tribes using a scheduled executor. When tribes is not running standalone, it will use the executor from the Catalina Server. If running independently, the Channel will provide the executor. (remm)
  • Fix: Make EncryptInterceptor thread-safe. This makes this interceptor actually usable. (schultz/markt)
  • Add: Add support for GCM mode to EncryptInterceptor. (schultz)

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)
  • Add: Expand the coverage and quality of the French translations provided with Apache Tomcat. Includes contributions from remm, soliplaya, Ludovic Pénet, David, NicolasG and bdelacretaz. (markt)
  • Add: Add Simplified Chinese translations to the translations to Apache Tomcat. Includes contributions from Darren Luo, syseal, Winsonzhao, 袁宇杰, Lanranzi, ZhangJieWen, Jerry, yinzhili001, 安柏诚, shawn, lavender, Zheng Feng, zengwc, RichardHo, mm, gingshi huang, Bob, geekwang, zheng, Deanzhg, Tianfengjingjing, Panblack, oking, Dave Newman, Cnfnss, Jim Ma, 852394875, huxing and Greenman0007. (markt)
  • Add: Add Korean translations to Apache Tomcat. Includes contributions from woonsan, JunSang Park, song choe and OhChan. (markt)
  • Add: Expand the coverage and quality of the Spanish translations provided with Apache Tomcat. Includes contributions from Ulises Gonzalez Horta, Israel, Eduardo Quintanilla and Miguel suarez. (markt)
  • Add: Expand the coverage and quality of the Russian translations provided with Apache Tomcat. Includes contributions from solomax, Rafael Sachakov and Andrei Maiseyenka. (markt)
  • Add: Expand the coverage and quality of the German translations provided with Apache Tomcat. Includes contributions from Matk80, burghard, Daniel Wehringer and Felix Schumacher. (markt)
  • Add: Expand the coverage and quality of the Japanese translations provided with Apache Tomcat. Includes contributions from Yujiorama, motohashi.yuki and kfujino. (markt)
  • Add: Add Brazilian Portuguese translations to Apache Tomcat. Includes contributions from geraldo netto. (markt)
  • Fix: Include Brazilian Portuguese translations in the standard Tomcat distribution. (markt)
  • Fix: Include Simplified Chinese translations in the standard Tomcat distribution. (markt)
  • Fix: Include Korean translations in the standard Tomcat distribution. (markt)
  • Add: Add a packaging method for Tomcat using Maven, as well as a container build file for it. (remm)
  • Fix: Add XML Namespace to the project element of all POM files so that the XML files are Well Formed and Valid. (csutherl)
  • Add: 53930: Add support for the CATALINA_OUT_CMD environment variable that defines a command to which captured stdout and stderr will be redirected. Patch provided by Casey Lucas. (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)
  • Update: Add i18n to many strings that lacked it. (remm)

2018-11-07 Tomcat 9.0.13 (markt)

Catalina

  • Add: 58590: 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. (markt)
  • Add: 61171: Add the portOffset attribute to the Server element which is added to the configured shutdown and Connector ports. Based on a patch by Marek Czernek. (markt)
  • Add: 61692: Add the ability to control which HTTP methods are handled by the CGI Servlet via a new initialization parameter cgiMethods. (markt)
  • Fix: 62687: Expose content length information for resources when using a compressed war. (remm)
  • Fix: 62737: Fix rewrite substitutions parsing of {} nesting. (remm)
  • Fix: Add rewrite flags output when getting the rewrite configuration back. (remm)
  • Fix: Add missing qsdiscard flag to the rewrite flags as a cleaner way to discard the query string. (remm)
  • Add: 62755: Add ability to opt out of adding the default web.xml config when embedding Tomcat and adding a context via addWebapp(). Call setAddDefaultWebXmlToWebapp(false) to prevent the automatic config. (isapir)
  • 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)
  • Fix: Ensure that a canonical path is always used for the docBase of a Context to ensure consistent behaviour. (markt)
  • Fix: 62803: Fix SSL connector configuration processing in storeconfig. (remm)
  • Fix: 62797: Pass throwable to keep client aborts with status 200 rather than 500. Patch submitted by zikfat. (remm)
  • Fix: 62802: Restore the appContextProtection attribute to the JreMemoryLeakPreventionListener as application code may still trigger this memory leak. (markt)
  • Fix: 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)
  • Add: 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)
  • Add: 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)
  • Code: Refactor the Connector so that the port is obtained from the Endpoint rather than a local field that could end up out of sync. (markt)
  • Fix: Correct a typo in the Spanish resource files. Patch provided by Diego Agulló. (markt)
  • Fix: 62868: Order the Enumeration<URL> provided by WebappClassLoaderBase.getResources(String) according to the setting of the delegate flag. (markt)

Coyote

  • Add: 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)
  • 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)
  • Fix: Make PEM file parser a public utility class. (remm)
  • Fix: 62739: Do not reject requests with an empty HTTP Host header. Such requests are unusual but not invalid. Patch provided by Michael Orr. (markt)
  • Add: 62748: Add TLS 1.3 support for the APR/Native connector and the NIO/NIO2 connector when using the OpenSSL backed JSSE implementation. (schultz/markt)
  • Fix: 62791: Remove an unnecessary check in the NIO TLS implementation that prevented from secure WebSocket connections from being established. (markt)
  • Fix: Fix server initiated TLS renegotiation to obtain a client certificate when using NIO/NIO2 and the OpenSSL backed JSSE TLS implementation. (markt)
  • Fix: Ensure open sockets etc. are cleaned up if the socket binding process fails. (markt)
  • Fix: 62871: Improve MBeans for Endpoint instances (type ThreadPool in JMX) by using explicit declaration of attributes and operations rather than relying on introspection. Add a new MBean to expose the Socketproperties values. (markt)

Jasper

  • Fix: Correct parsing of XML whitespace in TLD function signatures that incorrectly only looked for the space character. (markt)
  • Fix: 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)
  • Fix: 62721: Correct generation of web.xml header when using JspC. (markt)
  • Fix: 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)

WebSocket

  • Fix: 62731: Make the URI returned by HandshakeRequest.getRequestURI() and Session.getRequestURI() absolute so that the scheme, host and port are accessible. (markt)

Web applications

  • Fix: 62676: Expand the CORS filter documentation to make it clear that explicit configuration is required to enable support for cross-origin requests. (markt)
  • Fix: 62712: Correct NPE in Manager application when attempting to view configured certificates for an APR/native TLS connector. (markt)
  • Fix: 62761: Correct the advanced CORS example in the Filter documentation to use a valid configuration. (markt)
  • Fix: 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)
  • Fix: Create a little visual separation between the Undeploy button and the other buttons in the Manager application. Patch provided by Łukasz Jąder. (markt)

Tribes

  • Add: Add setMembershipService method to the MembershipProvider. (kfujino)
  • Add: Experimental Kubernetes aware cloud membership provider, based on code by Maxime Beck. Contains code derived from jgroups. (remm/kfujino)
  • Fix: Move the event notification ThreadPoolExecutor to MembershipProviderBase. (kfujino)
  • Fix: Even if all members have already disappeared and PING can not be sent, ensure that members will be expired. (kfujino)
  • Fix: Ensure that remove the member from suspect list when member added. (kfujino)
  • Add: 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)

Other

  • Fix: Port DBCP transaction synchronization registry fix (commit d49d45e). (remm)
  • Update: Update the internal fork of Apache Commons Pool 2 to d4e0e88 (2018-09-12) to pick up some bug fixes and enhancements. (markt)
  • Add: 62705: Added a fail fast check for minimum required Apache Ant version 1.9.8 when building Tomcat. (isapir)
  • Add: Added ant target ide-intellij to create an IntelliJ IDEA project. (isapir)
  • Add: Utility JSON parser generated from a public domain javacc grammar written by Robert Fischer. (remm)
  • Update: 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)

2018-09-10 Tomcat 9.0.12 (markt)

Catalina

  • 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: 62667: Add recursion to rewrite substitution parsing. (remm)
  • 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: 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: When generating a redirect to a directory in the Default Servlet, avoid generating a protocol relative redirect. (markt)

Coyote

  • Fix: Fix potential deadlocks when using asynchronous Servlet processing with HTTP/2 connectors. (markt)
  • Fix: 62620: Fix corruption of response bodies when writing large bodies using asynchronous processing over HTTP/2. (markt)
  • Fix: 62628: Additional fixes for output corruption of response bodies when writing large bodies using asynchronous processing over HTTP/2. (markt)
  • Code: Support for Netware in the org.apache.tomcat.jni package has been removed as there has not been a supported Netware platform for a number of years. (markt)

Jasper

  • 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)

Web applications

  • 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 9.0.x is DBCP 2. Correct the names of some DBCP 2 configuration attributes that changed between 1.x and 2.x. (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)

Other

  • Fix: Switch the build script to use http for downloads from an ASF mirror using the closer.lua script to avoid failures due to HTTPS to HTTP redirects. (rjung)

2018-08-17 Tomcat 9.0.11 (markt)

Catalina

  • Add: Make the isLocked() method of the LockOutRealm public and expose the method via JMX. (markt)
  • Add: 53387: Add support for regular expression capture groups to the SSI servlet and filter. (markt)
  • Fix: 53411: Improve the handling of HTTP requests that do not explicitly specify a host name when no default host is configured. Also improve the tracking of changes to the default host as hosts are added and removed while Tomcat is running. (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: Make logout more robust if JASPIC subject is unexpectedly unavailable. (markt)
  • Fix: 62547: JASPIC cleanSubject() was not called on logout when the authenticator was configured to cache the authenticated Principal. Patch provided by Guillermo González de Agüero. (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)
  • Fix: Use short circuit logic to prevent potential NPE in CorsFilter. (fschumacher)
  • Code: Simplify construction of appName from container name in JAASRealm. (fschumacher)
  • Code: Remove ServletException from declaration of Tomcat.addWebapp(String,String) since it is never thrown. Patch provided by Tzafrir. (markt)

Coyote

  • Code: Refactor HTTP date creation and parsing to reduce code duplication, reduce the use of ThreadLocals and to increase the use of caching. (markt)
  • Fix: 56676: Add a default location for the native library, as ${catalina.home}/bin, which the testsuite already uses. (remm)
  • Update: 60560: Add support for using an inherited channel to the NIO connector. Based on a patch submitted by Thomas Meyer with testing and suggestions by Coty Sutherland. (remm)
  • Fix: 62507: Ensure that JSSE based TLS connectors work correctly with a DKS keystore. (markt)
  • 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: 62515: When a connector is configured (via setting bindOnInit to false) to bind/unbind the server socket during start/stop, close the socket earlier in the stop process so new connections do not sit in the TCP backlog during the shutdown process only to be dropped as stop completes. In this scenario new connections will now be refused immediately. (markt)
  • Fix: 62526: Correctly handle PKCS12 format key stores when the key store password is configured to be the empty string. (markt)
  • Fix: 62605: Ensure ReadListener.onDataAvailable() is called when the initial request body data arrives after the request headers when using asynchronous processing over HTTP/2. (markt)
  • Fix: 62614: Ensure that WriteListener.onWritePossible() is called after isReady() returns false and the window size is subsequently incremented when using asynchronous processing over HTTP/2. (markt)

Jasper

  • 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)
  • Add: 62453: Add a performance optimisation for using expressions in tags that depend on uninitialised tag attributes with implied scope. Generally, using an explicit scope with tag attributes in EL is the best way to avoid various potential performance issues. (markt)
  • Fix: Correctly decode URL paths (+ should not be decoded to a space in the path) in the Jasper class loader. (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)

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: Add documents for Static Membership service. (kfujino)
  • Add: 62561: Add advanced class loader configuration information regarding the use of the Server and Shared class loaders to the documentation web application. (markt)

Tribes

  • Fix: Ensures that the specified rxBufSize is correctly set to receiver buffer size. (kfujino)
  • Fix: Correct the stop order of the Channel components. It stops in the reverse order to that at startup. (kfujino)
  • Add: Added new StaticMembership implementation. This implementation does not require any additional configuration of other ChannelInterceptors. It works only with membership service. (kfujino)

Other

  • Update: Support building with Java 9+ while preserving the Java 8 compatibility at runtime (requires Ant 1.9.8 or later). (ebourg)
  • Update: Update WSDL4J library to version 1.6.3 (from 1.6.2). (kkolinko)
  • Update: Update JUnit library to version 4.12 (from 4.11). (kkolinko)
  • Update: Downgrade CGLib library used for testing with EasyMock to version 2.2.2 (from 2.2.3) as version 2.2.3 is not available from Maven Central. (markt)
  • Add: Implement checksum checks when downloading dependencies that are used to build Tomcat. (kkolinko)
  • Fix: Fixed spelling. Patch provided by Jimmy Casey via GitHub. (violetagg)
  • Update: Update the internal fork of Apache Commons Pool 2 to 3e02523 (2018-08-09) to pick up some bug fixes and enhancements. (markt)
  • Update: Update the internal fork of Apache Commons DBCP 2 to abc0484 (2018-08-09) to pick up some bug fixes and enhancements. (markt)
  • Fix: Correct various spelling errors throughout the source code and documentation. Patch provided by Kazuhiro Sera. (markt)

2018-06-25 Tomcat 9.0.10 (markt)

Catalina

  • Fix: 62476: Use GMT timezone for the value of Expires header as required by HTTP specification (RFC 7231, 7234). (kkolinko)

not released Tomcat 9.0.9 (markt)

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: JNDI resources that are defined with injection targets but no value are now treated as if the resource is not defined. (markt)
  • Fix: Ensure that JNDI names used for <lookup-name> entries in web.xml and for lookup elements of @Resource annotations specify a name with an explicit java: namespace. (markt)
  • Fix: 50019: Add support for <lookup-name>. Based on a patch by Gurkan Erdogdu. (markt)
  • Add: Add the AuthenticatedUserRealm for use with CLIENT-CERT and SPNEGO when just the authenticated user name is required. (markt)
  • Fix: 50175: Add a new attribute to the standard context implementation, skipMemoryLeakChecksOnJvmShutdown, that allows the user to configure Tomcat to skip the memory leak checks usually performed during web application stop if that stop is triggered by a JVM shutdown. (markt)
  • Add: 51497: Add an option, ipv6Canonical, to the AccessLogValve that causes IPv6 addresses to be output in canonical form defined by RFC 5952. (ognjen/markt)
  • Add: 51953: 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. (markt)
  • Fix: 62343: Make CORS filter defaults more secure. This is the fix for CVE-2018-8014. (markt)
  • Fix: Ensure that the web application resources implementation does not incorrectly cache results for resources that are only visible as class loader resources. (markt)
  • Fix: 62387: Do not log a warning message if the file based persistent session store fails to delete the file for a session when the session is invalidated because the file has not been created yet. (markt)
  • Fix: Make all loggers associated with Tomcat provided Filters non-static to ensure that log messages are not lost when a web application is reloaded. (markt)
  • Fix: Correct the manifest for the annotations-api.jar. The JAR implements the Common Annotations API 1.3 and the manifest should reflect that. (markt)
  • Fix: Switch to non-static loggers where there is a possibility of a logger becoming associated with a web application class loader causing log messages to be lost if the web application is stopped. (markt)
  • Add: 62389: Add the IPv6 loopback address to the default internalProxies regular expression. Patch by Craig Andrews. (markt)
  • Fix: In the RemoteIpValve and RemoteIpFilter, correctly handle the case when the request passes through one or more trustedProxies but no internalProxies. Based on a patch by zhanhb. (markt)
  • Fix: Correct the logic in MBeanFactory.removeConnector() to ensure that the correct Connector is removed when there are multiple Connectors using different addresses but the same port. (markt)
  • Fix: Make JAASRealm mis-configuration more obvious by requiring the authenticated Subject to include at least one Principal of a type specified by userClassNames. (markt)

Coyote

  • Fix: Correct a regression in the error page handling that prevented error pages from issuing redirects or taking other action that required the response status code to be changed. (markt)
  • Fix: Consistent exception propagation for NIO2 SSL close. (remm)
  • Fix: Followup sync fix for NIO2 async IO blocking read/writes. (remm)
  • Fix: Log an error message if the AJP connector detects that the reverse proxy is sending AJP messages that are too large for the configured packetSize. (markt)
  • Fix: Relax Host validation by removing the requirement that the final component of a FQDN must be alphabetic. (markt)
  • Fix: 62371: Improve logging of Host validation failures. (markt)
  • Fix: Fix a couple of unlikely edge cases in the shutting down of the APR/native connector. (markt)
  • Fix: Add missing handshake timeout for NIO2. (remm)
  • Fix: Correctly handle a digest authorization header when the user name contains an escaped character. (markt)
  • Fix: Correctly handle a digest authorization header when one of the hex field values ends the header with in an invalid character. (markt)
  • Fix: Correctly handle an invalid quality value in an Accept-Language header. (markt)
  • Docs: 62423: Fix SSL docs CRL attribute typo. (remm)
  • Fix: Improve IPv6 validation by ensuring that IPv4-Mapped IPv6 addresses do not contain leading zeros in the IPv4 part. Based on a patch by Katya Stoycheva. (markt)
  • Fix: Fix NullPointerException thrown from replaceSystemProperties() when trying to log messages. (csutherl)
  • Fix: Avoid unnecessary processing of async timeouts. (markt)

Jasper

  • Add: 50234: Add the capability to generate a web-fragment.xml file to JspC. (markt)
  • Fix: 62080: Ensure that all reads of the current thread's context class loader made by the UEL API and implementation are performed via a PrivilegedAction to ensure that a SecurityException is not triggered when running under a SecurityManager. (mark)
  • 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)
  • Fix: Enable JspC from Tomcat 9 to work with Maven JspC compiler plug-ins written for Tomcat 8.5.x. Patch provided by Pavel Cibulka. (markt)
  • Fix: Update web.xml, web-fragment.xml and web.xml extracts generated by JspC to use the Servlet 4.0 version of the relevant schemas. (markt)

Cluster

  • Fix: Remove duplicate calls when creating a replicated session to reduce the time taken to create the session and thereby reduce the chances of a subsequent session update message being ignored because the session does not yet exist. (markt)
  • Add: Add the method to send a message with a specified sendOptions. (kfujino)
  • Fix: When sending the GET_ALL_SESSIONS message, make sure that sends with asynchronous option in order to avoid ack timeout. Waiting to receive the ALL_SESSION_DATA message should be done with waitForSendAllSessions instead of ACK. (kfujino)

WebSocket

  • Update: Use NIO2 API for websockets writes. (remm)
  • Fix: When decoding of path parameter failed, make sure to throw DecodeException instead of throwing ArrayIndexOutOfBoundsException. (kfujino)
  • Fix: Improve the handling of exceptions during TLS handshakes for the WebSocket client. (markt)
  • Fix: Enable host name verification when using TLS with the WebSocket client. (markt)

Web applications

  • Fix: 62395: Clarify the meaning of the connector attribute minSpareThreads in the documentation web application. (markt)
  • Fix: Correct the documentation for the allowHostHeaderMismatch attribute of the standard HTTP Connector implementations. (markt)

Tribes

  • Fix: Ensure that the correct default value is returned when retrieve unset properties in McastService. (kfujino)
  • Add: Make MembershipService more easily extensible. (kfujino)

jdbc-pool

  • Fix: When logValidationErrors is set to true, the connection validation error is logged as SEVERE instead of WARNING. (kfujino)

Other

  • Fix: Ensure that Apache Tomcat may be built from source with Java 11. (markt)
  • Add: 52381: Add OSGi metadata to JAR files. (markt)
  • Fix: 62391: Remove references to javaw.exe as this file is not required by Tomcat and the references prevent the use of the Server JRE. (markt)
  • Update: 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. (markt)
  • Update: 62458: Update the internal fork of Commons Pool 2 to dfef97b (2018-06-18) to pick up some bug fixes and enhancements. (markt)
  • Update: Update the internal fork of Commons DBCP 2 to 2.4.0. (markt)

2018-05-03 Tomcat 9.0.8 (markt)

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 handling 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 specifying 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)

2018-04-07 Tomcat 9.0.7 (markt)

Catalina

  • Fix: 51195: Avoid a false positive report of a web application memory leak by clearing ObjectStreamClass$Caches of classes loaded by the web application when the web application is stopped. (markt)
  • Fix: 52688: 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. (markt)
  • Fix: Ensure the MBean names for the SSLHostConfig and SSLHostConfigCertificate are correctly formed when the Connector is bound to a specific IP address. (markt)
  • Fix: 62168: When using the PersistentManager honor a value of -1 for minIdleSwap and do not swap out sessions to keep the number of active sessions under maxActive. Patch provided by Holger Sunke. (markt)
  • Fix: 62172: Improve Javadoc for org.apache.catalina.startup.Constants and ensure that the constants are correctly used. (markt)
  • Fix: 62175: Avoid infinite recursion, when trying to validate a session while loading it with PersistentManager. (fschumacher)
  • Fix: Ensure that NamingContextListener instances are only notified once of property changes on the associated naming resources. (markt)
  • Add: 62224: Disable the forkJoinCommonPoolProtection of the JreMemoryLeakPreventionListener when running on Java 9 and above since the underlying JRE bug has been fixed. (markt)

Coyote

  • Fix: Avoid potential loop in APR/Native poller. (markt)
  • Fix: Ensure streams that are received but not processed are excluded from the tracking of maximum ID of processed streams. (markt)
  • Fix: Refactor the check for a paused connector to consistently prevent new streams from being created after the connector has been paused. (markt)
  • Fix: Improve debug logging for HTTP/2 pushed streams. (markt)
  • Fix: The OpenSSL engine SSL session will now ignore invalid accesses. (remm)
  • Fix: 62177: Correct two protocol errors with HTTP/2 PUSH_PROMISE frames. Firstly, the HTTP/2 protocol only permits pushes to be sent on peer initiated requests. Secondly, pushes must be sent in order of increasing stream ID. These restriction were not being enforced leading to protocol errors at the client. (markt)

Web applications

  • Add: Add document for FragmentationInterceptor. (kfujino)
  • Add: Document how the roles for an authenticated user are determined when the CombinedRealm is used. (markt)
  • Fix: 62163: Correct the Tomcat Setup documentation that incorrectly referred to Java 7 as the minimum version rather than Java 8. (markt)

Tribes

  • Fix: Add JMX support for FragmentationInterceptor in order to prevent warning of startup. (kfujino)

jdbc-pool

  • Fix: Ensure that SQLWarning has been cleared when connection returns to the pool. (kfujino)
  • Add: Enable clearing of SQLWarning via JMX. (kfujino)
  • Fix: Ensure that parameters have been cleared when PreparedStatement and/or CallableStatement are cached. (kfujino)
  • Fix: Enable PoolCleaner to be started even if validationQuery is not set. (kfujino)

Other

  • Update: Update the build script so MD5 hashes are no longer generated for releases as per the change in the ASF distribution policy. (markt)
  • Fix: 62164: Switch the build script to use TLS for downloads from SourceForge and Maven Central to avoid failures due to HTTP to HTTPS redirects. (markt)
  • Add: Always report the OS's umask when launching the JVM. (schultz)
  • Add: Add managed connections package to the package renamed DBCP 2 to provide a complete DBCP 2 in Tomcat. (remm)

2018-03-08 Tomcat 9.0.6 (markt)

Catalina

  • Fix: 43866: Add additional attributes to the Manager to provide control over which listeners are called when an attribute is added to the session when it has already been added under the same name. This is to aid clustering scenarios where setAttribute() is often called to signal that the attribute value has been mutated and needs to be replicated but it may not be required, or even desired, for the associated listeners to be triggered. The default behaviour has not been changed. (markt)
  • Fix: Minor optimization when calling class transformers. (rjung)
  • 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)
  • Add: 41007: Add the ability to specify static HTML responses for specific error codes and/or exception types with the ErrorReportValve. (markt)
  • Fix: Prevent Tomcat from applying gzip compression to content that is already compressed with brotli compression. Based on a patch provided by burka. (markt)
  • Fix: 62090: Null container names are not allowed. (remm)
  • Fix: 62104: Fix programmatic login regression as the NonLoginAuthenticator has to be set for it to work (if no login method is specified). (remm)
  • Fix: 62117: Improve error message in catalina.sh when calling kill -0 <pid> fails. Based on a suggestion from Mark Morschhaeuser. (markt)
  • Fix: 62118: Correctly create a JNDI ServiceRef using the specified interface rather than the concrete type. Based on a suggestion by Ángel Álvarez Páscua. (markt)
  • Fix: Fix for RequestDumperFilter log attribute. Patch provided by Kirill Romanov via Github. (violetagg)
  • Fix: 62123: Avoid ConcurrentModificationException when attempting to clean up application triggered RMI memory leaks on web application stop. (markt)
  • Add: When a deployment descriptor is deployed that includes a path attribute, log a warning that the path attribute will be ignored. (markt)
  • Add: When a deployment descriptor is deployed that references an external docBase and, as a result, a docBase under the appBase will be ignored, log a warning. (markt)
  • Fix: Correct a regression in the fix for 60276 that meant that compression was applied to all MIME types. Patch provided by Stefan Knoblich. (markt)

Coyote

  • Add: Add async HTTP/2 parser for NIO2. (remm)
  • Fix: Add minor HPACK fixes, based on fixes by Stuart Douglas. (remm)
  • Fix: 61751: Follow up fix so that OpenSSL engine returns underflow when unwrapping if no bytes were produced and the input is empty. (remm)
  • Fix: Minor OpenSSL engine cleanups. (remm)
  • Fix: NIO SSL handshake should throw an exception on overflow status, like NIO2 SSL. (remm)

Web applications

  • Add: 47467: When deploying a web application via the manager application and a path is not explicitly specified, derive it from the provided deployment descriptor or, if that is not present, the WAR or DIR. (markt)
  • Add: 48672: Add documentation for the Host Manager web application. Patch provided by Marek Czernek. (markt)
  • Add: Add support for specifying the application version when deploying an application via the Manager application HTML interface. (markt)
  • Add: Work-around a known, non-specification compliant behaviour in some versions of IE that can allow XSS when the Manager application generates a plain text response. Based on a suggestion from Muthukumar Marikani. (markt)

2018-02-11 Tomcat 9.0.5 (markt)

Catalina

  • Fix: Prevent a stack trace being written to standard out when running on Java 10 due to changes in the LogManager implementation. (markt)
  • Fix: Avoid duplicate load attempts if one has been made already. (remm)
  • Fix: Avoid NPE in ThreadLocalLeakPreventionListener if there is no Engine. (remm)
  • Fix: 62000: When a JNDI reference cannot be resolved, ensure that the root cause exception is reported rather than swallowed. (markt)
  • Fix: 62036: When caching an authenticated user Principal in the session when the web application is configured with the NonLoginAuthenticator, cache the internal Principal object rather than the user facing Principal object as Tomcat requires the internal object to correctly process later authorization checks. (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)
  • Fix: Provide a correct Allow header when responding to an HTTP TRACE request for a JSP with a 405 status code. (markt)
  • Fix: When using Tomcat embedded, only perform Authenticator configuration once during web application start. (markt)
  • Fix: 62067: Correctly apply security constraints mapped to the context root using a URL pattern of "". (markt)
  • Fix: Process all ServletSecurity annotations at web application start rather than at servlet load time to ensure constraints are applied consistently. (markt)

Coyote

  • Fix: 61751: Fix truncated request input streams when using NIO2 with TLS. (markt)
  • Fix: 62023: Log error reporting multiple SSLHostConfig elements when using the APR Connector instead of crashing Tomcat. (csutherl)
  • Fix: 62032: Fix NullPointerException when certificateFile is not defined on an SSLHostConfig and unify the behavior when a certificateFile is defined but the file does not exist for both JKS and PEM file types. (csutherl)
  • Fix: Ensure that the toString() method behaves consistently for ByteChunk and CharChunk and that null is returned when toString() is called 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: 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 processing an HTTP 1.0 request in the HTTP connector and no host information is provided in the request, obtain the server port from the local port rather than the connector configuration since the configured value maybe zero. (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)
  • Fix: Update the host validation to permit host names and components of domain names (excluding top-level domains) to start with a number and to ensure that top-level domains are fully alphabetic. (markt)
  • Fix: 62053: Fix NPE when writing push headers with HTTP/2 NIO2. Patch submitted by Holger Sunke. (remm)

Jasper

  • Fix: Include an HTTP Allow header when a JSP generates a 405 response due to a request with an unsupported method. (markt)
  • Add: Add support for the HTTP OPTION method to JSPs. The JSP specification explicitly states that the behaviour for this method is undefined for JSPs so this is a Tomcat specific behaviour. (markt)

WebSocket

  • Fix: 62024: When closing a connection with an abnormal close, close the socket immediately rather than waiting for a close message from the client that may never arrive. (markt)

Webapps

  • Fix: 62049: Fix missing class from manager 404 JSP error page. (remm)

jdbc-pool

  • Add: Enhance the JMX support for jdbc-pool in order to expose PooledConnection and JdbcInterceptors. (kfujino)
  • Add: Add MBean for PooledConnection. (kfujino)
  • Add: 62011: Add MBean for StatementCache. (kfujino)
  • Add: Expose the cache size for each connection via JMX in StatementCache. (kfujino)
  • Add: Add MBean for ResetAbandonedTimer. (kfujino)

Other

  • Update: Update the list with the public interfaces in the RELEASE-NOTES. (violetagg)
  • Update: Update the NSIS Installer used to build the Windows installer to version 3.03. (kkolinko)

2018-01-22 Tomcat 9.0.4 (markt)

Catalina

  • Fix: Correct a regression in the previous fix for 61916 that meant that any c