Update the recommended minimum Tomcat Native version to 1.2.19. (markt)
Other
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)
not released Tomcat 8.5.36 (markt)
Catalina
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)
The default Servlet should not override a previously set content-type.
(remm)
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 more storeconfig issues with duplicated SSL attributes. (remm)
62968: Avoid unnecessary (and relatively expensive)
getResources() call in the Mapper when processing rule 7.
(markt)
62978: Update the RemoteIpValve to handle multiple values in
the x-forwarded-proto header. Patch provided by Tom Groot.
(markt)
Update the RemoteIpFilter to handle multiple values in the
x-forwarded-proto header. Based on a patch provided by Tom
Groot. (markt)
62986: Refactor the code that performs class scanning during
web application start to make integration simpler for downstream users.
Patch provided by rmannibucau. (markt)
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)
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)
Coyote
Avoid an exception when using Tomcat Native built with a version of
OpenSSL that does not support TLSv1.3. (markt)
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)
Avoid bad SSLHostConfig JMX registrations before init. (remm)
Jasper
53737: Extend JspC, the precompilation tool, to include
support for resource JARs. (markt)
62976: Avoid an IllegalStateException when using
background compilation when tag files are packaged in JAR files. (markt)
Web applications
62918: Filter out subtype mbeans to avoid breaking the
connector status page. (remm)
Other
Prevent an error when running in a Cygwin shell and the
JAVA_ENDORSED_DIRS system property is empty. Patch provided
by Zemian Deng. (markt)
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)
2018-11-07 Tomcat 8.5.35 (markt)
Catalina
61692: Add the ability to control which HTTP methods are
handled by the CGI Servlet via a new initialization parameter
cgiMethods. (markt)
62687: Expose content length information for resources
when using a compressed war. (remm)
62737: Fix rewrite substitutions parsing of {} nesting.
(remm)
Add rewrite flags output when getting the rewrite configuration back.
(remm)
Add missing qsdiscard flag to the rewrite flags as a cleaner way to
discard the query string. (remm)
Add documentation about the files context.xml.default and
web.xml.default that can be used to customize conf/context.xml
and conf/web.xml on a per host basis. (fschumacher)
Ensure that a canonical path is always used for the docBase of a Context
to ensure consistent behaviour. (markt)
62803: Fix SSL connector configuration processing
in storeconfig. (remm)
62797: Pass throwable to keep client aborts with status 200
rather than 500. Patch submitted by zikfat. (remm)
62809: Correct a regression in the implementation of DIGEST
authentication support for the Deployer Ant tasks (bug 45832)
that prevented the DeployTask from working when
authentication was required. (markt)
Update the recommended minimum Tomcat Native version to 1.2.18. (markt)
Ignore an attribute named source on Context
elements provided by StandardContext. This is to suppress
warnings generated by the Eclipse / Tomcat integration provided by
Eclipse. Based on a patch by mdfst13. (markt)
62830: Added JniLifeCycleListener and static
methods Library.loadLibrary(libraryName) and
Library.load(filename) to load a native library by a
shared class loader so that more than one Webapp can use it. (isapir)
Correct a typo in the Spanish resource files. Patch provided by Diego
Agulló. (markt)
62868: Order the Enumeration<URL> provided
by WebappClassLoaderBase.getResources(String) according to
the setting of the delegate flag. (markt)
Coyote
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)
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)
62739: Do not reject requests with an empty HTTP Host header.
Such requests are unusual but not invalid. Patch provided by Michael
Orr. (markt)
62748: Add TLS 1.3 support for the APR/Native connector and
the NIO/NIO2 connector when using the OpenSSL backed JSSE
implementation. (schultz/markt)
62791: Remove an unnecessary check in the NIO TLS
implementation that prevented from secure WebSocket connections from
being established. (markt)
Fix server initiated TLS renegotiation to obtain a client certificate
when using NIO/NIO2 and the OpenSSL backed JSSE TLS implementation.
(markt)
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
Correct parsing of XML whitespace in TLD function signatures that
incorrectly only looked for the space character. (markt)
62674: Correct a regression in the stand-alone JSP compiler
utility, JspC, caused by the fix for 53492, that
caused the JSP compiler to hang. (markt)
62721: Correct generation of web.xml header when using JspC.
(markt)
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
62731: Make the URI returned by
HandshakeRequest.getRequestURI() and
Session.getRequestURI() absolute so that the scheme, host
and port are accessible. (markt)
Web applications
62676: Expand the CORS filter documentation to make it clear
that explicit configuration is required to enable support for
cross-origin requests. (markt)
62712: Correct NPE in Manager application when attempting to
view configured certificates for an APR/native TLS connector. (markt)
62761: Correct the advanced CORS example in the Filter
documentation to use a valid configuration. (markt)
62786: Add a note to the Context documentation to explain
that, by default, settings for a Context element defined in server.xml
will be overwritten by settings specified in a default context file such
as conf/context.xml. (markt)
Create a little visual separation between the Undeploy button and the
other buttons in the Manager application. Patch provided by Łukasz
Jąder. (markt)
Other
Update the internal fork of Apache Commons Pool 2 to d4e0e88
(2018-09-12) to pick up some bug fixes and enhancements. (markt)
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 8.5.34 (markt)
Catalina
Make the isLocked() method of the LockOutRealm
public and expose the method via JMX. (markt)
Improve the handling of path parameters when working with
RequestDispatcher objects. (markt)
62664: Process requests with content type
multipart/form-data to servlets with a
@MultipartConfig annotation regardless of HTTP method.
(markt)
62667: Add recursion to rewrite substitution parsing. (remm)
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)
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)
When generating a redirect to a directory in the Default Servlet, avoid
generating a protocol relative redirect. (markt)
Coyote
Fix potential deadlocks when using asynchronous Servlet processing with
HTTP/2 connectors. (markt)
62620: Fix corruption of response bodies when writing large
bodies using asynchronous processing over HTTP/2. (markt)
62628: Additional fixes for output corruption of response
bodies when writing large bodies using asynchronous processing over
HTTP/2. (markt)
Jasper
Correct the JSP version in the X-PoweredBy HTTP header generated when
the xpoweredBy option is enabled. (markt)
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
Expand the information in the documentation web application regarding
the use of CATALINA_HOME and CATALINA_BASE.
Patch provided by Marek Czernek. (markt)
62652: Make it clearer that the version of DBCP that is
packaged in Tomcat 8.5.x is DBCP 2. Correct the names of some DBCP 2
configuration attributes that changed between 1.x and 2.x. (markt)
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
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 8.5.33 (markt)
Catalina
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)
62527: Revert restriction of JNDI to the java:
namespace. (remm)
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)
Correctly decode URL paths (+ should not be decoded to a
space in the path) in the RequestDispatcher and the web
application class loader. (markt)
Make logout more robust if JASPIC subject is unexpectedly unavailable.
(markt)
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)
62559: Add jaxb-*.jar to the list of JARs
ignored by StandardJarScanner. (markt)
62560: Add oraclepki.jar to the list of JARs
ignored by StandardJarScanner. (markt)
62607: Return a non-zero exit code from
catalina.[bat|sh] run if Tomcat fails to start. (markt)
Remove ServletException from declaration of
Tomcat.addWebapp(String,String) since it is never thrown.
Patch provided by Tzafrir. (markt)
Use short circuit logic to prevent potential NPE in CorsFilter. (fschumacher)
Simplify construction of appName from container name in JAASRealm. (fschumacher)
Coyote
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)
62507: Ensure that JSSE based TLS connectors work correctly
with a DKS keystore. Note: DKS keystores require Java 8 or later.
(markt)
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)
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)
62526: Correctly handle PKCS12 format key stores when the key
store password is configured to be the empty string. (markt)
Fix error in back-port of HTTP/2 compression that meant compression was
never enabled. (markt)
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)
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
53011: When pre-compiling with JspC, report all compilation
errors rather than stopping after the first error. A new option
-failFast can be used to restore the previous behaviour of
stopping after the first error. Based on a patch provided by Marc Pompl.
(markt)
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)
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)
Correctly decode URL paths (+ should not be decoded to a
space in the path) in the Jasper class loader. (markt)
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
62596: Remove the limit on the size of the initial HTTP
upgrade request used to establish the web socket connection. (markt)
Web applications
61565: Add the ability to trigger a reloading of TLS host
configuration (certificate and key files, server.xml is not re-parsed)
via the Manager web application. (markt)
62558: Add Russian translations for the Manager and Host
Manager web applications. Based on a patch by Ivan Krasnov. (markt)
62561: Add advanced class loader configuration information
regarding the use of the Server and Shared class loaders to the
documentation web application. (markt)
Tribes
Ensures that the specified rxBufSize is correctly set to
receiver buffer size. (kfujino)
Other
Support building with Java 9+ while preserving the Java 7 compatibility
at runtime (requires Ant 1.9.8 or later). (ebourg)
Update WSDL4J library to version 1.6.3 (from 1.6.2). (kkolinko)
Update JUnit library to version 4.12 (from 4.11). (kkolinko)
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/kkolinko)
Implement checksum checks when downloading dependencies that are used
to build Tomcat. (kkolinko)
Fixed spelling. Patch provided by Jimmy Casey via GitHub. (violetagg)
Update the internal fork of Apache Commons Pool 2 to 3e02523
(2018-08-09) to pick up some bug fixes and enhancements. (markt)
Update the internal fork of Apache Commons DBCP 2 to abc0484
(2018-08-09) to pick up some bug fixes and enhancements. (markt)
Correct various spelling errors throughout the source code and
documentation. Patch provided by Kazuhiro Sera. (markt)
2018-06-25 Tomcat 8.5.32 (markt)
Catalina
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)
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)
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)
JNDI resources that are defined with injection targets but no value are
now treated as if the resource is not defined. (markt)
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)
Refactor the org.apache.naming package to reduce duplicate
code. Duplicate code identified by the Simian tool. (markt)
50019: Add support for <lookup-name>.
Based on a patch by Gurkan Erdogdu. (markt)
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)
62343: Make CORS filter defaults more secure. This is the fix
for CVE-2018-8014. (markt)
Ensure that the web application resources implementation does not
incorrectly cache results for resources that are only visible as class
loader resources. (markt)
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)
Correct the manifest for the annotations-api.jar. The JAR implements the
Common Annotations API 1.2 and the manifest should reflect that. (markt)
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)
62389: Add the IPv6 loopback address to the default
internalProxies regular expression. Patch by Craig Andrews.
(markt)
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)
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)
Make JAASRealm mis-configuration more obvious by requiring
the authenticated Subject to include at least one Principal of a type
specified by userClassNames. (markt)
62476: Use GMT timezone for the value of
Expires header as required by HTTP specification
(RFC 7231, 7234). (kkolinko)
Coyote
Consistent exception propagation for NIO2 SSL close. (remm)
Log an error message if the AJP connector detects the the reverse proxy
is sending AJP messages that are too large for the configured
packetSize. (markt)
Relax Host validation by removing the requirement that the final
component of a FQDN must be alphabetic. (markt)
62371: Improve logging of Host validation failures. (markt)
Add missing handshake timeout for NIO2. (remm)
Correctly handle a digest authorization header when the user name
contains an escaped character. (markt)
Correctly handle a digest authorization header when one of the hex
field values ends the header with in an invalid character. (markt)
Correctly handle an invalid quality value in an
Accept-Language header. (markt)
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 NullPointerException thrown from
replaceSystemProperties() when trying to log messages. (csutherl)
Avoid unnecessary processing of async timeouts. (markt)
Jasper
50234: Add the capability to generate a web-fragment.xml file
to JspC. (markt)
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)
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)
Update web.xml, web-fragment.xml and web.xml extracts generated by JspC
to use the Servlet 3.1 version of the relevant schemas. (markt)
Cluster
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)
WebSocket
When decoding of path parameter failed, make sure to throw
DecodeException instead of throwing
ArrayIndexOutOfBoundsException. (kfujino)
Enable host name verification when using TLS with the WebSocket client.
(markt)
Web applications
62395: Clarify the meaning of the connector attribute
minSpareThreads in the documentation web application.
(markt)
Correct the documentation for the allowHostHeaderMismatch
attribute of the standard HTTP Connector implementations. (markt)
Tribes
Ensure that the correct default value is returned when retrieve unset
properties in McastService. (kfujino)
jdbc-pool
When logValidationErrors is set to true, the connection
validation error is logged as SEVERE instead of
WARNING. (kfujino)
Other
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 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)
62458: Update the internal fork of Commons Pool 2 to dfef97b
(2018-06-18) to pick up some bug fixes and enhancements. (markt)
Update the internal fork of Commons DBCP 2 to 2.4.0. (markt)
2018-05-03 Tomcat 8.5.31 (markt)
Catalina
62263: Avoid a NullPointerException when the
RemoteIpValve processes a request for which no Context can
be found. (markt)
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)
Register MBean when DataSource Resource
type="javax.sql.XADataSource". Patch provided by Masafumi Miura.
(csutherl)
Update the internal fork of Apache Commons BCEL to r1829827 to add early
access Java 11 support to the annotation scanning code. (markt)
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)
62309: Fix a SecurityException when using JASPIC
under a SecurityManager when authentication is not
mandatory. (markt)
62329: Correctly list resources in JAR files when directories
do not have dedicated entries. Patch provided by Meelis Müür. (markt)
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)
Improve handing of overflow in the UTF-8 decoder with supplementary
characters. (markt)
Coyote
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)
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)
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)
62273: Implement configuration options to work-around
specification non-compliant user agents (including all the major
browsers) that do not correctly %nn encode URI paths and query strings
as required by RFC 7230 and RFC 3986. (markt)
Jasper
Enable ECJ version 4.7 and later to be used as a drop in replacement for
the ECJ version that ships with Apache Tomcat. (markt)
Enable Java 10 to be specified as a JSP source and/or target if a newer
ECJ version is used. (markt)
62287: Do not rely on hash codes to test instances of
ValueExpressionImpl for equality. Patch provided by Mark
Struberg. (markt)
WebSocket
62301: Correct a regression in the fix for 61491
that didn't correctly handle a final empty message part in all
circumstances when using PerMessageDeflate. (markt)
62332: Ensure WebSocket connections are closed after an I/O
error is experienced reading from the client. (markt)
Other
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 8.5.30 (markt)
Catalina
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)
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)
Ensure the MBean names for the SSLHostConfig and
SSLHostConfigCertificate are correctly formed when the
Connector is bound to a specific IP address. (markt)
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)
62172: Improve Javadoc for
org.apache.catalina.startup.Constants and ensure that the
constants are correctly used. (markt)
62175: Avoid infinite recursion, when trying to validate
a session while loading it with PersistentManager.
(fschumacher)
Ensure that NamingContextListener instances are only
notified once of property changes on the associated naming resources.
(markt)
Add LoadBalancerDrainingValve, a Valve designed to reduce the amount of
time required for a node to drain its authenticated users. (schultz)
62224: Disable the forkJoinCommonPoolProtection
of the JreMemoryLeakPreventionListener when running on Java
9 and above since the underlying JRE bug has been fixed. (markt)
Coyote
Avoid potential loop in APR/Native poller. (markt)
Ensure streams that are received but not processed are excluded from the
tracking of maximum ID of processed streams. (markt)
Refactor the check for a paused connector to consistently prevent new
streams from being created after the connector has been paused. (markt)
Improve debug logging for HTTP/2 pushed streams. (markt)
The OpenSSL engine SSL session will now ignore invalid accesses. (remm)
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 document for FragmentationInterceptor. (kfujino)
Document how the roles for an authenticated user are determined when the
CombinedRealm is used. (markt)
Tribes
Add JMX support for FragmentationInterceptor in order to
prevent warning of startup. (kfujino)
jdbc-pool
Ensure that SQLWarning has been cleared when connection
returns to the pool. (kfujino)
Enable clearing of SQLWarning via JMX. (kfujino)
Ensure that parameters have been cleared when
PreparedStatement and/or CallableStatement are
cached. (kfujino)
Enable PoolCleaner to be started even if validationQuery
is not set. (kfujino)
Other
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)
Always report the OS's umask when launching the JVM. (schultz)
2018-03-08 Tomcat 8.5.29 (markt)
Catalina
Minor optimization when calling class transformers. (rjung)
Prevent Tomcat from applying gzip compression to content that is already
compressed with brotli compression. Based on a patch provided by burka.
(markt)
62090: Null container names are not allowed. (remm)
62104: Fix programmatic login regression as the
NonLoginAuthenticator has to be set for it to work (if no login method
is specified). (remm)
62117: Improve error message in catalina.sh when
calling kill -0 <pid> fails. Based on a suggestion
from Mark Morschhaeuser. (markt)
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 for RequestDumperFilter log attribute. Patch provided
by Kirill Romanov via Github. (violetagg)
62123: Avoid ConcurrentModificationException
when attempting to clean up application triggered RMI memory leaks on
web application stop. (markt)
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 minor HPACK fixes, based on fixes by Stuart Douglas. (remm)
61751: Follow up fix so that OpenSSL engine returns
underflow when unwrapping if no bytes were produced and the input is
empty. (remm)
Minor OpenSSL engine cleanups. (remm)
NIO SSL handshake should throw an exception on overflow status, like
NIO2 SSL. (remm)
Web applications
48672: Add documentation for the Host Manager web
application. Patch provided by Marek Czernek. (markt)
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)
Other
Update the build script so MD5 hashes are no longer generated for
releases as per the change in the ASF distribution policy. (markt)
2018-02-11 Tomcat 8.5.28 (markt)
Catalina
Prevent a stack trace being written to standard out when running on Java
10 due to changes in the LogManager implementation. (markt)
62000: When a JNDI reference cannot be resolved, ensure that
the root cause exception is reported rather than swallowed. (markt)
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)
Avoid duplicate load attempts if one has been made already. (remm)
Avoid NPE in ThreadLocalLeakPreventionListener if there is no Engine.
(remm)
62067: Correctly apply security constraints mapped to the
context root using a URL pattern of "". (markt)
When using Tomcat embedded, only perform Authenticator configuration
once during web application start. (markt)
Process all ServletSecurity annotations at web application
start rather than at servlet load time to ensure constraints are applied
consistently. (markt)
Coyote
61751: Fix truncated request input streams when using NIO2
with TLS. (markt)
62023: Log error reporting multiple SSLHostConfig elements
when using the APR Connector instead of crashing Tomcat. (csutherl)
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)
WebSocket
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
62049: Fix missing class from manager 404 JSP error page.
(remm)
jdbc-pool
Enhance the JMX support for jdbc-pool in order to expose
PooledConnection and JdbcInterceptors.
(kfujino)
Expose the cache size for each connection via JMX in
StatementCache. (kfujino)
Add MBean for ResetAbandonedTimer. (kfujino)
Other
Update the NSIS Installer used to build the Windows installer to version
3.03. (kkolinko)
2018-01-22 Tomcat 8.5.27 (markt)
Catalina
Correct a regression in the previous fix for 61916 that meant
that any call to addHeader() would have been replaced with
a call to setHeader() for all requests mapped to the
AddDefaultCharsetFilter. (markt)
Coyote
61993: Improve handling for ByteChunk and
CharChunk instances that grow close to the maximum size
allowed by the JRE. (markt)
Jasper
43925: Add a new system property
(org.apache.jasper.runtime.BodyContentImpl.BUFFER_SIZE) to
control the size of the buffer used by Jasper when buffering tag bodies.
(markt)
Web applications
62006: Document the new JvmOptions9 command line
parameter for tomcat8.exe. (markt)
not released Tomcat 8.5.26 (markt)
Catalina
Correct Javadoc errors in release build.
not released Tomcat 8.5.25 (markt)
Catalina
47214: Use a loop to preload anonymous inner classes
when running under a SecurityManager, to be safe for
future changes in the code or using a different compiler. (kkolinko)
57619: Implement a small optimisation to how JAR URLs are
processed to reduce the storage of duplicate String objects in memory.
Patch provided by Dmitri Blinov. (markt)
Add some missing NPEs to ServletContext. (remm)
61916: Extend the AddDefaultCharsetFilter to add
a character set when the content type is set via
setHeader() or addHeader() as well as when it
is set via setContentType(). (markt)
61999: maxSavePostSize set to 0 should disable saving POST
data during authentication. (remm)
Coyote
60276: Implement GZIP compression support for responses
served over HTTP/2. (markt)
Do not call onDataAvailable without any data to read. (remm)
61886: Log errors on non-container threads at
DEBUG rather than INFO. The exception will be
made available to the application via the asynchronous error handling
mechanism. (markt)
61914: Possible NPE with Java 9 when creating a SSL engine.
Patch submitted by Evgenij Ryazanov. (remm)
61918: Fix connectionLimitLatch counting when closing an
already closed socket. Based on a patch by Ryan Fong. (remm)
Add support for the OpenSSL ARIA ciphers to the OpenSSL to JSSE
cipher mapping. (markt)
61932: Allow a call to AsyncContext.dispatch()
to terminate non-blocking I/O. (markt)
61948: Improve the handling of malformed ClientHello messages
in the code that extracts the SNI information from a TLS handshake for
the JSSE based NIO and NIO2 connectors. (markt)
Fix NIO2 handshaking with a full input buffer. (remm)
Return a simple, plain text error message if a client attempts to make a
plain text HTTP connection to a TLS enabled NIO or NIO2 Connector.
(markt)
Correctly handle EOF when ServletInputStream.isReady() is
called. (markt)
Jasper
61854: When using sets and/or maps in EL expressions, ensure
that Jasper correctly parses the expression. Patch provided by Ricardo
Martin Camarero. (markt)
Improve the handling of methods with varargs in EL expressions. In
particular, the calling of a varargs method with no parameters now works
correctly. Based on a patch by Nitkalya (Ing) Wiriyanuparb. (markt)
Web applications
Remove the Servlet 4.0 early preview example from the examples web
application as the early preview is now deprecated in favour of Tomcat
9 which provides a full Servlet 4.0 implementation. (markt)
61223: Add the mbeans-descriptors.dtd file to the custom
MBean documentation so users have a reference to use when constructing
mbeans-descriptors.xml files for custom components. (markt)
61566: Expose the currently in use certificate chain and list
of trusted certificates for all virtual hosts configured using the JSSE
style (keystore) TLS configuration via the Manager web application.
(markt)
Partial fix for 61886. Ensure that multiple threads do not
attempt to complete the AsyncContext if an I/O error occurs
in the stock ticker example Servlet. (markt)
61886: Prevent ConcurrentModificationException
when running the asynchronous stock ticker in the examples web
application. (markt)
61886: Prevent NullPointerException and other
errors if the stock ticker example is running when the examples web
application is stopped. (markt)
61910: Clarify the meaning of the allowLinking
option in the documentation web application. (markt)
Add OCSP configuration information to the SSL How-To. Patch provided by
Marek Czernek. (markt)
jdbc-pool
61312: Prevent NullPointerException when using
the statement cache of connection that has been closed. (kfujino)
Other
Add an additional system property for the system property replacement.
(remm)
Add missing SHA-512 hash for release artifacts to the build script.
(markt)
Update the internal fork of Commons Pool 2 to 2.4.3. (markt)
Update the internal fork of Commons DBCP 2 to 8a71764 (2017-10-18) to
pick up some bug fixes and enhancements. (markt)
Update the internal fork of Commons FileUpload to 6c00d57 (2017-11-23)
to pick up some code clean-up. (markt)
Update the internal fork of Commons Codec to r1817136 to pick up some
code clean-up. (markt)
The native source bundles (for Commons Daemon and Tomcat Native) are no
longer copied to the bin directory for the deploy target. They are now
only copied to the bin directory for the release target. (markt)
2017-11-30 Tomcat 8.5.24 (markt)
Catalina
When running under Java 9 or later, and the
urlCacheProtection option of the
JreMemoryLeakPreventionListener is enabled, use the API
added in Java 9 to only disable the caching for JAR URL connections.
(markt)
Fix possible SecurityException when using TLS related
request attributes. (markt)
61597: Extend the StandardJarScanner to scan
JARs on the module path when running on Java 9 and class path scanning
is enabled. (markt)
61601: Add support for multi-release JARs in JAR scanning and
web application class loading. (markt)
61681: Allow HTTP/2 push when using request wrapping. (remm)
Provide the SessionInitializerFilter that can be used to
ensure that an HTTP session exists when initiating a WebSocket
connection. Patch provided by isapir. (markt)
61682: When re-prioritising HTTP/2 streams, ensure that both
parent and children fields are correctly updated to avoid a possible
StackOverflowError. (markt)
Improve concurrency by reducing the scope of the synchronisation for
javax.security.auth.message.config.AuthConfigFactory in the
JASPIC API implementation. Based on a patch by Pavan Kumar. (markt)
Avoid a possible NullPointerException when timing out
AsyncContext instances during shut down. (markt)
61777: Avoid a NullPointerException when
detaching a JASPIC RegistrationListener. Patch provided by
Lazar. (markt)
61778: Correct the return value when detaching a JASPIC
RegistrationListener. Patch provided by Lazar. (markt)
61779: Avoid a NullPointerException when a
nullRegistrationListener is passed to
AuthConfigFactory.getConfigProvider(). Patch provided by
Lazar. (markt)
61780: Only include the default JASPIC registration ID in the
return value for a call to
AuthConfigFactory.getRegistrationIDs() if a
RegistrationContext has been registered using the default
registration ID. Patch provided by Lazar. (markt)
61781: Enable JASPIC provider registrations to be persisted
when the layer and/or application context are null. Patch
provided by Lazar. (markt)
61782: When calling
AuthConfigFactory.doRegisterConfigProvider() and the
requested JASPIC config provider class is found by the web application
class loader, do not attempt to load the class with the class loader
that loaded the JASPIC API. Patch provided by Lazar. (markt)
61783: When calling
AuthConfigFactory.removeRegistration() and the registration
is persistent, it should be removed from the persistent store. Patch
provided by Lazar. (markt)
61784: Correctly handle the case when
AuthConfigFactoryImpl.registerConfigProvider() is called
with a provider name of null. Patch provided by Lazar.
(markt)
61795: Add a property to the Authenticator
implementations to enable a custom JASPIC CallbackHandler
to be specified. Patch provided by Lazar. (markt)
Coyote
Enable ALPN and also, therefore, HTTP/2 for the NIO and NIO2 HTTP
connectors when using the JSSE implementation for TLS when running on
Java 9. (markt)
60762: Add the ability to make changes to the TLS
configuration of a connector at runtime without having to restart the
Connector. (markt)
61568: Avoid a potential SecurityException when
using the NIO2 connector and a new thread is added to the pool. (markt)
61583: Correct a further regression in the fix to enable the
use of Java key stores that contained multiple keys that did not all
have the same password. This fixes PKCS11 key store handling with
multiple keys selected with an alias. (markt)
Reduce default HTTP/2 stream concurrent execution within a connection
from 200 to 20. (remm)
61668: Avoid a possible NPE when calling
AbstractHttp11Protocol.getSSLProtocol(). (markt)
61673: Avoid a possible
ConcurrentModificationException when working with the
streams associated with a connection. (markt)
61719: Avoid possible NPE calling
InputStream.setReadListener with HTTP/2. (remm)
61736: Improve performance of NIO connector when clients
leave large time gaps between network packets. Patch provided by Zilong
Song. (markt)
61740: Correct an off-by-one error in the Hpack header index
validation that caused intermittent request failures when using HTTP/2.
(markt)
Jasper
61816: Invalid expressions in attribute values or template
text should trigger a translation (compile time) error, not a run time
error. (markt)
WebSocket
61604: Add support for authentication in the websocket
client. Patch submitted by J Fernandez. (remm)
Web applications
Enable Javadoc to be built with Java 9. (markt)
61603: Add XML filtering for the status servlet output where
needed. (remm)
Correct the description of how the CGI servlet maps a request to a
script in the CGI How-To. (markt)
Tribes
Fix incorrect behavior that attempts to resend channel messages more
than the actual setting value of maxRetryAttempts.
(kfujino)
Ensure that the remaining Sender can send channel messages by avoiding
unintended ChannelException caused by comparing the number
of failed members and the number of remaining Senders. (kfujino)
Ensure that remaining SelectionKeys that were not handled by throwing a
ChannelException during SelectionKey processing are
handled. (kfujino)
Other
Improve the fix for 61439 and exclude the JPA, JAX-WS and EJB
annotations completely from the Tomcat distributions. (markt)
Improve handling of endorsed directories. The endorsed directory
mechanism will only be used if the JAVA_ENDORSED_DIRS
system property is explicitly set or if
$CATALINA_HOME/endorsed exists. When running on Java 9, any
such attempted use of the endorsed directory mechanism will trigger an
error and Tomcat will fail to start. (rjung)
Refactoring in preparation for Java 9. Refactor to avoid using some
methods that will be deprecated in Java 9 onwards. (markt)
51496: When using the Windows installer, check if the
requested service name already exists and, if it does, prompt the user
to select an alternative service name. Patch provided by Ralph
Plawetzki. (markt)
Add necessary Java 9 configuration options to the startup scripts to
prevent warnings being generated on web application stop. (markt)
61590: Enable service.bat to recognise when
JAVA_HOME is configured for a Java 9 JDK. (markt)
61598: Update the Windows installer to search the new (as of
Java 9) registry locations when looking for a JRE. (markt)
Add generation of a SHA-512 hash for release artifacts to the build
script. (markt)
61658: Update MIME mappings for fonts to use
font/* as per RFC8081. (markt)
Update the packaged version of the Tomcat Native Library to 1.2.16 to
pick up the latest Windows binaries built with APR 1.6.3 and OpenSSL
1.0.2m. (markt)
Update the NSIS Installer used to build the Windows installer to version
3.02.1. (kkolinko)
Update the Windows installer to use "The Apache Software Foundation" as
the Publisher when Tomcat is displayed in the list of installed
applications in Microsoft Windows. (kkolinko)
61803: Remove outdated SSL information from the Security
documentation. (remm)
2017-10-01 Tomcat 8.5.23 (markt)
Catalina
Use the correct path when loading the JVM logging.properties
file for Java 9. (rjung)
Add additional validation to the resource handling required to fix
CVE-2017-12617 on Windows. The checks were being performed elsewhere but
adding them to the resource handling ensures that the checks are always
performed. (markt)
61554: Exclude test files in unusual encodings and markdown
files intended for display in GitHub from RAT analysis. Patch provided
by Chris Thistlethwaite. (markt)
Other
61563: Correct typos in Spanish translation. Patch provided by
Gonzalo Vásquez. (csutherl)
not released Tomcat 8.5.22 (markt)
Catalina
60963: Add ExtractingRoot, a new
WebResourceRoot implementation that extracts JARs to the
work directory for improved performance when deploying packed WAR files.
(markt)
Add an option to reject requests that contain HTTP headers with invalid
(non-token) header names with a 400 response. (markt)
61542: Fix CVE-2017-12617 and prevent JSPs from being
uploaded via a specially crafted request when HTTP PUT was enabled.
(markt)
Implement the requirements of RFC 7230 (and RFC 2616) that HTTP/1.1
requests must include a Host header and any request that
does not must be rejected with a 400 response. (markt)
Implement the requirements of RFC 7230 that any HTTP/1.1 request that
specifies a host in the request line, must specify the same host in the
Host header and that any such request that does not, must
be rejected with a 400 response. This check is optional but disabled by
default. It may be enabled with the
allowHostHeaderMismatch attribute of the Connector. (markt)
Implement the requirements of RFC 7230 that any HTTP/1.1 request that
contains multiple Host headers is rejected with a 400
response. (markt)
Coyote
Add a way to set the property source in embedded mode. (remm)
61557: Correct a further regression in the fix to enable the
use of Java key stores that contain multiple keys that do not all have
the same password. The regression broke support for some FIPS compliant
key stores. (markt)
jdbc-pool
61545: Correctly handle invocations of methods defined in the
PooledConnection interface when using pooled XA
connections. Patch provided by Nils Winkler. (markt)
Other
Update fix for 59904 so that values less than zero are accepted
instead of throwing a NegativeArraySizeException. (remm)
2017-09-19 Tomcat 8.5.21 (markt)
Catalina
Before generating an error page in the ErrorReportValve,
check to see if I/O is still permitted for the associated connection
before generating the error page so that the page generation can be
skipped if the page is never going to be sent. (markt)
61189: Add the ability to set environment variables for
individual CGI scripts. Based on a patch by jm009. (markt)
61210: When running under a SecurityManager, do not print a
warning about not being able to read a logging configuration file when
that file does not exist. (markt)
61280: Add RFC 7617 support to the
BasicAuthenticator. Note that the default configuration
does not change the existing behaviour. (markt)
61424: Avoid a possible StackOverflowError when
running under a SecurityManager and using
Subject.doAs(). (markt)
Coyote
The minimum required Tomcat Native version has been increased to 1.2.14.
This version includes a new API needed for correct client certificate
support when using a Java connector with OpenSSL TLS implementation and
support for the SSL_CONF OpenSSL API. (rjung)
Add support for the OpenSSL SSL_CONF API when using
TLS with OpenSSL implementation. It can be used by adding
OpenSSLConf elements underneath SSLHostConfig.
The new element contains a list of OpenSSLConfCmd elements,
each with the attributes name and value.
(rjung)
When using a Java connector in combination with the OpenSSL TLS
implementation, do not configure each SSL connection object via
the OpenSSLEngine. For OpenSSL the SSL object inherits its
settings from the SSL_CTX which we have already configured.
(rjung)
When using JSSE TLS configuration with the OpenSSL implementation and
client certificates: include client CA subjects in the TLS handshake
so that the client can choose an appropriate client certificate to
present. (rjung)
If an invalid option is specified for the
certificateVerification attribute of an
SSLHostConfig element, treat it as required
which is the most secure / restrictive option in addition to reporting
the configuration error. (markt)
Improve the handling of client disconnections during the TLS
renegotiation handshake. (markt)
Prevent exceptions being thrown during normal shutdown of NIO
connections. This enables TLS connections to close cleanly. (markt)
Fix possible race condition when setting IO listeners on an upgraded
connection. (remm)
48655: Enable Tomcat to shutdown cleanly when using sendfile,
the APR/native connector and a multi-part download is in progress.
(markt)
58244: Handle the case when OpenSSL resumes a TLS session
using a ticket and the full client certificate chain is not available.
In this case the client certificate without the chain will be presented
to the application. (markt)
Improve the warning message when JSSE and OpenSSL configuration styles
are mixed on the same SSLHostConfig. (markt)
61415: Fix TLS renegotiation with OpenSSL based connections
and session caching. (markt)
Delay checking that the configured attributes for an
SSLHostConfig instance are consistent with the configured
SSL implementation until Connector start to avoid incorrect
warnings when the SSL implementation changes during initialisation.
(markt)
61451: Correct a regression in the fix to enable the use of
Java key stores that contained multiple keys that did not all have the
same password. The regression broke support for any key store that did
not store keys in PKCS #8 format such as hardware key stores and Windows
key stores. (markt)
WebSocket
60523: Reduce the number of packets used to send WebSocket
messages by not flushing between the header and the payload when the
two are written together. (markt)
61491: When using the permessage-deflate
extension, correctly handle the sending of empty messages after
non-empty messages to avoid the IllegalArgumentException.
(markt)
Web applications
Show connector cipher list in the manager web application in the
correct cipher order. (rjung)
Tribes
To avoid unexpected session timeout notification from backup session,
update the access time when receiving the map member notification
message. (kfujino)
Add member info to the log message when the failure detection check
fails in TcpFailureDetector. (kfujino)
Avoid Ping timeout until the added map member by receiving
MSG_START message is completely started. (kfujino)
When sending a channel message, make sure that the Sender has connected.
(kfujino)
Correct the backup node selection logic that node 0 is returned twice
consecutively. (kfujino)
Fix race condition of responseMap in
RpcChannel. (kfujino)
jdbc-pool
61391: Ensure that failed queries are logged if the
SlowQueryReport interceptor is configured to do so and the
connection has been abandoned. Patch provided by Craig Webb. (markt)
61425: Ensure that transaction of idle connection has
terminated when the testWhileIdle is set to
true and defaultAutoCommit is set to
false. Patch provided by WangZheng. (kfujino)
Other
61439: Remove the Java Annotation API classes from
tomcat-embed-core.jar and package them in a separate JAR in the
embedded distribution to provide end users with greater flexibility to
handle potential conflicts with the JRE and/or other JARs. (markt)
61441: Improve the detection of JAVA_HOME by the
daemon.sh script when running on a platform where Java has
been installed from an RPM. (rjung)
Update the packaged version of the Tomcat Native Library to 1.2.14 to
pick up the latest Windows binaries built with APR 1.6.2 and OpenSSL
1.0.2l. (markt)
61599: Update to Commons Daemon 1.1.0 for improved Java 9
support. (markt)
2017-08-08 Tomcat 8.5.20 (markt)
Catalina
Revert the fix for 49464 since it continued to trigger
regressions. (markt)
Correct a bug in the PushBuilder implementation that
meant push URLs containing %nn sequences were not correctly
decoded. Identified by FindBugs. (markt)
61164: Add support for the %X pattern in the
AccessLogValve that reports the connection status at the
end of the request. Patch provided by Zemian Deng. (markt)
61351: Correctly handle %nn decoding of URL patterns in
web.xml and similar locations that may legitimately contain characters
that are not permitted by RFC 3986. (markt)
61366: Add a new attribute, localDataSource, to
the JDBCStore that allows the Store to be configured to use
a DataSource defined by the web application rather than the default of
using a globally defined DataSource. Patch provided by Jonathan
Horowitz. (markt)
Coyote
61086: Ensure to explicitly signal an empty request body for
HTTP 205 responses. Additional fix to r1795278. Based on a patch
provided by Alexandr Saperov. (violetagg)
61345: Add a server listener that can be used to do system
property replacement from the property source configured in the
digester. (remm)
Add additional logging to record problems that occur while waiting for
the NIO pollers to stop during the Connector stop process. (markt)
Jasper
61364: Ensure that files are closed after detecting encoding
of JSPs so that files do not remain locked by the file system. (markt)
WebSocket
57767: Add support to the WebSocket client for following
redirects when attempting to establish a WebSocket connection. Patch
provided by J Fernandez. (markt)
2017-07-28 Tomcat 8.5.19 (markt)
Catalina
Performance improvements for service loader look-ups (and look-ups of
other class loader resources) when the web application is deployed in a
packed WAR file. (markt)
61253: Add warn message when Digester.updateAttributes
throws an exception instead of ignoring it. (csutherl)
Correct a further regression in the fix for 49464 that could
cause an byte order mark character to appear at the start of content
included by the DefaultServlet. (markt)
61313: Make the read timeout configurable in the
JNDIRealm and ensure that a read timeout will result in an
attempt to fail over to the alternateURL. Based on patches by Peter
Maloney and Felix Schumacher. (markt)
Web applications
Correct ths used under a
SecurityManager. (markt)
jdbc-pool
Refactor the creating a constructor for a proxy class to reduce
duplicate code. (kfujino)
In StatementFacade, the method call on the statements that
have been closed throw SQLException rather than
NullPointerException. (kfujino)
Other
Correct comments about Java 8 in Jre8Compat.
Patch provided by fibbers via Github. (violetagg)
60932: Correctly escape single quotes when used in i18n
messages. Based on a patch by Michael Osipov. (markt)
Update the custom Ant task that integrates with the Symantec code
signing service to use the now mandatory 2-factor authentication.
(markt)
2017-03-30 Tomcat 8.5.13 (markt)
Catalina
54618: Add support to the
HttpHeaderSecurityFilter for the HSTS preload parameter.
(markt)
60853: Expose the SSLHostConfig and
SSLHostConfigCertificate objects via JMX. (markt)
60876: Ensure that Set-Cookie headers generated
by the Rfc6265CookieProcessor are aligned with the
specification. Patch provided by Jim Griswold. (markt)
60882: Fix a NullPointerException when obtaining
a RequestDispatcher for a request that will not have any
pathInfo associated with it. This was a regression in the changes in
8.5.12 for the Servlet 4.0 API early preview changes. (markt)
Align PushBuilder API with changes from Servlet expert
group. (markt)
Refactor the various implementations of X to comma separated list to a
single utility class and update the code to use the new utility class.
(markt)
60911: Ensure NPE will not be thrown when looking for SSL
session ID. Based on a patch by Didier Gutacker. (violetagg)
Coyote
60362: Add a new Connector configuration
sendReasonPhrase. When this attribute is set to
true, a reason phrase will be sent with the response.
By default a reason phrase will not be sent. This option is deprecated
and is not available in Tomcat 9. (violetagg)
Fix HTTP/2 incorrect input unblocking on EOF. (remm)
Close the connection sooner if an event occurs for a current connection
that is not consistent with the current state of that connection.
(markt)
Speed up shutdown when using multiple acceptor threads by ensuring that
the code that unlocks the acceptor threads correctly handles the case
where there are multiple threads. (markt)
60852: Correctly spell compressible when used in
configuration attributes and internal code. Based on a patch by Michael
Osipov. (markt)
60900: Avoid a NullPointerException in the APR
Poller if a connection is closed at the same time as new data arrives on
that connection. (markt)
Improve HPACK specification compliance by fixing some test failures
reported by the h2spec tool written by Moto Ishizawa. (markt)
Improve HTTP/2 specification compliance by fixing some test failures
reported by the h2spec tool written by Moto Ishizawa. (markt)
60918: Fix sendfile processing error that could lead to
subsequent requests experiencing an IllegalStateException.
(markt)
Improve sendfile handling when requests are pipelined. (markt)
Jasper
Improve the error handling for simple tags to ensure that the tag is
released and destroyed once used. (remm, violetagg)
60844: Correctly handle the error when fewer parameter values
than required by the method are used to invoke an EL method expression.
Patch provided by Daniel Gray. (markt)
jdbc-pool
60764: Implement equals() and
hashCode() in the StatementFacade in order to
enable these methods to be called on the closed statements if any
statement proxy is set. This behavior can be changed with
useStatementFacade attribute. (kfujino)
Other
Refactor the build script and the NSIS installer script so that either
NSIS 2.x or NSIS 3.x can be used to build the installer. This is
primarily to re-enable building the installer on the Linux based CI
system where the combination of NSIS 3.x and wine leads to failed
installer builds. (markt)
2017-03-13 Tomcat 8.5.12 (markt)
Catalina
60469: Refactor RealmBase for better code re-use
when implementing Realms that use a custom Principal.
(markt)
60490: Various formatting and layout improvements for the
ErrorReportValve. Patch provided by Michael Osipov. (markt)
60596: Improve performance of DefaultServlet when sendfile
feature is disabled on connector. (kkolinko)
Make it easier for sub-classes of Tomcat to modify the
default web.xml settings by over-riding
getDefaultWebXmlListener(). Patch provided by Aaron
Anderson. (markt)
Reduce the contention in the default InstanceManager
implementation when multiple threads are managing objects and need to
reference the annotation cache. (markt)
60674: Remove final marker from
CorsFilter to enable sub-classing. (markt)
60683: Security manager failure causing NPEs when doing IO
on some JVMs. (csutherl)
60688: Update the internal fork of Apache Commons BCEL to
r1782855 to add early access Java 9 support to the annotation scanning
code. (markt)
60694: Prevent NPE during authentication when no JASPIC
AuthConfigFactory is available. (markt)
60697: When HTTP TRACE requests are disabled on the
Connector, ensure that the HTTP OPTIONS response from custom servlets
does not include TRACE in the returned Allow header. (markt)
60718: Improve error handling for asynchronous processing and
correct a number of cases where the requestDestroyed()
event was not being fired and an entry wasn't being made in the access
logs. (markt)
60720: Replace "WWW-Authenticate" literal with static final
AUTH_HEADER_NAME in SpnegoAuthenticator. Patch provided by Michael
Osipov. (violetagg)
The default JASPIC AuthConfigFactory now correctly notifies
registered RegistrationListeners when a new
AuthConfigProvider is registered. (markt)
Improve the performance of AuthenticatorBase when there is
no JASPIC configuration available. (violetagg)
When HTTP TRACE requests are disabled on the Connector, ensure that the
HTTP OPTIONS response from the WebDAV servlet does not include
TRACE in the returned Allow header. (markt)
60722: Take account of the
dispatchersUseEncodedPaths setting on the current
Context when generating paths for dispatches triggered
by AsyncContext.dispatch(). (markt)
60728: Make the separator Tomcat uses in the Tomcat specific
war:file:... URL protocol customizable via a system
property. The separator is equivalent to the use of the !
character in jar:file:... URLs. The default separator of
* remains unchanged. (markt)
Update the org.apache.catalina.servlet4preview package that
can be used to gain early access to Servlet 4.0 features to align with
the latest proposals from the Servlet 4.0 expert group. This includes
updates to the new Servlet mapping API, new methods on the
ServletContext to make the available API more equivalent to
the deployment descriptor, updates to the HTTP push API and the ability
to set default request and response character encoding per web
application. Note that the Servlet 4.0 API is still a work in progress
and further changes are likely. (markt)
60798: Correct a bug in the handling of JARs in unpacked WARs
that meant multiple attempts to read the same entry from a JAR in
succession would fail for the second and subsequent attempts. (markt)
60808: Ensure that the Map returned by
ServletRequest.getParameterMap() is fully immutable. Based
on a patch provided by woosan. (markt)
60824: Correctly cache the Subject in the
session - if there is a session - when running under a
SecurityManager. Patch provided by Jan Engehausen. (markt)
Ensure request and response facades are used when firing application
listeners. (markt/remm)
Coyote
Improve handling of case when an HTTP/2 client sends more data that is
subject to flow control than the current window size allows. (markt)
Improve NIO2 look-ahead parsing of TLS client hello for SNI with large
client hello messages. (markt)
59807: Provide a better error message when there is no
SSLHostConfig defined with a hostName that
matches the defaultSSLHostConfigName for the associated
Connector. (markt)
Include the value of SslHostConfig.truststoreAlgorithm when
warning that the algorithm does not support the
certificateVerificationDepth configuration option. (markt)
Ensure that executor thread pools used with connectors pre-start the
configured minimum number of idle threads. (markt)
60594: Allow some invalid characters that were recently
restricted to be processed in requests by using the system property
tomcat.util.http.parser.HttpParser.requestTargetAllow.
(csutherl)
60627: Modify the Rfc6265CookieProcessor so that
in addition to cookie headers that start with an explicit RFC 2109
$Version=1, cookies that start with $Version=0
are also parsed as RFC 2109 cookies. (markt)
60716: Add a new JSSE specific attribute,
revocationEnabled, to SSLHostConfig to permit
JSSE provider revocation checks to be enabled when no
certificateRevocationListFile has been configured. The
expectation is that configuration will be performed via a JSSE provider
specific mechanisms. (markt)
Modify the cookie header generated by the
Rfc6265CookieProcessor so it always sends an
Expires attribute as well as a Max-Age
attribute to avoid problems with Microsoft browsers that do not support
the Max-Age attribute. (markt)
60761: Expose a protected getter and setter for
NioEndpoint.stopLatch to make the class easier to extend.
(markt)
Prevent blocking reads after a stream exception occurs with HTTP/2.
(remm)
Jasper
Follow up to the fix for 58178. When creating the
ELContext for a tag file, ensure that any registered
ELContextListeners are fired. (markt)
Refactor code generated for JSPs to reduce the size of the code required
for tags. (markt)
60769: Correct a regression in the XML encoding detection
refactoring carried out for 8.5.10 that incorrectly always used the
detected BOM encoding in preference to any encoding specified in the
prolog. (markt)
Update to the Eclipse JDT Compiler 4.6.1. (markt)
Cluster
Make the accessTimeout configurable in
BackupManager and ClusterSingleSignOn. The
accessTimeout is used as a timeout period for PING in
replication map. (kfujino)
60806: To avoid ClassNotFoundException, make
sure that the web application class loader is passed to
ReplicatedContext. (kfujino)
WebSocket
60617: Correctly create a CONNECT request when
establishing a WebSocket connection via a proxy. Patch provided by
Svetlin Zarev. (markt)
Tribes
Add log message that PING message has received beyond the timeout
period. (kfujino)
When a PING message that beyond the time-out period has been received,
make sure that valid member is added to the map membership. (kfujino)
Ensure that NoRpcChannelReply messages are not received on
RpcCallback. (kfujino)
Web Applications
Add Specification and Javadoc references for JASPIC to the Docs
application. (csutherl)
Other
Spelling corrections provided by Josh Soref. (violetagg)
Update the packaged version of the Tomcat Native Library to 1.2.12 to
pick up the latest Windows binaries built with OpenSSL 1.0.2k. (violetagg)
60784: Update all unit tests that test the HTTP status line
to check for the required space after the status code. Patch provided by
Michael Osipov. (markt)
Update the NSIS Installer used to build the Windows installer to version
3.01. (markt)
2017-01-16 Tomcat 8.5.11 (markt)
Catalina
60620:
Extend the JreMemoryLeakPreventionListener to provide
protection against ForkJoinPool.commonPool() related memory
leaks. (markt)
Coyote
Ensure UpgradeProcessor instances associated with closed connections are
removed from the map of current connections to Processors. (markt)
Remove a workaround for a problem previously reported with WebSocket,
TLS and APR that treated some error conditions as not errors. The
original problem cannot be reproduced with the current code and the
work-around is now causing problems. (markt)
Jasper
60497: Follow up fix using a better variable name for the
tag reuse flag. (remm)
Revert use of try/finally for simple tags. (remm)
WebSocket
Prevent potential processing loop on unexpected WebSocket connection
closure. (markt)
jdbc-pool
Enable reset the statistics without restarting the pool. (kfujino)
Other
Spelling corrections provided by Josh Soref. (violetagg)
not released Tomcat 8.5.10 (markt)
Catalina
53602: Add HTTP status code 451 (RFC 7725) to the list of
HTTP status codes recognised by the ErrorReportValve. (markt)
60446: Handle the case where the stored user credential uses
a different key length than the length currently configured for the
CredentialHandler. Based on a patch by Niklas Holm. (markt)
Update the warnings that reference required options for running on Java
9 to use the latest syntax for those options. (markt)
60513: Fix thread safety issue with RMI cleanup code. (remm)
Coyote
Expand the search process for a server certificate when OpenSSL is used
with a JSSE connector and an explicit alias has not been configured.
(markt)
60450: Improve the selection algorithm for the default trust
store type for a TLS Virtual Host. In particular, don't use
PKCS12 as a default trust store type. Better document how
the default trust store type is selected for a TLS virtual host. (markt)
60451: Correctly handle HTTP/2 header values that contain
characters with unicode code points in the range 128 to 255. Reject
with a clear error message HTTP/2 header values that contain characters
with unicode code points above 255. (markt)
Improve the logic that selects an address to use to unlock the Acceptor
to take account of platforms what do not listen on all local addresses
when configured with an address of 0.0.0.0 or
::. (markt)
Correct a regression in the refactoring to make wider use of
ByteBuffer that caused an intermittent failure in the unit
tests. (markt)
60482: HTTP/2 shouldn't do URL decoding on the query string.
(remm)
Fix an HTTP/2 compression error. Once a new size has been agreed for the
dynamic HPACK table, the next header block must begin with a dynamic
table update. (markt)
Implement a simpler JSP file encoding detector that delegates XML prolog
encoding detection to the JRE rather than using a custom XML parser.
(markt)
60497: Restore previous tag reuse behavior following the use
of try/finally. (remm)
Improve the error handling for simple tags to ensure that the tag is
released and destroyed once used. (remm)
WebSocket
Correctly handle blocking WebSocket writes when the write times out just
before the write is attempted. (markt)
Web Applications
In the documentation web application, be explicit that clustering
requires a secure network for all of the cluster network traffic.
(markt)
Update the ASF logos to the new versions.
60344: Add a note to BUILDING.txt regarding using the source
bundle with the correct line endings. (markt)
60468: Correct the format of the sample ISO-8601 date used
to report the build date for the documentation. Patch provided by
Michael Osipov. (markt)
Other
Update the ASF logos used in the Apache Tomcat installer for Windows to
use the new versions.
2016-12-08 Tomcat 8.5.9 (markt)
Catalina
60202: Add an available flag to realms, to indicate the
state, or the realm backend. Update lockout realm to only register
auth failures if the realm is available. (remm)
60340: Readability improvements for CSS used in
DefaultServlet and ErrorReportValve. Patch provided by Michael
Osipov. (violetagg)
60351: Delay creating META-INF/war-tracker file
until after the WAR has been expanded to address the case where the
Tomcat process terminates during the expansion. (markt)
Correctly generate URLs for resources located inside JARs that are
themselves located inside a packed WAR file. (markt)
Correctly handle the configClass attribute of a Host when
embedding Tomcat. (markt)
60368: Restore egde case for embedded allowing the connector
to be removed. (remm)
60379: Dispose of the GSS credential once it is no longer
required. Patch provided by Michael Osipov. (markt)
60380: Ensure that a call to
HttpServletRequest#logout() triggers a call to
TomcatPrincipal#logout(). Based on a patch by Michael
Osipov. (markt)
60387: Correct the javadoc for
o.a.catalina.AccessLog.setRequestAttributesEnabled.
The default value is different for the different implementations.
(violetagg)
60393: Use consistent parameter naming in implementations of
Realm#authenticate(GSSContext, boolean). (markt)
60395: Log when an Authenticator passes an
incomplete GSSContext to a Realm since it indicates a bug
in the Authenticator. Patch provided by Michael Osipov.
(markt)
60400: When expanding the buffer used for reading the
request body, ensure the read position will be restored to the
original one. (violetagg)
60410: Ensure that multiple calls to
JarInputStreamWrapper#close() do not incorrectly trigger
the closure of the underlying JAR or WAR file. (markt)
60411: Implement support in the RewriteValve for
symbolic names to specify the redirect code to use when returning a
redirect response to the user agent. Patch provided by Michael Osipov.
(markt)
60413: In the RewriteValve write empty capture
groups as the empty string rather than as "null"
when generating the re-written URL. Based on a patch by Michael Osipov.
(markt)
Coyote
60372: Ensure the response headers' buffer limit is reset to
the capacity of this buffer when IOException occurs while writing the
headers to the socket. (violetagg)
Ensure that the availability of configured upgrade protocols that
require ALPN is correctly reported during Tomcat start. (markt)
60386: Implement a more sophisticated pruning algorithm for
removing closed streams from the priority tree to ensure that the tree
does not grow too large. (markt)
60409: When unable to complete sendfile request, ensure the
Processor will be added to the cache only once. (markt/violetagg)
Ensure that the endpoint is able to unlock the acceptor thread during
shutdown if the endpoint is configured to listen to any local address
of a specific type such as 0.0.0.0 or ::.
(markt)
Add a new configuration option, ipv6v6only to the APR
connectors that allows them to be configure to only accept IPv6
connections when configured with an IPv6 address rather than the
default which is to accept IPv4 connections as well if the operating
system uses a dual network stack. (markt)
Improve the logic that unlocks the acceptor thread so a better choice is
made for the address to connect to when a connector is configured for
any local port. This reduces the likelihood of the unlock failing.
(markt)
60436: Avoid a potential NPE when processing async timeouts.
(markt)
Reduce the window in which an async request that has just started
processing on a container thread remains eligible for an async timeout.
(markt)
Jasper
60431: Improve handling of varargs in UEL expressions. Based
on a patch by Ben Wolfe. (markt)
Web applications
Fix JDK version number documented in BUILDING.txt. (rjung)
Correct a typo in Host Configuration Reference.
Issue reported via comments.apache.org. (violetagg)
60412: Add information on the comment syntax for the
RewriteValve configuration. (markt)
60467: remove problematic characters from XML documentation.
Based upon a patch by Michael Osipov. (schultz)
Tribes
Reduce the warning logs for a message received from a different domain
in order to avoid excessive log outputs. (kfujino)
WebSocket
60437: Avoid possible handshake overflows in the websocket
client. (remm)
jdbc-pool
58816: Implement the statistics of jdbc-pool. The stats infos
are borrowedCount, returnedCount,
createdCount, releasedCount,
reconnectedCount, releasedIdleCount and
removeAbandonedCount. (kfujino)
60194: If validationQuery is not specified,
connection validation is done by calling the isValid()
method. (kfujino)
60398: Fix testcase of TestSlowQueryReport.
(kfujino)
Other
Allow customization of service.bat, such as heap memory size, service
startup mode and JVM args. Patch provided by isapir via Github.
(violetagg)
60366: Change catalina.bat to use directly
LOGGING_MANAGER and LOGGING_CONFIG variables
in order to configure logging, instead of modifying
JAVA_OPTS. Patch provided by Petter Isberg. (violetagg)
60383: JASPIC API is added as a dependency to the
org.apache.tomcat:tomcat-catalina maven artifact.
(violetagg)
Update the comments associated with the TLS Connector examples in
server.xml. (markt)
New property is added test.verbose in order to control
whether the output of the tests is displayed on the console or not.
Patch provided by Emmanuel Bourg. (violetagg)
TestOpenSSLCipherConfigurationParser.testSpecification
- if there are test failures, provide more detailed information. Patch
provided by Emmanuel Bourg. (violetagg)
2016-11-08 Tomcat 8.5.8 (markt)
Coyote
Check that threadPriority values used in AbstractProtocol are valid.
(fschumacher)
not released Tomcat 8.5.7 (markt)
Catalina
When creating a new Connector via JMX, ensure that both HTTP/1.1 and
AJP/1.3 connectors can be created. (markt)
Include the Context name in the log message when an item cannot be
added to the cache. (markt)
Exclude JAR files in /WEB-INF/lib from the static resource
cache. (markt)
When calling getResourceAsStream() on a directory, ensure
that null is returned. (markt)
60161: Allow creating subcategories of the container logger,
and use it for the rewrite valve. (remm)
Correctly test for control characters when reading the provided shutdown
password. (markt)
60297: Simplify connector creation in embedded mode. (remm)
Refactor creation of containers in embedded mode for more consistency
and flexibility. (remm)
Introduce new methods read(ByteBuffer)/
write(ByteBuffer) in
o.a.catalina.connector.CoyoteInputStream/
o.a.catalina.connector.CoyoteOutputStream. (violetagg)
When configuring the JMX remote listener, specify the allowed types for
the credentials. (markt)
Coyote
Correct the HPACK header table size configuration that transposed the
client and server table sizes when creating the encoder and decoder.
(markt)
Don't continue to process an HTTP/2 stream if it is reset during header
parsing. (markt)
HTTP/2 uses separate headers for each Cookie. As required by RFC 7540,
merge these into a single Cookie header before processing continues.
(markt)
Align the HTTP/2 implementation with the HTTP/1.1 implementation and
return a 500 response when an unhandled exception occurs during request
processing. (markt)
Correct the HTTP header parser so that DEL is not treated as a valid
token character. (markt)
Add checks around the handling of HTTP/2 pseudo headers. (markt)
Add support for trailer headers to the HTTP/2 implementation. (markt)
60232: When processing headers for an HTTP/2 stream, ensure
that the read buffer is large enough for the header being processed.
(markt)
Add configuration options to the HTTP/2 implementation to control the
maximum number of headers allowed, the maximum size of headers allowed,
the maximum number of trailer headers allowed, the maximum size of
trailer headers allowed and the maximum number of cookies allowed.
(markt)
Correctly differentiate between sending and receiving a reset frame when
tracking the state of an HTTP/2 stream. (markt)
60319: When using an Executor, disconnect it from the
Connector attributes maxThreads,
minSpareThreads and threadPriority to enable
the configuration settings to be consistently reported. These Connector
attributes will be reported as -1 when an Executor is in
use. The values used by the executor may be set and obtained via the
Executor. (markt)
If an I/O error occurs during async processing on a non-container
thread, ensure that the onError() event is triggered.
(markt)
Improve detection of I/O errors during async processing on non-container
threads and trigger async error handling when they are detected. (markt)
Add additional checks for valid characters to the HTTP request line
parsing so invalid request lines are rejected sooner. (markt)
Web applications
Add HTTP/2 configuration information to the documentation web
application. (markt)
Fix default value of validationInterval attribute in
jdbc-pool. (kfujino)
Correct a typo in CGI How-To.
Issue reported via comments.apache.org. (violetagg)
Tribes
When the proxy node sends a backup retrieve message, ensure that using
the channelSendOptions that has been set rather than the
default channelSendOptions. (kfujino)
Other
Add the JASPIC API jar to the Maven Central publication script. (markt)
Remove classes from tomcat-util-scan.jar that are duplicates of those in
tomcat-util.jar. (markt)
2016-10-10 Tomcat 8.5.6 (markt)
Catalina
59961: Add an option to the StandardJarScanner
to control whether or not JAR Manifests are scanned for additional
class path entries. (markt)
60013: Refactor the previous fix to align the behaviour of
the Rewrite Valve with mod_rewrite. As part of this, provide an
implementation for the B and NE flags and
improve the handling for the QSA flag. Includes multiple
test cases by Santhana Preethiand a patch by Tiago Oliveira. (markt)
60087: Refactor the web resources handling to use the Tomcat
specific war:file:... URL protocol to refer to WAR files
and their contents rather than the standard jar:file:...
form since some components of the JRE, such as JAR verification, give
unexpected results when the standard form is used. A side-effect of the
refactoring is that when using packed WARs, it is now possible to
reference a WAR and/or specific JARs within a WAR in the security policy
file used when running under a SecurityManager. (markt)
60116: Fix a problem with the rewrite valve that caused back
references evaluated in conditions to be forced to lower case when using
the NC flag. (markt)
Ensure Digester.useContextClassLoader is considered in
case the class loader is used. (violetagg)
60117: Ensure that the name of LogLevel is
localized when using OneLineFormatter. Patch provided by
Tatsuya Bessho. (kfujino)
60138: Fix the SSLHostConfig so that the
protocols attribute is limited to the protocols supported
by the current JSSE implementation rather than the default protocols
used by the implementation. (markt)
60146: Improve performance for resource retrieval by making
calls to WebResource.getInputStream() trigger caching if the resource is
small enough. Patch provided by mohitchugh. (markt)
60151: Improve the exception error messages when a
ResourceLink fails to specify the type, specifies an
unknown type or specifies the wrong type. (markt)
60167: Ignore empty lines in /etc/passwd files
when using the PasswdUserDatabase. (markt)
60170: Exclude the compressed test file
index.html.br from RAT analysis. Patch provided by Gavin
McDonald. (markt)
When starting web resources, ensure that class resources are only
started once. (markt)
Improve the access checks for linked global resources to handle the case
where the current class loader is a child of the web application class
loader. (markt)
60196: Ensure that the isMandatory flag is
correctly set when using JASPIC authentication. (markt)
60199: Log a warning if deserialization issues prevent a
session attribute from being loaded. (markt)
60208: When using RFC6265 compliant cookies, the
/ character should not be allowed in a cookie name since
the RFC6265 will drop such cookies as invalid. (markt)
Coyote
Refactor the code that implements the requirement that a call to
complete() or dispatch() made from a
non-container thread before the container initiated thread that called
startAsync() completes must be delayed until the container
initiated thread has completed. Rather than implementing this by
blocking the non-container thread, extend the internal state machine to
track this. This removes the possibility that blocking the non-container
thread could trigger a deadlock. (markt)
Fail earlier if the client closes the connection during SNI processing.
(markt)
60123: Avoid potential threading issues that could cause
excessively large vales to be returned for the processing time of
a current request. (markt)
60174: Log instances of HeadersTooLargeException
during request processing. (markt)
60173: Allow up to 64kB HTTP/2 header table size limit. (remm)
Java 9 compatibility of direct ByteBuffer cleaner. (remm)
Jasper
60101: Remove preloading of the class that was deleted.
(violetagg)
Web applications
Expand the documentation for the nested elements within a
Resources element to clarify the behaviour of different
configuration options with respect to the order in which resources are
searched. (markt)
Add an example of using the classesToInitialize attribute
of the JreMemoryLeakPreventionListener to the documentation
web application. Based on a patch by Cris Berneburg. (markt)
60192: Correct a typo in the status output of the Manager
application. Patch provided by Radhakrishna Pemmasani. (markt)
jdbc-pool
Notify jmx when returning the connection that has been marked suspect.
(kfujino)
Ensure that the POOL_EMPTY notification has been added to
the jmx notification types. (kfujino)
60099: Ensure that use all method arguments as a cache key
when using StatementCache. (kfujino)
60139: Correct Javadocs for
PoolConfiguration.getValidationInterval and
setValidationInterval. Reported by Phillip Webb. (kfujino)
Other
Update the download location for Objenesis. (violetagg)
60164: Replace log4j-core*.jar with
log4j-web*.jar since it is log4j-web*.jar that
contains the ServletContainerInitializer. (markt)
Add documentation to the bin/catalina.bat script to remind users that
environment variables don't affect the configuration of Tomcat when
run as a Windows Service. Based upon a documentation patch by
James H.H. Lampert. (schultz)
Update the packaged version of the Tomcat Native Library to 1.2.10 to
pick up the latest Windows binaries built with OpenSSL 1.0.2j. (markt)
2016-09-05 Tomcat 8.5.5 (markt)
Catalina
18500: Add limited support for wildcard host names and host
aliases. Names of the form *.domainname are now permitted.
Note that an exact host name match takes precedence over a wild card
host name match. (markt)
59813: Ensure that circular relations of the Class-Path
attribute from JAR manifests will be processed correctly. (violetagg)
Ensure that reading the singleThreadModel attribute of a
StandardWrapper via JMX does not trigger initialisation of
the associated servlet. With some frameworks this can trigger an
unexpected initialisation thread and if initialisation is not thread-safe
the initialisation can then fail. (markt)
Compatibility with rewrite from httpd for non existing headers.
(jfclere)
By default, treat paths used to obtain a request dispatcher as encoded.
This behaviour can be changed per web application via the
dispatchersUseEncodedPaths attribute of the Context.
(markt)
59839: Apply roleSearchAsUser to all nested searches
in JNDIRealm. (fschumacher)
59859: Fix resource leak in WebDAV servlet. Based on patch by
Coty Sutherland. (fschumacher)
Provide a mechanism that enables the container to check if a component
(typically a web application) has been granted a given permission when
running under a SecurityManager without the current execution stack
having to have passed through the component. Use this new mechanism to
extend SecurityManager protection to the system property replacement
feature of the digester. (markt)
When retrieving an object via a ResourceLink, ensure that
the object obtained is of the expected type. (markt)
59823: Ensure that JASPIC configuration is taken into account
when calling HttpServletRequest.authenticate(). (markt)
59824: Mark the RewriteValve as supporting async
processing by default. (markt)
59862: Allow nested jar files scanning to be filtered with
the system property
tomcat.util.scan.StandardJarScanFilter.jarsToSkip. Patch
is provided by Terence Bandoian. (violetagg)
59866: When scanning WEB-INF/classes for
annotations, don't scan the contents of
WEB-INF/classes/META-INF (if present) since classes will
never be loaded from that location. (markt)
59888: Correctly handle tabs and spaces in quoted version one
cookies when using the Rfc6265CookieProcessor. (markt)
59912: Fix an edge case in input stream handling where an
IOException could be thrown when reading a POST body.
(markt)
59913: Correct a regression introduced with the support for
the Servlet 4 HttpServletRequest.getMapping() API that
caused the attributes for forwarded requests to be lost if requested
from within a subsequent include. (markt)
59966: Do not start the web application if the error page
configuration in web.xml is invalid. (markt)
Switch the CGI servlet to the standard logging mechanism and remove
support for the debug attribute. (markt)
60012: Improvements in the log messages. Based on
suggestions by Nemo Chen. (violetagg)
Changes to the allowLinking attribute of a
StandardRoot instance now invalidate the cache if caching
is enabled. (markt)
Add a new initialisation parameter, envHttpHeaders, to
the CGI Servlet to mitigate httpoxy
(CVE-2016-5388) by default and to provide a mechanism that can be
used to mitigate any future, similar issues. (markt)
When adding and removing ResourceLinks dynamically, ensure
that the global resource is only visible via the
ResourceLinkFactory when it is meant to be. (markt)
60008: When processing CORs requests, treat any origin with a
URI scheme of file as a valid origin. (markt)
Improve handling of exceptions during a Lifecycle events triggered by a
state transition. The exception is now caught and the component is now
placed into the FAILED state. (markt)
60013: Fix encoding issues when using the RewriteValve with
UTF-8 query strings or UTF-8 redirect URLs. (markt)
60022: Improve handling when a WAR file and/or the associated
exploded directory are symlinked into the appBase. (markt)
Fix a file descriptor leak when reading the global web.xml. (markt)
Consistently decode URL patterns provided via web.xml using the encoding
of the web.xml file where specified or UTF-8 where no explicit encoding
is specified. (markt)
Make timing attacks against the Realm implementations harder. (schultz)
A number of the JRE memory leaks addressed by the
JreMemoryLeakPreventionListener have been fixed in Java 9
so the associated protection is now disabled when running on Java 9
onwards. (markt)
Coyote
Correct a regression in refactoring to enable injection of custom
keystores that broke the automatic conversion of OpenSSL style PEM
key and certificate files for use with JSSE TLS connectors. (markt)
59910: Don't hardcode key alias value to "tomcat" for JSSE.
When using a keystore, OpenSSL will still default to it. (remm)
59904: Add a limit (default 200) for the number of cookies
allowed per request. Based on a patch by gehui. (markt)
59925: Correct regression in r1628368 and ensure that HTTP
separators are handled as configured in the
LegacyCookieProcessor. Patch provided by Kyohei Nakamura.
(markt)
59950: Correct log message when reporting that the current
number of HTTP/2 streams for a connection could not be pruned to below
the limit. (markt)
Ensure that Semaphore.release is called in all cases. Even
when there is an exception. (violetagg)
60030: Correct a potential infinite loop in the SNI parsing
code triggered by failing to handle an end of stream condition. (markt)
Small logging optimization in the Rfc6265CookieProcessor.
Patch provided by Svetlin Zarev. (markt)
OpenSSL now disables 3DES by default so reflect this when using OpenSSL
syntax to select ciphers. (markt)
Use the proper ERROR socket status code for async errors with NIO2.
(remm)
60035: Fix a potential connection leak if the client drops a
TLS connection before the handshake completes. (markt)
Refactor the JSSE client certificate validation so that the
effectiveness of the certificateVerificationDepth
configuration attribute does not depend on the presence of a certificate
revocation list. (markt)
Log a warning at start up if a JSSE TLS connector is configured with
a trusted certificate that is either not yet valid or has expired.
(markt)
Jasper
When writing out a full web.xml file with JspC ensure that the encoding
used in the XML prolog matches the encoding used to write the contents
of the file. (markt)
Improve the error handling for custom tags to ensure that the tag is
returned to the pool or released and destroyed once used. (markt)
60032: Fix handling of method calls that use varargs within
EL value expressions. (markt)
Ignore engineOptionsClass and scratchdir when
running under a security manager. (markt)
Fixed StringIndexOutOfBoundsException. Based on a patch provided by
wuwen via Github. (violetagg)
WebSocket
59908: Ensure that a reason phrase is included in the close
message if a session is closed due to a timeout. (markt)
Web applications
59867: Correct the documentation provided by Manager's
403.jsp. (violetagg)
59868: Clarify the documentation for the Manager web
application to make clearer that the host name and IP address in the
server section are the primary host name and IP address. (markt)
59940: Correct the name of the
truststorePassword attribute of the
SSLHostConfig element in the configuration documentation.
(markt)
MBeans Descriptors How-To is moved to
mbeans-descriptors-howto.html. Patch provided by Radoslav
Husar. (violetagg)
Update NIO Connector configuration documentation with an information
about socket.directSslBuffer. (violetagg)
60034: Correct a typo in the Manager How-To page of the
documentation web application. (markt)
jdbc-pool
In order to avoid the unintended skip of PoolCleaner,
remove the check code of the execution interval in the task that has
been scheduled. (kfujino)
59850: Ensure that the ResultSet is closed when
enabling the StatementCache interceptor. (kfujino)
59923: Reduce the default value of
validationInterval in order to avoid the potential issue
that continues to return an invalid connection after database restart.
(kfujino)
Ensure that the ResultSet is returned as Proxy object when
enabling the StatementDecoratorInterceptor. (kfujino)
60043: Ensure that the suspectTimeout works
without removing connection when the removeAbandoned is
disabled. (kfujino)
Add log message of when returning the connection that has been marked
suspect. (kfujino)
Correct Javadoc for ConnectionPool.suspect(). Based on a
patch by Yahya Cahyadi. (markt)
Other
59871: Add a property (timeFormat) to
JULI's OneLineFormatter to enable the format of the
time stamp used in log messages to be configured. (markt)
59899: Update Tomcat's copy of the Java Persistence
annotations to include the changes made in 2.1 / JavaEE 7. (markt)
Fixed typos in mbeans-descriptors.xml files. (violetagg)
Update the internal fork of Commons BCEL to r1757132 to align with the
BCEL 6 release. (markt)
Update the internal fork of Commons DBCP 2 to r1757164 to pick up a
couple of bug fixes. (markt)
Update the internal fork of Commons Codec to r1757174. Code formatting
changes only. (markt)
Update the internal fork of Commons FileUpload to afdedc9. This pulls in
a fix to improve the performance with large multipart boundaries.
(markt)
2016-07-12 Tomcat 8.5.4 (markt)
Catalina
57705: Add debug logging for requests denied by the remote
host and remote address valves and filters. Based on a patch by Graham
Leggett. (markt)
Correct a regression in the fix for 58588 that removed the
entire org.apache.juli package from the embedded JARs
rendering them unusable. (markt)
59399: Add a new option to the Realm implementations that
ship with Tomcat that allows the HTTP status code used for HTTP -> HTTPS
redirects to be controlled per Realm. (markt)
Change the default of the
sessionCookiePathUsesTrailingSlash attribute of the
Context element to false since the problems
caused when a Servlet is mapped to /* are more significant
than the security risk of not enabling this option by default. (markt)
Follow-up to 59655. Improve the documentation for configuring
permitted cookie names. Patch provided by Kyohei Nakamura. (markt)
Do not attempt to start web resources during a web application's
initialisation phase since the web application is not fully configured
at that point and the web resources may not be correctly configured.
(markt)
59708: Modify the LockOutRealm logic. Valid authentication
attempts during the lock out period will no longer reset the lock out
timer to zero. (markt)
Improve error handling around user code prior to calling
InstanceManager.destroy() to ensure that the method is
executed. (markt)
Coyote
Refactor the certificate keystore and trust store generation to make it
easier for embedded users to inject their own key stores. (markt)
59233: Add the ability to add TLS virtual hosts dynamically.
(markt)
Add a maxConcurrentStreamExecution on the HTTP/2
protocol handler to allow restricting the amount of concurrent stream
that are being executed in a single connection. The default is to
not limit it. (remm)
Correct a problem with ServletRequest.getServerPort() for
secure HTTP/2 connections that meant an incorrect value was returned when
using the default port. (markt)
Improve error handling around user code prior to calling
InstanceManager.destroy() to ensure that the method is
executed. (markt)
Jasper
Improve error handling around user code prior to calling
InstanceManager.destroy() to ensure that the method is
executed. (markt)
WebSocket
Now the WebSocket implementation is not built directly on top of the
Servlet API and can use Tomcat internals, there is no need for the
dedicated WebSocket Executor. It has been replaced by the use of the
Connector/Endpoint provided Executor. (markt)
Improve error handling around user code prior to calling
InstanceManager.destroy() to ensure that the method is
executed. (markt)
Web Applications
Do not log an additional case of IOExceptions in the
error handler for the Drawboard WebSocket example when the root cause is
the client disconnecting since the logs add no value. (markt)
59642: Mention the localDataSource in the
DataSourceRealm section of the Realm How-To. (markt)
59672: Update the security considerations page of the
documentation web application to take account of the fact that the
Manager and HostManager applications now have a
RemoteAddrValve configured by default. (markt)
Follow-up to the fix for 59399. Ensure that the new attribute
transportGuaranteeRedirectStatus is documented for all
Realms. Also document the NullRealm and
when it is automatically created for an Engine. (markt)
Fix the description of maxAge attribute in jdbc-pool doc.
This attribute works both when a connection is returned and when a
connection is borrowed. (kfujino)
59774: Correct the prefix values in the
documented examples for configuring the AccessLogValve.
Patch provided by Mike Noordermeer. (markt)
Extras
58588: Remove the JULI extras package from the distribution.
It was only useful for switching Tomcat's internal logging to log4j
1.2.x and that version of log4j is no longer supported. No additional
Tomcat code is required if switching Tomcat's internal logging to log
via log4j 2.x. (markt)
Tribes
Add log message when the ping has timed-out. (kfujino)
If the ping message has been received at the
AbstractReplicatedMap#leftOver method, ensure that notify
the member is alive than ignore it. (kfujino)
jdbc-pool
Fix the duplicated connection release when connection verification
failed. (kfujino)
Ensure that do not remove the abandoned connection that has been already
released. (kfujino)
Other
59276: Update optional Checkstyle library to 6.17. (kkolinko)
Use the mirror network rather than the ASF master site to download the
current ASF dependencies. (markt)
Update the packaged version of the Tomcat Native Library to 1.2.8 to
pick up the latest fixes and make 1.2.8 the minimum recommended version.
(markt)
Use UTF-8 with a standard prolog for all XML files. (markt)