Changelog

Tomcat 10.1.0-M11 (markt)

Catalina

  • Add: Add ha-api-*.jar and jaxws-rt-*.jar to the list of JARs to skip when scanning for TLDs, web fragments and annotations. (michaelo)
  • Add: Expand the default mappings used by ServletResponse.setLocale() to include a mapping from the ja locale to the Shift_JIS encoding. (markt)
  • Fix: 65806: Improve the handling of session ID generation when the default algorithm for SecureRandom (SHA1PRNG) is not supported by the configured providers as will be the case for a FIPS compliant configuration. (markt)
  • Add: #463: Add support for additional user attributes to TomcatPrincipal and GenericPrincipal. Patch provided by Carsten Klein. (michaelo)
  • Fix: #464: Fall back to the class loader used to load JULI when the thread context class loader is not set. In a normal Tomcat configuration, this will be the system class loader. Based on a pull request by jackshirazi. (markt)
  • Fix: #469: Include the Jakarata Annotations API in the classes that Tomcat will not load from web applications. Pull request provided by ppkarwasz. (markt)
  • Fix: Fix a potential StringIndexOutOfBoundsException exception when generating a WebDAV multi-status response after an error during a copy or delete. Report the paths relative to the server root for any resources with an error. (markt)
  • Fix: Improve the format of WebDAV XML responses to make them easier for humans to read. The change ensures that there is always a line break before starting a new element. (markt)
  • Fix: Improve validation of the Destination header for WebDAV MOVE and COPY requests. (markt)

Coyote

  • Fix: Correct a regression in the fix for 65454 that meant that minSpareThreads and maxThreads settings were ignored when the Connector used an internal executor. (markt)
  • Fix: 65776: Improve the detection of the Linux duplicate accept bug and reduce (hopefully avoid) instances of false positives. (markt)
  • Fix: 65848: Revert the change that attempted to align the behaviour of client certificate authentication with NIO or NIO2 with OpenSSL for TLS between MacOS and Linux/Windows as the root cause was traced to configuration differences. (markt)
  • Fix: #467: When system time moves backwards (e.g. after clock correction), ensure that the cached formatted current date used for HTTP headers tracks this change. Pull request provided by zhenguoli. (markt)

Jasper

  • Fix: #474: Prevent a tag file from corrupting the ELContext of the calling page. Pull request provided by Dmitri Blinov. (markt)
  • Fix: Minor optimisation of serialization for FunctionMapperImpl in response to pull request #476. (markt)

Web applications

  • Fix: Remove the applet example from the example web application as applets are no longer supported in any major browser. (markt)
  • Code: Refactor a small number of pages in the examples web application to avoid an issue with reproducible builds due to differences in file ordering across different operating systems with Ant's zip task. (markt)
  • Fix: Better documentation for the protocol attribute of the JNDIRealm. (markt)
  • Fix: Clarify the settings described in the documentation web application to configure a cluster using static membership. (markt)
  • Add: Add information on the OpenSSLConf and OpenSSLConfCmd elements to the HTTP SSL configuration page in the documentation web applications. (markt)

jdbc-pool

  • Code: Use LF line endings for text files in JARs to support reproducible builds across different operating systems. (markt)

Other

  • Code: Use LF line endings for text files in JARs to support reproducible builds across different operating systems. (markt)
  • Fix: Fix dependencies for individual test targets in Ant build file. Based on #468 provided by Totoo chenyonghui. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.26. (remm)
  • Fix: Revert the cherry-pick of JavaDoc fix from DBCP applied in 10.1.0.M9 that broke the DataSourceMXBean by using a type that isn't supported by MXBeans. (markt)
  • Add: Improvements to Chinese translations contributed by cloudgyb, totoo and Chenyonghui1028. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to German translations contributed by Andreas Abraham. (markt)
  • Add: Improvements to Japanese translations contributed by tak7iji and Shirayuking. (markt)
  • Add: Improvements to Korean translations. (woonsan)
  • Add: Improvements to Spanish translations contributed by ceciliabarudi. (markt)

2022-01-20 Tomcat 10.1.0-M10 (markt)

Coyote

  • Fix: Correct a regression in the fix for 65785 that broke HTTP/2 server push. (markt)

not released Tomcat 10.1.0-M9 (markt)

