Changelog

Tomcat 9.0.0.M4

Catalina

  • Fix: Ensure that /WEB-INF/classes is never processed as a web fragment. (markt)
  • Update: Switch default connector when native is installed. Unless configured otherwise, the NIO endpoint will be used by default. If SSL is configured, OpenSSL will be used rather than JSSE. (remm)
  • Fix: Correct a regression in the fix for 58867. When configuring a Context to use an external directory for the docBase, and that directory happens to be located along side the original WAR, use the directory as the docBase rather than expanding the WAR into the appBase and using the newly created expanded directory as the docBase. (markt)
  • Add: 58351: Make the server build date and server version number accessible via JMX. Patch provided by Huxing Zhang. (markt)
  • Add: 58988: Special characters in the substitutions for the RewriteValve can now be quoted with a backslash. (fschumacher)
  • Fix: 58999: Fix class and resource name filtering in WebappClassLoader. It throws a StringIndexOutOfBoundsException if the name is exactly "org" or "javax". (rjung)
  • Add: Add JASPIC (JSR-196) support. (markt)
  • Add: Make checking for var and map replacement in RewriteValve a bit stricter and correct detection of colon in var replacement. (fschumacher)
  • Fix: Refactor the web application class loader to reduce the impact of JAR scanning on the memory footprint of the web application. (markt)
  • Fix: Fix some resource leaks in the error handling for accessing files from JARs and WARs. (markt)
  • Fix: Refactor the JAR and JAR-in-WAR resource handling to reduce the memory footprint of the web application. (markt)
  • Fix: Refactor the web.xml parsing so a new parser is created every time the web application starts rather than creating and caching the parser when the Context is created. This enables the parser to take account of modified Context configuration parameters and reduces (slightly) the memory footprint of a running Tomcat instance. (markt)
  • Update: Switch to the web application class loader to the ParallelWebappClassLoader by default. (markt)
  • Fix: 57809: Remove the custom context attribute that held the effective web.xml. Components needing access to configuration information may access it via the Servlet API. (markt)
  • Fix: Refactor JAR scanning to reduce memory footprint. (markt)
  • Fix: 59001: Correctly handle the case when Tomcat is installed on a path where one of the segments ends in an exclamation mark. (markt)
  • Fix: Expand the fix for 59001 to cover the special sequences used in Tomcat's custom jar:war: URLs. (markt)
  • Fix: 59043: Avoid warning while expiring sessions associated with a single sign on if HttpServletRequest.logout() is used. (markt)
  • Fix: 59054: Ensure that using the CrawlerSessionManagerValve in a distributed environment does not trigger an error when the Valve registers itself in the session. (markt)
  • Fix: Add socket properties support to storeconfig. (remm)
  • Fix: Fix incorrect parsing of the NE and NC flags in rewrite rules. (remm)
  • Fix: 59065: Correct the timing of the check for colons in paths on non-Windows systems implemented in catalina.sh so it works correctly with Cygwin. Patch provided by Ed Randall. (markt)
  • Fix: When a Host is configured with an appBase that does not exist, create the appBase before trying to expand an external WAR file into it. (markt)
  • Fix: 59115: When using the Servlet 3.0 file upload, the submitted file name may be provided as a token or a quoted-string. If a quoted-string, unquote the string before returning it to the user. (markt)
  • Fix: 59123: Close NamingEnumeration objects used by the JNDIRealm once they are no longer required. (fschumacher/markt)
  • Add: Implement the proposed Servlet 4.0 API to provide mapping type information for the current request. (markt)
  • Fix: 59138: Correct a false positive warning for ThreadLocal related memory leaks when the key class but not the value class has been loaded by the web application class loader. (markt)
  • Add: 59017: Make the pre-compressed file support in the Default Servlet generic so any compression may be used rather than just gzip. Patch provided by Mikko Tiihonen. (markt)
  • Fix: 59145: Don't log an invalid warning when a user logs out of a session associated with SSO. (markt)
  • Fix: 59150: Add an additional flag on APR listener to allow disabling automatic use of OpenSSL. (remm)
  • Fix: 59151: Fix a regression in the fix for 56917 that added additional (and arguably unnecessary) validation to the provided redirect location. (markt)
  • Fix: 59154: Fix a NullPointerException in the JASSMemoryLoginModue resulting from the introduction of the CredentialHandler to Realms. (schultz/markt)

