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 explictly 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 the documentation for how StandardRoot is
configured. (markt)
Other
61316: Fix corruption of UTF-16 encoded source files in
released source distributions. (markt)
not released Tomcat 8.5.18 (markt)
Catalina
61232: When log rotation is disabled only one separator will
be used when generating the log file name. For example if the prefix is
catalina. and the suffix is .log then the log
file name will be catalina.log instead of
catalina..log. Patch provided by Katya Stoycheva.
(violetagg)
61264: Correct a regression in the refactoring to use
Charset rather than String to store request
character encoding that prevented getReader() throwing an
UnsupportedEncodingException if the user agent specifies
an unsupported character encoding. (markt)
Correct a regression in the fix for 49464 that could cause an
incorrect Content-Length header to be sent by the
DefaultServlet if the encoding of a static is not
consistent with the encoding of the response. (markt)
Coyote
Enable TLS connectors to use Java key stores that contain multiple keys
where each key has a separate password. Based on a patch by Frank
Taffelt. (markt)
Improve the handling of HTTP/2 stream resets due to excessive headers
when a continuation frame is used. (markt)
Jasper
53031: Add support for the fork option when
compiling JSPs with the Jasper Ant task and javac. (markt)
Other
52791: Add the ability to set the defaults used by the
Windows installer from a configuration file. Patch provided by Sandra
Madden. (markt)
not released Tomcat 8.5.17 (markt)
Catalina
49464: Improve the Default Servlet's handling of static files
when the file encoding is not compatible with the required response
encoding. (markt)
61214: Remove deleted attribute servlets from
the Context MBean description. Patch provided by Alexis Hassler. (markt)
61215: Correctly define addConnectorPort and
invalidAuthenticationWhenDeny in the
mbean-descriptors.xml file for the
org.apache.catalina.valves package so that the attributes
are accessible via JMX. (markt)
Make asynchronous error handling more robust. In particular ensure that
onError() is called for any registered
AsyncListeners after an I/O error on a non-container
thread. (markt)
Additional permission for deleting files is granted to JULI as it is
required by FileHandler when running under a Security Manager. The
thread that cleans the log files is marked as daemon thread.
(violetagg)
61229: Correct a regression in 8.5.15 that broke WebDAV
handling for resources with names that included a &
character. (markt)
Coyote
Restore the ability to configure support for SSLv3. Enabling this
protocol will trigger a warning in the logs since it is known to be
insecure. (markt)
Do not log a warning when a null session is returned for an
OpenSSL based TLS session since this is expected when session tickets
are enabled. (markt)
When the access log valve logs a TLS related request attribute and the
NIO2 connector is used with OpenSSL, ensure that the TLS attributes are
available to the access log valve when the connection is closing.
(markt)
60461: Sync SSL session access for the APR connector. (remm)
To ease migration from 8.0.x to 8.5.x, if the HTTP or AJP BIO connector
is explicitly configured, rather than failing to start the connector
because BIO has been removed, automatically switch to NIO and continue.
A warning will be logged to alert the user to the switch. (markt)
Web applications
Remove references to the Loader attribute
searchExternalFirst from the documentation since the
attribute is no longer supported. (markt)
2017-06-26 Tomcat 8.5.16 (markt)
Catalina
61072: Respect the documentation statements that allow
using the platform default secure random for session id generation.
(remm)
Correct the javadoc for
o.a.c.connector.CoyoteAdapter#parseSessionCookiesId.
Patch provided by John Andrew (XUZHOUWANG) via Github. (violetagg)
61101: CORS filter should set Vary header in response.
Submitted by Rick Riemer. (remm)
61105: Add a new JULI FileHandler configuration for
specifying the maximum number of days to keep the log files.
(violetagg)
61125: Ensure that WarURLConnection returns the
correct value for calls to getLastModified() as this is
required for the correct detection of JSP modifications when the JSP is
packaged in a WAR file. (markt)
Improve the SSLValve so it is able to handle client
certificate headers from Nginx. Based on a patch by Lucas Ventura Carro.
(markt)
61134: Do not use '[' and ']' symbols around substituted
text fragments when generating the default error pages. Patch provided
by Katya Todorova. (violetagg)
61154: Allow the Manager and Host Manager web applications to
start by default when running under a security manager. This was
accomplished by adding a custom permission,
org.apache.catalina.security.DeployXmlPermission, that
permits an application to use a META-INF/context.xml file
and then granting that permission to the Manager and Host Manager.
(markt)
61173: Polish the javadoc for
o.a.catalina.startup.Tomcat. Patch provided by
peterhansson_se. (violetagg)
A new configuration property crawlerIps is added to the
o.a.catalina.valves.CrawlerSessionManagerValve. Using this
property one can specify a regular expression that will be used to
identify crawlers based on their IP address. Based on a patch provided
by Tetradeus. (violetagg)
61180: Log a warning message rather than an information
message if it takes more than 100ms to initialised a
SecureRandom instance for a web application to use to
generate session identifiers. Patch provided by Piotr Chlebda. (markt)
61185: When an asynchronous request is dispatched via
AsyncContext.dispatch() ensure that
getRequestURI() for the dispatched request matches that of
the original request. (markt)
61197: Ensure that the charset name used in the
Content-Type header has exactly the same form as that
provided by the application. This reverts a behavioural change in
8.5.15 that caused problems for some clients. (markt)
61201: Ensure that the SCRIPT_NAME environment
variable for CGI executables is populated in a consistent way regardless
of how the CGI servlet is mapped to a request. (markt)
Coyote
61086: Explicitly signal an empty request body for HTTP 205
responses. (markt)
61120: Do not ignore path parameters when processing HTTP/2
requests. (markt)
Revert a change introduced in the fix for bug 60718 that
changed the status code recorded in the access log when the client
dropped the connection from 200 to 500. (markt)
Add additional syncs to the SSL session object provided by the OpenSSL
engine so that a concurrent destruction cannot cause a JVM crash.
(remm)
61195: Backport, with deprecation where appropriate, the
endpoint and protocol property changes from 9.0.x to ease migration from
8.5.x to 9.0.x. (markt)
Jasper
44787: Improve error message when JSP compiler configuration
options are not valid. (markt)
61137: j.s.jsp.tagext.TagLibraryInfo#uri and
j.s.jsp.tagext.TagLibraryInfo#prefix fields should not be
final. Patch provided by Katya Todorova. (violetagg)
WebSocket
Correct the log message when a MessageHandler for
PongMessage does not implement
MessageHandler.Whole. (rjung)
Introduce new API o.a.tomcat.websocket.WsSession#suspend/
o.a.tomcat.websocket.WsSession#resume that can be used to
suspend/resume reading of the incoming messages. (violetagg)
Improve thread-safety of Futures used to report the result
of sending WebSocket messages. (markt)
61183: Correct a regression in the previous fix for
58624 that could trigger a deadlock depending on the locking
strategy employed by the client code. (markt)
Web applications
Better document the meaning of the trimSpaces option for Jasper. (markt)
61150: Configure the Manager and Host-Manager web
applications to permit serialization and deserialization of
CRSFPreventionFilter related session objects to avoid warning messages
and/or stack traces on web application stop and/or start when running
under a security manager. (markt)
Correct the TLS configuration documentation to remove SSLv2 and SSLv3
from the list of supported protocols. (markt)
Tribes
Add JMX support for Tribes components. (kfujino)
Other
45832: Add HTTP DIGEST authentication support to the Catalina
Ant tasks used to communicate with the Manager application. (markt)
45879: Add the RELEASE-NOTES file to the root of
the installation created by the Tomcat installer for Windows to make it
easier for users to identify the installed Tomcat version. (markt)
61055: Clarify the code comments in the rewrite valve to make
clear that there are no plans to provide proxy support for this valve
since Tomcat does not have proxy capabilities. (markt)
61076: Document the altDDName attribute for the
Context element. (markt)
Correct typo in Jar Scan Filter Configuration Reference.
Issue reported via comments.apache.org. (violetagg)
61145: Add missing @Documented annotation to
annotations in the annotations API. Patch provided by Katya Todorova.
(markt)
61146: Add missing lookup() method to
@EJB annotation in the annotations API. Patch provided by
Katya Todorova. (markt)
Correct typo in Context Container Configuration Reference.
Patch provided by Katya Todorova. (violetagg)
2017-05-10 Tomcat 8.5.15 (markt)
General
Allow to exclude JUnit test classes using the build property
test.exclude and document the property in
BUILDING.txt. (rjung)
Catalina
Review those places where Tomcat re-encodes a URI or URI component and
ensure that that correct encoding (path differs from query string) is
applied and that the encoding is applied consistently. (markt)
Avoid a NullPointerException when reading attributes for a
initialised HTTP connector where TLS is enabled. (markt)
Always quote the hostName of an SSLHostConfig
element when using it as part of the JMX object name to avoid errors that
prevent the associated TLS connector from starting if a wild card
hostName is configured (because * is a
reserved character for JMX object names). (markt)
Switch to using Charset rather than String to
store encoding settings (including for configuration and for the
Content-Type header) to reduce the number of places the
associated Charset needs to be looked up. (markt)
Use a more reliable mechanism for the DefaultServlet when
determining if the current request is for custom error page or not.
(markt)
Ensure that when the Default or WebDAV servlets process an error
dispatch that the error resource is processed via the
doGet() method irrespective of the method used for the
original request that triggered the error. (markt)
If a static custom error page is specified that does not exist or cannot
be read, ensure that the intended error status is returned rather than a
404 or 403. (markt)
When the WebDAV servlet is configured and an error dispatch is made to a
custom error page located below WEB-INF, ensure that the
target error page is displayed rather than a 404 response. (markt)
61047: Add MIME mapping for woff2 fonts in the default
web.xml. Patch provided by Justin Williamson. (violetagg)
Correct the logic that selects the encoding to use to decode the query
string in the SSIServletExternalResolver so that the
useBodyEncodingForURI attribute of the
Connector is correctly taken into account. (markt)
Within the Expires filter, make the content type value specified with the
ExpiresByType parameter, case insensitive. (markt)
Coyote
When a TrustManager is configured that does not support
certificateVerificationDepth only log a warning about that
lack of support when certificateVerificationDepth has been
explicitly set. (markt)
60970: Extend the fix for large headers to push requests.
(markt)
Do not include a Date header in HTTP/2 responses with
status codes less than 200. (markt)
Jasper
When no BOM is present and an encoding is detected, do not skip the
bytes used to detect the encoding since they are not part of a BOM.
(markt)
61057: Update to Eclipse JDT Compiler 4.6.3. (violetagg)
61065: Ensure that once the class is resolved by
javax.el.ImportHandler#resolveClass it will be cached with
the proper name. (violetagg)
WebSocket
61003: Ensure the flags for reading/writing in
o.a.t.websocket.AsyncChannelWrapperSecure are correctly
reset even if some exceptions occurred during processing. (markt/violetagg)
Web Applications
Add documents for maxIdleTime attribute to Channel Receiver
docs. (kfujino)
Other
Modify the Ant build script used to publish to a Maven repository so
that it no longer requires artifacts to be GPG signed. This is make it
possible for the CI system to upload snapshot builds to the ASF Maven
repository. (markt)
Review i18n property files, remove unnecessary escaping and consistently
use [...] to delimit inserted values. (markt)
2017-04-18 Tomcat 8.5.14 (markt)
Catalina
59825: Log a message that lists the components in the
processing chain that do not support async processing when a call to
ServletRequest.startAsync() fails. (markt)
60926: Ensure
o.a.c.core.ApplicationContextFacade#setSessionTimeout will
invoke the correct method when running Tomcat with security manager.
(markt)
Update the early access Servlet 4.0 API implementation to reflect the
change in method name from getPushBuilder() to
newPushBuilder(). (markt)
Correct a regression in the X to comma refactoring that broke JMX
operations that take parameters. (markt)
Avoid a NullPointerException when reading attributes for a
running HTTP connector where TLS is not enabled. (markt)
60940: Improve the handling of the META-INF/ and
META-INF/MANIFEST.MF entries for Jar files located in
/WEB-INF/lib when running a web application from a packed
WAR file. (markt)
Pre-load the ExceptionUtils class. Since the class is used
extensively in error handling, it is prudent to pre-load it to avoid any
failure to load this class masking the true problem during error
handling. (markt)
Avoid potential NullPointerExceptions related to access
logging during shutdown, some of which have been observed when running
the unit tests. (markt)
When there is no javax.servlet.WriteListener registered
then a call to javax.servlet.ServletOutputStream#isReady
will return false instead of throwing
IllegalStateException. (violetagg)
When there is no javax.servlet.ReadListener registered
then a call to javax.servlet.ServletInputStream#isReady
will return false instead of throwing
IllegalStateException. (violetagg)
Coyote
Align cipher configuration parsing with current OpenSSL master. (markt)
60970: Fix infinite loop if application tries to write a
large header to the response when using HTTP/2. (markt)
Jasper
60925: Improve the handling of access to properties defined
by interfaces when a BeanELResolver is 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)