Catalina

  • Fix: Add missing check in SessionCookieConfig.setAttribute() to ensure that the method fails if called after the web application has started. (markt)
  • Fix: Add additional locking to DataSourceUserDatabase to provide improved protection for concurrent modifications. (markt)
  • Fix: Add recycling check in the input and output stream isReady to try to give a more informative ISE when the facade has been recycled. (remm)
  • Fix: Make the calculation of the session storage location more robust when using file based persistent storage. (markt)

Coyote

  • Fix: 65726: Implement support for HTTP/1.1 upgrade when the request includes a body. The maximum permitted size of the body is controlled by maxSavePostSize. (markt)
  • Fix: Restore pre-starting of minSpareThreads lost in the fix for 65454. (markt)
  • Fix: Revert the previous fix for 65714 and implement a more comprehensive fix. (markt)
  • Fix: Allow freeing up context on JVM shutdown in the OpenSSL Panama module by properly using a shared scope. (remm)
  • Fix: 65757: Missing initial IO listener notification on Servlet container dispatch to another container thread. (remm)
  • Fix: Expand the fix for 65757 so that rather than just checking if processing is happening on a container thread, the check is now if processing is happening on the container thread currently allocated to this request/response. (markt)
  • Fix: Improve the fix for RST frame ordering added in 10.1.0-M8 to avoid a potential deadlock on some systems in non-default configurations. (markt)
  • Add: 65767: Add support for certificates that use keys encrypted using PBES2. Based on a pull request provided by xiezhaokun. (markt)
  • Code: Refactor testing whether a String is a valid HTTP token. (markt)
  • Fix: 65785: Perform additional validation of HTTP headers when using HTTP/2. (markt)
  • Fix: When a Connector or Endpoint is paused, ensure that only new connections and new requests on existing connections are stopped while allowing in progress requests to run to completion. (markt)
  • Fix: Explicitly release ByteBuffer instances associated with pooled channels when stopping the NioEndpoint and Nio2Endpoint. (markt)
  • Fix: Narrow the scope of the logging of invalid cookie headers to just the invalid cookie rather than the whole cookie header. (markt)

Jasper

  • Fix: 65724: Fix missing messages for some PropertyNotWritableExceptions caused by a typo in the name used for a resource string. (markt)
  • Add: Add support for specifying Java 18 (with the value 18) as the compiler source and/or compiler target for JSP compilation. If used with an Eclipse JDT compiler version that does not support these values, a warning will be logged and the default will used. (markt)
  • Update: To align with the JSP 3.1 specification that requires Java 11 as a minimum, make the default JSP source version and target version Java 11. (markt)

WebSocket

  • Fix: Remove the ALLOW_UNSUPPORTED_EXTENSIONS system property. As per RFC 6455, all extensions are optional. If an endpoint declares an extension that isn't supported there is no need to trigger an error. The extension can just be excluded from the result of the negotiation. (markt)
  • Fix: Remove the DISABLE_BUILTIN_EXTENSIONS. It was added to enable Tomcat to pass the WebSocket TCK but after updates to the TCK, it is no longer required. (markt)
  • Add: Add support for POJO WebSocket endpoints to the programmatic upgrade that allows applications to opt to upgrade an HTTP connection to WebSocket. (markt)
  • Add: Add support for the WebSocket 2.1 client-side API for configuring TLS connection for wss client connections. (markt)
  • Fix: 65763: Improve handling of WebSocket connection close if a message write times out before the message is fully written. (markt)

Other

  • Update: Update the OWB module to Apache OpenWebBeans 2.0.25. (remm)
  • Update: Update the CXF module to Apache CXF 3.5.0. (remm)
  • Add: Improvements to Chinese translations contributed by zhnnn. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Japanese translations contributed by Shirayuking, yoshy and tak7iji. (markt)
  • Add: Improvements to Korean translations. (woonsan)
  • Add: Improvements to Spanish translations contributed by Israel. (markt)
  • Update: Update SpotBugs to 4.5.2. (markt)
  • Update: Update to the Eclipse JDT compiler 4.22. (markt)
  • Update: Update the NSIS installer to 3.08. (markt)
  • Update: Update UnboundID to 6.0.3. (markt)
  • Update: Update CheckStyle to 9.2.1. (markt)
  • Update: Update BND to 6.1.0. (markt)
  • Update: Update OSGI annotations to 1.1.1. (markt)

2021-12-08 Tomcat 10.1.0-M8 (markt)