Coyote

  • Fix: Handle the case in the NIO2 connector where the required TLS buffer sizes increase after the connection has been initiated. (markt/remm)
  • Fix: Bad processing of handshake errors in NIO2. (remm)
  • Fix: Use JSSE session configuration options with OpenSSL. (remm)
  • Fix: 59015: Fix potential cause of endless APR Poller loop during shutdown if the Poller experiences an error during the shutdown process. (markt)
  • Fix: Align cipher aliases for kECDHE and ECDHE with the current OpenSSL implementation. (markt)
  • Fix: 59081: Retain the user defined cipher order when defining ciphers. (markt)
  • Fix: 59089: Correctly ignore HTTP headers that include non-token characters in the header name. (markt)

Jasper

  • Update: Update to the Eclipse JDT Compiler 4.5.1. (markt)
  • Fix: 57583: Improve the performance of javax.servlet.jsp.el.ScopedAttributeELResolver when resolving attributes that do not exist. This improvement only works when Jasper is used with with Tomcat's EL implementation. (markt)

WebSocket

  • Fix: Fix a timing issue on session close that could result in an exception being thrown for an incomplete message even through the message was completed. (markt)
  • Fix: Correctly handle compression of partial messages when the final message fragment has a zero length payload. (markt)
  • Fix: 59119: Correct read logic for WebSocket client when using secure connections. (markt)
  • Fix: 59134: Correct client connect logic for secure connections made through a proxy. (markt)

Web applications

  • Fix: Correct an error in the documentation of the expected behaviour for automatic deployment. If a WAR is updated and an expanded directory is present, the directory will always be deleted and recreated by expanding the WAR if unpackWARs is true. (markt)
  • Fix: 48674: Implement an option within the Host Manager web application to persist the current configuration. Based on a patch by Coty Sutherland. (markt)
  • Fix: 58935: Remove incorrect references in the documentation to using jar:file: URLs with the Manager application. (markt)
  • Fix: Correct the description of the ServletRequest.getServerPort() in Proxy How-To. Issue reported via comments.apache.org. (violetagg)
  • Add: The Manager and Host Manager applications are now only accessible via localhost by default. (markt)

Tribes

  • Fix: If promoting a proxy node to a primary node when getting a session, notify the change of the new primary node to the original backup node. (kfujino)

Other

  • Fix: 58283: Change the default download location for libraries during the build process from /usr/share/java to ${user.home}/temp. Patch provided by Ahmed Hosni. (markt)
  • Fix: 59031: When using the Windows uninstaller, do not remove the contents of any directories that have been symlinked into the Tomcat directory structure. (markt)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.5 to pick up the Windows binaries that are based on OpenSSL 1.0.2g and APR 1.5.1. (markt)
  • Update: Modify the default tomcat-users.xml file to make it harder for users to configure the entries intended for use with the examples web application for the Manager application. (markt)

2016-02-05 Tomcat 9.0.0.M3

General

  • Add: Allow to configure multiple JUnit test class patterns with the build property test.name and document the property in BUILDING.txt. (rjung)

Catalina

  • Fix: Protect initialization of ResourceLinkFactory when running with a SecurityManager. (kkolinko)
  • Fix: Correct a thread safety issue in the filtering of session attributes based on the implementing class name of the value object. (markt)
  • Fix: Fix class loader decision on the delegation for class loading and resource lookup and make it faster too. (rjung)
  • Fix: 58768: Log a warning if a redirect fails because of an invalid location. (markt)
  • Code: 58827: Remove remains of JSR-77 implementation. (markt)
  • Fix: 58946: Ensure that the request parameter map remains immutable when processing via a RequestDispatcher. (markt)
  • Fix: 58905: Ensure that Tomcat.silence() silences the correct logger and respects the current setting. (markt)