Catalina

  • Update: Log warning if a listener is not nested inside a Server element although it must have been. (michaelo)
  • Fix: Where the getter can be called safely, remove the checks for ServletContext getters called from a contextInitialized() method of a ServletContextListener that was not defined in a web.xml file, a web-fragment.xml file nor annotated with WebListener. (markt)
  • Fix: Make SPNEGO authentication more robust for the case where the provided credential has expired. (markt)
  • Fix: Limit cookie support to RFC 6265 to align with recent updates to the Servlet specification. (markt)
  • Fix: 65684: Fix a potential NullPointerException when using JULI. (markt)
  • Docs: Document conditions under which the AprLifecycleListener can be used to avoid JVM crashes. (michaelo)
  • Fix: Refactor the AsyncFileHandler to reduce the possibility of log messages being lost on shutdown. (markt)
  • Update: Refactor the AsyncFileHandler to remove the need for the org.apache.juli.AsyncLoggerPollInterval. If set, this property now has no effect. (markt)
  • Add: Add debug logging to the RestCsrfPreventionFilter. Based on pull request #452 by Polina Georgieva. (markt)

Coyote

  • Add: Use implicit scopes in the OpenSSL Panama module to tie the cleanup of OpenSSL memory to the Java GC. (remm)
  • Add: Provide protection against a known OS bug that causes the acceptor to report an incoming connection more than once. (markt)
  • Fix: Avoid unnecessary duplicate read registrations for blocking I/O with the NIO connector. (markt)
  • Fix: 65677: Improve exception handling for errors during HTTP/1.1 reads with NIO2. (markt)
  • Fix: When an error occurs that triggers a stream reset, ensure that the first RST frame sent to the client is the one associated with the error that triggered the reset. (markt)
  • Fix: 65714: Fix exceptions when the security manager is enabled and the first request received after starting is an HTTP request to a TLS enabled NIO2 connector. (markt)
  • Add: Ensure that using NIO or NIO2 with OpenSSL for TLS behaves the same way on MacOS as it does on Linux and Windows when no trusted certificate authorities are configured and reject all client certificates. (markt)
  • Fix: Avoid a potential deadlock during the concurrent processing of incoming HTTP/2 frames for a stream and that stream being reset. (markt)

WebSocket

  • Add: Update the WebSocket API packaging to remove the copy of the client API from the server API and replace it with a dependency on the client API. This aligns Tomcat with changes in the WebSocket 2.1 specification. (markt)

2021-11-15 Tomcat 10.1.0-M7 (markt)

Catalina

  • Code: Refactor HttpServlet so the default doHead() implementation now calls doGet() and relies on the container to ensure that the response body is not sent. The previous behaviour (wrapping the response) may be enabled per Servlet by setting the jakarta.servlet.http.legacyDoHead Servlet initialisation parameter to true. This aligns Tomcat with recent changes updates for Servlet 6.0 in the Jakarta Servlet specification project. (markt)
  • Add: Add support for setting generic attributes for session cookies. This aligns Apache Tomcat with recent changes in the Jakarta Servlet specification project. (markt)
  • Fix: Do not add a trailing / to a request URI during canonicalization. (markt)
  • Fix: Invalid byte sequences (typically in %nn form) in a request URi that are not valid for the given URI encoding now trigger a 400 response. (markt)
  • Fix: Ensure that a request URI starts with a /. (markt)
  • Add: Add a new Connector option, rejectSuspiciousURIs that will causes 'suspicious' (see the Servlet 6.0 specification) URIs to be rejected with a 400 response. (markt)
  • Fix: Improve robustness of JNDIRealm for exceptions occurring when getting the connection. Also add missing close when running into issues getting the passord of a user. (remm)
  • Docs: Add Javadoc comment which listeners must be nested whithin Server elements only. (michaelo)
  • Add: Add support for custom caching strategies for web application resources. This initial implementation allows control over whether or not a resource is cached. (markt)

Coyote

  • Code: Improve performance of Connector shutdown - primarily to reduce the time it takes to run the test suite. (markt)
  • Add: #457: Add a toString() method to MimeHeader to aid debugging. (dblevins)
  • Add: Add experimental OpenSSL support through the Panama API incubating in Java 17, with support for OpenSSL 1.1+. This no longer requires tomcat-native or APR. Please refer to the openssl-java17 module for more details. (remm)

Jasper

  • Update: Regenerate the EL parser using JavaCC 7.0.10. (markt)
  • Fix: Fix a bug that prevented the EL parser correctly parsing a literal Map that used variables rather than literals for both keys and values. (markt)
  • Update: Ensure that the getType() method of any ELResolver implementation returns null if either the ELResolver or the resolved property is read-only to align Tomcat with recent updates in the Jakarta EL specification project. (markt)
  • Fix: Implement an alternative solution to support the JSP page directive attribute isThreadSafe now that the SingleThreadModel interface has been removed from the Servlet API. The new approach synchronizes the service() method.

WebSocket

  • Update: Add a new method ServerEndpointConfig.Configurator.getContainerDefaultConfigurator() to align with recent updates in the WebSocket specification project. (markt)
  • Update: Add a new method ServerContainer.upgradeHttpToWebSocket() to align with recent updates in the WebSocket specification project. (markt)

Tribes

  • Fix: #454: Differentiate warning messages in KubernetesMembershipProvider so that the missing attribute is clear to the user. PR provided by Hal Deadman. (markt)

Other

  • Fix: Switch from Cobertura to JaCoCo for code coverage as Cobertura does not support code coverage for code compiled for Java 11 onwards. It also removes the need to use a single thread to run the tests. (markt)

2021-10-01 Tomcat 10.1.0-M6 (markt)

Catalina

  • Fix: Provide the DataSource in the constructor of DataSourceUserDatabase, since it is always global. (remm)
  • Fix: Fix delete then create object manipulations with DataSourceUserDatabase. (remm)
  • Update: Remove all deprecated code from the Servlet API to align Tomcat with recent changes in the Jakarta Servlet specification project. (markt)
  • Add: Add the currently available Jakarta EE 10 schemas from the Jakarta EE schema project. (markt)
  • Add: Implement the new connection ID and request ID API for Servlet 6.0. (markt)
  • Fix: 65553: Implement a work-around for a JRE bug that can trigger a memory leak when using the JNDI realm. (markt)
  • Fix: 65586: Fix the bloom filter used to improve performance of archive file look ups in the web resources implementation so it works correctly for directory lookups whether or not the provided directory name includes the trailing /. (markt)
  • Fix: #451: Improve the usefulness of the thread name cache used in JULI. Pull request provided by t-gergely. (markt)

Coyote

  • Fix: 65563: Correct parsing of HTTP Content-Range headers. Tomcat was incorrectly requiring an = character after bytes. Fix based on pull request #449 by Thierry Guérin. (markt)
  • Fix: Correct a potential StackOverflowException with HTTP/2 and sendfile. (markt)
  • Fix: Further improvements in the management of the connection flow control window. This addresses various bugs that caused streams to incorrectly report that they had timed out waiting for an allocation from the connection flow control window. (markt)
  • Fix: 65577: Fix a AccessControlException reporting when running an NIO2 connector with TLS enabled. (markt)
  • Update: Reclassify TLS ciphers that use AESCCM8 as medium security rather than high security to align with recent changes in OpenSSL. (markt)
  • Fix: Fix an issue that caused some Servlet non-blocking API reads of the HTTP request body to incorrectly use blocking IO. (markt)

Jasper

  • Code: Deprecate ELResolver.getFeatureDescriptors to align Tomcat with recent updates in the Jakarta EL specification project. (markt)
  • Add: Add support for default methods to BeanRELResolver to align Tomcat with recent updates in the Jakarta EL specification project. (markt)
  • Add: Add support for MethodReference and the associated getter on MethodExpression to align Tomcat with recent updates in the Jakarta EL specification project. (markt)
  • Add: Refactor ScopedAttributeELResolver to separate out the functionality that is unrelated to scoped attributes into two new resolvers: ImportELResolver and NotFoundELResolver. This aligns Tomcat with recent updates to the Jakarta Server Pages specification. (markt)
  • Fix: Fix the implementation of MethodExpression.getMethodInfo() so that it returns the expected value rather than failing when the method expression is defined with the parameter values in the expression rather than the types being passed explicitly to ExpressionFactory.createMethodExpression(). (markt)
  • Add: Add support for a new page/tag directive errorOnELNotFound that can be used to trigger an identifier if an EL expression in a page/tag contains an identifier that cannot be resolved. (markt)

WebSocket

  • Fix: The internal upgrade handler should close the associated WebConnection on destroy. (remm)