Coyote

  • Fix: Correct a regression in the connector refactoring in 9.0.0.M2 that broke TLS support for the APR/native connector. (remm)
  • Fix: Correct an NPE when listing the enabled ciphers (e.g. via the Manager web application) for a TLS enabled APR/native connector. (markt)
  • Add: New configuration option ajpFlush for the AJP connectors to disable the sending of AJP flush packets. (rjung)
  • Fix: Handle the case in the NIO connector where the required TLS buffer sizes increase after the connection has been initiated. (markt)

not released Tomcat 9.0.0.M2

Catalina

  • Code: Refactor creation of MapperListener to ensure that the Mapper used is the Mapper associated with the Service for which the listener was created. (markt)
  • Add: Move the functionality that provides redirects for context roots and directories where a trailing / is added from the Mapper to the DefaultServlet. This enables such requests to be processed by any configured Valves and Filters before the redirect is made. This behaviour is configurable via the mapperContextRootRedirectEnabled and mapperDirectoryRedirectEnabled attributes of the Context which may be used to restore the previous behaviour. (markt)
  • Code: Refactor Service.getContainer() to return an Engine rather than a Container. (markt)
  • Fix: 34319: Only load those keys in StoreBase.processExpire from JDBCStore, that are old enough, to be expired. Based on a patch by Tom Anderson. (fschumacher)
  • Add: 56917: As per RFC7231 (HTTP/1.1), allow HTTP/1.1 and later redirects to use relative URIs. This is controlled by a new attribute useRelativeRedirects on the Context and defaults to true. (markt)
  • Fix: 58629: Allow an embedded Tomcat instance to start when the Service has no Engine configured. (markt)
  • Fix: Correctly notify the MapperListener associated with a Service if the Engine for that Service is changed. (markt)
  • Add: Make a web application's CredentialHandler available through a context attribute. This allows a web application to use the same algorithm for validating or generating new stored credentials from cleartext ones. (schultz)
  • Fix: 58635: Enable break points to be set within agent code when running Tomcat with a Java agent. Based on a patch by Huxing Zhang. (markt)
  • Fix: Fixed potential NPE in HostConfig while deploying an application. Issue reported by coverity scan. (violetagg)
  • Fix: 58655: Fix an IllegalStateException when calling HttpServletResponse.sendRedirect() with the RemoteIpFilter. This was caused by trying to correctly generate the absolute URI for the redirect. With the fix for 56917, redirects may now be relative making the sendRedirect() implementation for the RemoteIpFilter much simpler. This also addresses issues where the redirect may not have behaved as expected when redirecting from http to https to from https to http. (markt)
  • Fix: 58657: Exceptions in a Servlet 3.1 ReadListener or WriteListener do not need to be immediately fatal to the connection. Allow an error response to be written. (markt)
  • Fix: Correct implementation of validateClientProvidedNewSessionId so client provided session IDs may be rejected if validation is enabled. (markt)
  • Fix: 58701: Reset the instanceInitialized field in StandardWrapper when unloading a Servlet so that a new instance may be correctly initialized. (markt)
  • Update: Add a new flag aprPreferred to the Apr listener. if set to false, when using the connector defaults, it will use NIO + OpenSSL if tomcat-native is available, rather than the APR connector. (remm)
  • Fix: Add path parameter handling to HttpServletRequest.getContextPath(). This is a follow-up to the fix for 57215. (markt)
  • Fix: 58692: Make StandardJarScanner more robust. Log a warning if a class path entry cannot be scanned rather than triggering the failure of the web application. Includes a test case written by Derek Abdine. (markt)
  • Fix: 58702: Ensure an access log entry is generated if the client aborts the connection. (markt)
  • Fix: Fixed various issues reported by Findbugs. (violetagg)
  • Fix: 58735: Add support for the X-XSS-Protection header to the HttpHeaderSecurityFilter. Patch provided by Jacopo Cappellato. (markt)
  • Fix: Add the StatusManagerServlet to the list of Servlets that can only be loaded by privileged applications. (markt)
  • Fix: Simplify code and fix messages in org.apache.catalina.core.DefaultInstanceManager class. (kkolinko)
  • Fix: 58751: Correctly handle the case where an AsyncListener dispatches to a Servlet on an asynchronous timeout and the Servlet uses sendError() to trigger an error page. Includes a test case based on code provided by Andy Wilkinson.(markt)
  • Fix: Ensure that the proper file encoding if specified will be used when a readme file is served by DefaultServlet. (violetagg)
  • Fix: Fix declaration of localPort attribute of Connector MBean: it is read-only. (kkolinko)
  • Fix: 58766: Make skipping non-class files during annotation scanning faster by checking the file name first. Improve debug logging. (kkolinko)
  • Fix: 58836: Correctly merge query string parameters when processing a forwarded request where the target includes a query string that contains a parameter with no value. (markt/kkolinko)
  • Fix: Make sure that shared Digester is reset in an unlikely error case in HostConfig.deployWAR(). (kkolinko)
  • Add: Extend the feature available in the cluster session manager implementations that enables session attribute replication to be filtered based on attribute name to all session manager implementations. Note that configuration attribute name has changed from sessionAttributeFilter to sessionAttributeNameFilter. Apply the filter on load as well as unload to ensure that configuration changes made while the web application is stopped are applied to any persisted data. (markt)
  • Add: Extend the session attribute filtering options to include filtering based on the implementation class of the value and optional WARN level logging if an attribute is filtered. These options are available for all of the Manager implementations that ship with Tomcat. When a SecurityManager is used filtering will be enabled by default. (markt)
  • Code: Remove distributable and maxInactiveInterval from the Manager interface because the attributes are never used. The equivalent attributes from the Context always take precedence. (markt)
  • Fix: 58867: Improve checking on Host start for WAR files that have been modified while Tomcat has stopped and re-expand them if unpackWARs is true. (markt)
  • Fix: 58900: Correctly undeploy symlinked resources and prevent an infinite cycle of deploy / undeploy. (markt)