Web applications

  • Update: Update the web applications that are included with Apache Tomcat to use the Jakarta EE 10 schema for web.xml. (markt)
  • Fix: Clarify the JASPIC configuration options in the documentation web application. (markt)

Other

  • Fix: 65585: Update obsolete comments at the start of the build.properties.default file. (markt)

2021-09-10 Tomcat 10.1.0-M5 (markt)

Catalina

  • Fix: Enable Tomcat to start if an (old) XML parser is configured that does not support allow-java-encodings. A warning will be logged if such an XML parser is detected. (markt)
  • Fix: Change the behaviour of custom error pages. If an error occurs after the response is committed, once the custom error page content has been added to the response the connection is now closed immediately rather than closed cleanly. i.e. the last chunk that marks the end of the response body is no longer sent. This acts as an additional signal to the client that the request experienced an error. (markt)
  • Fix: 65479: When handling requests using JASPIC authentication, ensure that PasswordValidationCallback.getResult() returns the result of the password validation rather than always returning false. Fixed via pull request #438 provided by Robert Rodewald. (markt)
  • Update: Improve the reusability of the UserDatabase by adding intermediate concrete implementation classes and allowing to do partial database updates on save. (remm)
  • Code: Refactor the authenticators to delegate the check for preemptive authentication to the individual authenticators where an authentication scheme specific check can be performed. Based on pull request #444 by Robert Rodewald. (markt)
  • Add: Add a UserDatabase implementation as a superset of the DataSourceRealm functionality. (remm)
  • Fix: Make sure the dynamic Principal returned by UserDatabaseRealm stays up to date with the database contents, and add an option to have it be static, similar to the other realms. (remm)
  • Add: Add derby-*.jar to the list of JARs to skip when scanning for TLDs, web fragments and annotations. (markt)
  • Fix: #447. Correct JPMS metadata for catalina.jar. Pull request provided by Hui Wang. (markt)

Coyote

  • Fix: Correct a logic error that meant setting certificateKeystoreFile to NONE did not have the expected effect. NONE was incorrectly treated as a file path. Patch provided by Mikael Sterner. (markt)
  • Code: Remove the deprecated APR/Native connector which includes the HTTP APR and the AJP APR connector. Also remove the Java interfaces to the APR/Native library that are not used by the OpenSSL integration for the NIO and NIO2 connectors. (markt)
  • Code: Refactor the JSSE/OpenSSL integration to avoid the use of finalize(). (markt)
  • Fix: 65505: When an HTTP header value is removed, ensure that the order of the remaining header values is unchanged. (markt)

WebSocket

  • Fix: 65506: Fix write timeout check that was using the read timeout value. Patch submitted by Gustavo Mahlow. (remm)

Web applications

  • Fix: Remove unnecessary Context settings from the examples web application. (markt)
  • Fix: Document default value for unpackWARs and related clean-up. Pull request #439 provided by Robert Rodewald. (markt)
  • Fix: Clarify the documentation of the compressionMinSize and compressibleMimeType HTTP Connector attributes. Pull request #442 provided by crisgeek. (markt)

Tribes

  • Code: Refactor the ParallelNioSender to avoid the use of finalize(). (markt)

Other

  • Fix: Fix failing build when building on non-English locales. Pull request #441 provided by Dachuan J. (markt)
  • Update: Update to JSign version 4.0 to enable code signing without the need for the installation of additional client tools. (markt)
  • Update: Add Apache Derby 10.15.2.0 to the testsuite dependencies, for JDBC and DataSource testing. (remm)
  • Add: Update the internal fork of Apache Commons BCEL to 40d5eb4 (2021-09-01, 6.6.0-SNAPSHOT). Code clean-up only. (markt)
  • Add: Update the internal fork of Apache Commons Codec to fd44e6b (2021-09-01, 1.16-SNAPSHOT). Minor refactoring. (markt)
  • Add: 65661: Update the internal fork of Apache Commons FileUpload to 33d2d79 (2021-09-01, 2.0-SNAPSHOT). Refactoring and code clean-up. As a result of Commons File Upload now using java.nio.file.Files, applications using multi-part uploads need to ensure that the JVM is configured with sufficient direct memory to store all in progress multi-part uploads. (markt)
  • Add: Update the internal fork of Apache Commons Pool to 2.11.1 (2021-08-17). Improvements, code clean-up and refactoring. (markt)
  • Add: Update the internal fork of Apache Commons DBCP to 2.9.0 (2021-08-03). Improvements, code clean-up and refactoring. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.31 to pick up Windows binaries built with OpenSSL 1.1.1l.(markt)
  • Update: Switch to the CDN as the primary download location for ASF dependencies. (markt)
  • Add: Improvements to Chinese translations contributed by syseal, wolibo, ZhangJieWen and DigitalFatCat. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Japanese translations contributed by tak7iji. (markt)
  • Add: Improvements to Korean translations. (woonsan)