Coyote

  • Fix: 58621: The certificate chain cannot be set using the main certificate attribute, so restore the certificate chain property. (remm)
  • Fix: Allow a new SSL config type where a connector can use either JSSE or OpenSSL. Both could be allowed, but it would likely create support issues. This type is used by the OpenSSL implementation for NIOx. (remm)
  • Fix: Improve upgrade context classloader handling by using Context.bind and unbind. (remm)
  • Add: Improve OpenSSL keystore/truststore configuration by using the code from the JSSE implementation. (remm, jfclere)
  • Fix: Fix a potential loop when a client drops the connection unexpectedly. (markt)
  • Add: OpenSSL renegotiation support for client certificate authentication. (remm)
  • Fix: Fix NIO connector renegotiation. (remm)
  • Fix: 58659: Fix a potential deadlock during HTTP/2 processing when the connection window size is limited. (markt)

Jasper

  • Fix: 57136#c25: Change default value of quoteAttributeEL setting in Jasper to be true for better compatibility with other implementations and older versions of Tomcat. Add command line option -no-quoteAttributeEL in JspC. (kkolinko)
  • Fix: Fix handling of missing messages in org.apache.el.util.MessageFactory. (violetagg)

Cluster

  • Fix: Enable an explicit configuration of local member in the static cluster membership. (kfujino)
  • Fix: Fix potential integer overflow in DeltaSession. Reported by coverity scan. (fschumacher)
  • Fix: In order to avoid that the heartbeat thread and the background thread to run Channel.heartbeat simultaneously, if heartbeatBackgroundEnabled of SimpleTcpCluster set to true, ensure that the heartbeat thread does not start. (kfujino)

WebSocket

  • Add: 55006: The WebSocket client now honors the java.net.java.net.ProxySelector configuration (using the HTTP type) when establishing WebSocket connections to servers. Based on a patch by Niki Dokovski. (markt)
  • Fix: 58624: Correct a potential deadlock if the WebSocket connection is closed when a message write is in progress. (markt)
  • Fix: 57489: Ensure onClose() is called when a WebSocket connection is closed even if the sending of the close message fails. Includes test cases by Barry Coughlan. (markt)