2021-08-06 Tomcat 10.1.0-M4 (markt)

WebSocket

  • Fix: Correct a regression in the Java 8 to Java 11 changes made in 10.1.0-M3 that caused all WebSocket end points to fail to register. (markt)

not released Tomcat 10.1.0-M3 (markt)

General

  • Update: Update the minimum required Java version to Java 11. (markt)

Catalina

  • Code: Incremented the supported Jakarta Servlet version to 6.0 to align with the current development branch of the Jakarta Servlet specification. Plans have changed and the next iteration of the Servlet specification will be 6.0 rather than 5.1. (markt)
  • 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)
  • Code: Refactor JULI's custom LogManager, the web application class loader implementation, the web resources implementation, the JreLeakPreventionListener implementation and the StandardJarScanner implementation to remove Java 8 specific code now that the minimum Java version has been increased to 11. (markt)
  • Code: Remove all references to the endorsed standards override feature and the specifying of optional packages (extensions) in the manifest as these are not supported in Java 11. (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)
  • Fix: Remove NIO workarounds and code that is no longer needed with Java 11. (remm)
  • Code: Refactor the endpoints to remove Java 8 specific code now that the minimum Java version has been increased to 11. (markt)

Jasper

  • Code: Add additional generics to the EL API to align with the latest changes in the EL specification project. (markt)
  • Add: Enable EL lambda expressions to be coerced to functional interfaces. This is an implementation of a proposed extension to the Jakarta Expression Language specification. (markt)
  • Code: Refactor the EL API and implementation to remove Java 8 specific code now that the minimum Java version has been increased to 11. (markt)

WebSocket

  • Code: Refactor the WebSocket implementation to remove Java 8 specific code now that the minimum Java version has been increased to 11. (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 10.1.0-M2 (markt)

Catalina

  • Code: Refactor the RemoteIpValve to use the common utility method for list to comma separated string conversion. (markt)
  • Code: Refactor JNDIRealm$JNDIConnection so its fields are accessible to sub-classes of JNDIRealm. (markt)
  • Fix: Fix serialization warnings in UserDatabasePrincipal reported by SpotBugs. (markt)
  • Fix: 65397: Calls to ServletContext.getResourcePaths() no longer include symbolic links in the results unless allowLinking has been set to true. If a resource is skipped because of this change, a warning will be logged as this typically indicates a configuration issue. (markt)

Coyote

  • Fix: 65368: Improve handling of clean closes of inbound TLS connections. Treat them the same way as clean closes of non-TLS connections rather than as unknown errors. (markt)
  • Fix: Modify the HTTP/2 connector not to sent small updates for stream flow control windows to the user agent as, depending on how the user agent is written, this may trigger small writes from the user agent that in turn trigger the overhead protection. Small updates for stream flow control windows are now combined with subsequent flow control window updates for that stream to ensure that all stream flow control window updates sent from Tomcat are larger than overheadWindowUpdateThreshold. (markt)
  • Add: Add additional debug logging to track the current state of the HTTP/2 overhead count that Tomcat uses to detect and close potentially malicious connections. (markt)
  • Update: Many HTTP/2 requests from browsers will trigger one overhead frame and one non-overhead frame. Change the overhead calculation so that a non-overhead frame reduces the current overhead count by 2 rather than 1. This means that, over time, the overhead count for a well-behaved connection will trend downwards. (markt)
  • Update: Change the initial HTTP/2 overhead count from -10 to -10 * overheadCountFactor. This means that, regardless of the value chosen for overheadCountFactor, when a connection opens 10 overhead frames in a row will be required to trigger the overhead protection. (markt)
  • Update: Increase the default overheadCountFactor from 1 to 10 and change the reduction in overhead count for a non-overhead frame from -2 to -20. This allows for a larger range (0-20) to be used for overheadCountFactor providing for finer-grained control. (markt)
  • Fix: Modify the parsing of HTTP header values that use the 1#token to ignore empty elements as per RFC 7230 section 7 instead of treating the presence of empty elements as an error. (markt)
  • Fix: Expand the unit tests for HttpServlet.doHead() and correct the flushing of the response buffer. The buffer used to behave as if it was one byte smaller than the configured size. The buffer was flushed (and the response committed if required) when the buffer was full. The buffer is now flushed (and the response committed if required) if the buffer is full and there is more data to write. (markt)
  • Fix: Fix an issue where concurrent HTTP/2 writes (or concurrent reads) to the same connection could hang and eventually timeout when async IO was enabled (it is enabled by default). (markt)

Jasper

  • Fix: 65387: Correct a regression in the fix for 65124 and restore the local definition of out for tags that implement TryCatchFinally. (markt)
  • Fix: 65390: Correct a regression in the fix for 65124 and restore code that was removed in error leading to JSP compilation failures in some circumstances. (markt)
  • Update: Update to the Eclipse JDT compiler 4.20. (markt)
  • Add: Add support for specifying Java 17 (with the value 17) as the compiler source and/or compiler target for JSP compilation. If used with an Eclipse JDT compiler version that does not support these values, a warning will be logged and the latest supported version will used. (markt)
  • Fix: 65377: Update the Java code generation for JSPs not to use the boxed primitive constructors as they have been deprecated in Java 9 and marked for future removal in Java 16. valueOf() is now used instead. (markt)

WebSocket

  • Code: Refactor the DigestAuthenticator to reuse a shared SecureRandom instance rather than create a new one to generate the cnonce if required. (markt)

Web applications

  • Fix: 65385: Correct the link in the documentation web application the Maven Central repository. (markt)

Other

  • Add: Use JSign to integrate the build script with the code signing service to enable release builds to be created on Linux as well as Windows. (markt)
  • Update: Update the OWB module to Apache OpenWebBeans 2.0.23. (remm)
  • Update: Update the CXF module to Apache CXF 3.4.4. (remm)
  • Fix: 65369 / #422: Add the additional --add-opens=... options required for running Tomcat on Java 16 onwards to the service.bat script to align it with the other start-up scripts. PR provided by MCMicS. (markt)
  • Add: Improvements to French translations. (remm)
  • Add: Improvements to Korean translations. (woonsan)
  • Update: Update JUnit to version 4.13.2. (markt)
  • Update: Update EasyMock to 4.3. (markt)
  • Update: Update Objenesis to 3.2. (markt)
  • Update: Update UnboundID to 6.0.0. (markt)
  • Update: Update CheckStyle to 8.43. (markt)
  • Update: Update SpotBugs to 4.2.3. (markt)
  • Update: Update OSGi annotations to 1.1.0. (markt)

2021-06-15 Tomcat 10.1.0-M1 (markt)

General

  • Code: This release contains all of the changes up to and including those in Apache Tomcat 10.0.6 plus the additional changes listed below. (markt)
  • Code: Remove code previously marked for removal in Tomcat 10.1.x. (markt)

Catalina

  • Code: Incremented the supported Jakarta Servlet version to 5.1 to align with the current development branch of the Jakarta Servlet specification. (markt)
  • 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)
  • 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)
  • Add: Implement the new Cookie methods setAttribute(), getAttribute() and getAttributes() introduced in Servlet 6.0. (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

  • 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)
  • Update: Simplify AprEndpoint socket bind for all platforms. (michaelo)
  • 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: Incremented the supported Jakarta Expression Language version to 5.0 to align with the current development branch of the Jakarta Expression Language specification. (markt)
  • 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: 65124: Partial fix. When generating Java source code to call a tag handler, only define the local variable JspWriter out when it is going to be used. (markt)
  • Code: Add generics to the EL 5.0 API to align with the current EL 5.0 development branch. (markt)
  • Update: Update the web-fragment.xml included in jasper.jar and jasper-el.jar to use the Servlet 5.0 schema. (markt)
  • Fix: Update JspC to generate web.xml and web-fragment.xml files using Servlet 5.0 schemas. (markt)
  • Code: Remove the deprecated method MethodExpression.getParmetersProvided() from the EL API to align with the current EL 5.0 development branch. (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)
  • Update: Update the web-fragment.xml included in tomcat-websocket.jar to use the Servlet 5.0 schema. (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 Jakarta 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)