Web Applications

  • Fix: 58631: Correct the continuation character use in the Windows Service How-To page of the documentation web application. (markt)
  • Fix: Correct the SSL documentation for deprecated attributes to point to the correct, new location for attributes related to individual certificates. (markt)
  • Fix: Correct some typos in the JNDI resources How-To. (markt)
  • Fix: Don't create session unnecessarily in the Manager application. (markt)
  • Fix: Don't create session unnecessarily in the Host Manager application. (markt)
  • Fix: 58723: Clarify documentation and error messages for the text interface of the manager to make clear that version must be used with path when referencing contexts deployed using parallel deployment. (markt)
  • Add: Document test.threads option in BUILDING.txt. (kkolinko)

Tribes

  • Fix: Ensure that the static member is registered to the add suspect list even if the static member that is registered to the remove suspect list has disappeared. (kfujino)
  • Fix: When using a static cluster, add the members that have been cached in the membership service to the map members list in order to ensure that the map member is a static member. (kfujino)
  • Fix: Add support for the startup notification of local members in the static cluster. (kfujino)
  • Fix: Ignore the unnecessary member remove operation from different domain. (kfujino)
  • Fix: Add support for the shutdown notification of local members in the static cluster. (kfujino)

jdbc-pool

  • Fix: Correct evaluation of system property org.apache.tomcat.jdbc.pool.onlyAttemptCurrentClassLoader. It was basically ignored before. Reported by coverity scan. (fschumacher)
  • Fix: Fix potential integer overflow in ConnectionPool and PooledConnection. Reported by coverity scan. (fschumacher)

Other

  • Update: Update optional Checkstyle library to 6.14.1. (kkolinko)
  • Update: Update the packaged version of the Tomcat Native Library to 1.2.4 to pick up the Windows binaries that are based on OpenSSL 1.0.2e and APR 1.5.1. (markt)
  • Update: Update the NSIS Installer used to build the Windows Installers to version 2.50. (markt/kkolinko)
  • Update: Update the internal fork of Commons BCEL to r1725718 to align with the refactoring for BCEL 6, the next major BCEL release. (markt)
  • Update: Update the internal fork of Commons DBCP 2 to r1725730 (2.1.1 plus additional fixes). (markt)
  • Update: Update the internal fork of Commons Pool 2 to r1725738 (2.4.2 plus additional fixes). (markt)
  • Update: Update the internal fork of Commons Codec to r1725746 (1.9 plus additional fixes). (markt)

2015-11-17 Tomcat 9.0.0.M1

General

  • Add: Make Java 8 the minimum required version to build and run Tomcat 9. (markt)
  • Update: Remove support for Comet. (markt)
  • Update: Tighten up the default file permissions for the .tar.gz distribution so no files or directories are world readable by default. Configure Tomcat to run with a default umask of 0027 which may be overridden by setting UMASK in setenv.sh. (markt)
  • Update: Remove native code (Windows Service Wrapper, APR/native connector) support for Windows Itanium. (markt)

Catalina

  • Update: The default HTTP cookie parser has been changed to org.apache.tomcat.util.http.Rfc6265CookieProcessor. (markt)

Coyote

  • Update: Remove support for the HTTP BIO and AJP BIO connectors. (markt)
  • Code: Refactor HTTP upgrade and AJP implementations to reduce duplication. (markt)
  • Add: Add support for HPACK header encoding and decoding, contributed by Stuart Douglas. (remm)
  • Add: 57108: Add support for Server Name Indication (SNI). There has been significant changes to the SSL configuration in server.xml to support this. (markt)
  • Add: Add SSL engine for JSSE backed by OpenSSL. Includes ALPN support. Based on code contributed by Numa de Montmollin and derived from code developed by Twitter and Netty. (remm)
  • Fix: RFC 7230 states that clients should ignore reason phrases in HTTP/1.1 response messages. Since the reason phrase is optional, Tomcat no longer sends it. As a result the system property org.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER is no longer used and has been removed. (markt)
  • Update: The minimum required Tomcat Native version has been increased to 1.2.2. The 1.2.x branch includes ALPN and SNI support which are required for HTTP/2. (markt)
  • Add: Add support for HTTP/2 including server push. (markt)

Tribes

  • Fix: Clarify the handling of Copy message and Copy nodes. (kfujino)

Other

  • Add: Support the use of the threads attribute on Ant's junit task. Note that using this with a value of greater than one will disable Cobertura code coverage. (markt)