58655: Fix an IllegalStateException when
calling HttpServletResponse.sendRedirect() with the
RemoteIpFilter. This was caused by trying to correctly
generate the absolute URI for the redirect. With the fix for
56917, redirects may now be relative making the
sendRedirect() implementation for the
RemoteIpFilter much simpler. This also addresses issues
where the redirect may not have behaved as expected when redirecting
from http to https to from https to http. (markt)

58657: Exceptions in a Servlet 3.1 ReadListener
or WriteListener do not need to be immediately fatal to the
connection. Allow an error response to be written. (markt)

Coyote

Jasper

57136#c25: Change default value of
quoteAttributeEL setting in Jasper to be true
for better compatibility with other implementations and older versions
of Tomcat (8.0.26/7.0.64 and earlier). Add command line option
-no-quoteAttributeEL in JspC. (kkolinko)

Cluster

WebSocket

55006: The WebSocket client now honors the
java.net.java.net.ProxySelector configuration (using the
HTTP type) when establishing WebSocket connections to servers. Based on
a patch by Niki Dokovski. (markt)

58624: Correct a thread safety issue that meant that blocking
message writes could block indefinitely if the WebSocket connection was
closed while a message write was in progress. (markt)

Web Applications

58631: Correct the continuation character use in the Windows
Service How-To page of the documentation web application. (markt)

Tribes

Ensure that the static member is registered to the add suspect list even
if the static member that is registered to the remove suspect list has
disappeared. (kfujino)

Correct the warning log of when the member that is not registered in the
membership is detected. (kfujino)

When using a static cluster, add the members that have been cached in
the membership service to the map members list in order to ensure that
the map member is a static member. (kfujino)

jdbc-pool

Correct evaluation of system property
org.apache.tomcat.jdbc.pool.onlyAttemptCurrentClassLoader.
It was basically ignored before. Reported by coverity scan.
(fschumacher)

Other

Update optional Checkstyle library to 6.13. (kkolinko)

2015-11-24 Tomcat 8.0.29 (markt)

General

58596: Clarify the description in RUNNING.txt of how
environment variables are used. (markt)

Catalina

Extend the fix for 57136 to provide a JSP Servlet
initialisation parameter per web application that controls whether or
not EL in JSP attributes is processed as if it uses JSP attribute
quoting. By default, EL does not use JSP attribute quoting. (markt)

57799: InputStream.available() was causing an IO operation
to occur even in blocking mode, which caused problems with NIO2.
(remm)

Extend the fix for 58228 to include
ServletContext.getRealPath(). (markt)

58486: Protect against two further possible memory leaks
associated with XML parsing. (markt)

58490: Fixed NPE thrown when scanning for
javax.servlet.ServletContainerInitializer in case the web
application is not extracted. (violetagg)

58508: Escape role names when generating associated MBeans in
case the role name contains characters not permitted in an MBean name.
(markt)

58518: Correct a regression in the fix for 56777
that added support for URIs in config file locations. File paths on
Windows could previously be specified with \ or
/ as the separator. 56777 broke that. (markt)

58519: Fix ISE thrown by web application classloader in some
error conditions due to trying to call initCause() on a
ClassNotFoundException which is not permitted. (markt)

58541, 58544: It is more efficient to call
Integer.toString(int) instead of
Integer.valueOf(int).toString() when only a string
representation of a primitive is needed. Based on a patch provided by
Anthony Whitford. (violetagg)

58541, 58547: It is more efficient to call
valueOf(...) instead of Number constructor. Based on a
patch provided by Anthony Whitford. (violetagg)

58545: In some use cases it is more efficient to use
Map.entrySet() instead of Map.keySet()
Based on a patch provided by Anthony Whitford. (violetagg)

Ensure that ServletRequest.getContentLengthLong is used
instead of ServletRequest.getContentLength for servlets and
valves provided by Tomcat. The API is available since Servlet
specification 3.1. (violetagg)

Add a new RestCsrfPreventionFilter that provides basic CSRF protection
for REST APIs. (violetagg)

58578: Avoid NPE accessing cookies during access logging
for request that had no context mapping. (remm)

58581: If a custom error page fails, fall back to the
standard error page rather than throwing an NPE. Based on a patch by
Huxing Zhang. (markt)

58582: Combined realm should perform background processing
on its sub-realms. Based upon a patch provided by Aidan. (schultz)

Handle the unlikely case where different versions of a web application
are deployed with different session settings. (markt)

Add a new Context option, enabled by default, that enables an additional
check that a client provided session ID is in use in at least one other
web application before allowing it to be used as the ID for a new
session in the current web application. (markt)

Add support for DIGEST authentication to the JNDIRealm. Based on a patch
by Alexis Hassler. (markt)

58603: Ensure that
HttpServletRequest.getRequestURL() returns the correct
value when using the RemoteIpFilter. (markt)

Ensure that in an embedded Tomcat the logging configuration is
not lost during garbage collection. (violetagg)

Move the functionality that provides redirects for context roots and
directories where a trailing / is added from the Mapper to
the DefaultServlet. This enables such requests to be
processed by any configured Valves and Filters before the redirect is
made. This behaviour is configurable via the
mapperContextRootRedirectEnabled and
mapperDirectoryRedirectEnabled attributes of the Context
which may be used to restore the previous behaviour. (markt)

Coyote

Cancel pending blocking IO operation following a timeout in the NIO2
connector. (remm)

Add instance manager support for upgrade handlers, and set context
class loader. (remm)

Synchronize OpenSSL to JSSE cipher mapping to recent OpenSSL changes. In
particular, TLSv1.0 is now an alias for those ciphers that
require TLSv1 and will not work with SSLv3. TLSv1 remains
an alias for SSLv3. (markt)

Jasper

Deprecate the STRICT_QUOTE_ESCAPING system property and
replace it with an initialisation parameter for the JSP Servlet. This
enables per web application control of this configuration setting.
(markt)

Jasper

Web applications

58474: Provide a reference to the differences between
CATALINA_HOME and CATALINA_BASE in the sample
application that is part of the documentation web application. (markt)

Extras

Ensure JULI adapters does not include the LogFactoryImpl class. Patch
provided by Benjamin Gandon. (markt)

2015-10-01 Tomcat 8.0.27 (markt)

Catalina

58187: Correct a regression in the fix for 57765
that meant that deployment of web applications deployed via the Manager
application was delayed until the next execution of the automatic
deployment background process. (markt)

58845: Fix off-by one error in calculation of valid
characters in a cookie domain. Patch provided by Thorsten Ehlers.
(markt)

Coyote

Correct some edge cases in RequestUtil.normalize(). (markt)

58275: The IBM JREs accept cipher suite names starting with
TLS_ or SSL_ but when listing the supported
cipher suites only the SSL_ version is reported. This can
break Tomcat's check that at least one requested cipher suite is
supported. Tomcat now includes a work-around so either form of the
cipher suite name can be used when running on an IBM JRE. (markt)

58357: For reasons not currently understood when the
APR/native connector is used with OpenSSL reads can return an error code
when there is no apparent error. This was work-around for HTTP upgrade
connections by treating this as EAGAIN. The same fix has
now been applied to the standard HTTP connector. (markt)

Jasper

57136: Correct a regression in the previous fix for this
issue. \${ should only be an escape for ${
within an EL expression. Within a JSP page \$ should be an
escape for $. The EL specification applies when parsing the
expression delimited by ${ and }. Parsing of
the delimiting ${ and } is the responsibility
of the JSP specification. (markt)

58296: Fix a memory leak in the JSP unloading feature that
meant that using a value other than -1 for
maxLoadedJsps triggered a memory leak once the limit was
reached. (markt)

58327: Cache the expression string for value expression
literals since it is frequently used and may be expensive to evaluate.
Patch provided by Andreas Kohn. (markt)

2015-08-21 Tomcat 8.0.26 (markt)

Web applications

not released Tomcat 8.0.25 (markt)

Catalina

Make the WAR manifest file available for WebResource instances from an
unpacked WAR in the same way the manifest is available if the WAR is not
unpacked. (markt)

Ensure that only /WEB-INF/classes/ and
/WEB-INF/lib/ are excluded from the web resource caching.
(Resources loaded from these locations are cached by the web application
class loader.) (markt)

57741: Enable the CGI servlet to use the standard error page
mechanism. Note that if the CGI servlet's debug init parameter is
set to 10 or higher then the standard error page mechanism will be
bypassed and a debug response generated by the CGI servlet will be
returned instead. (markt)

58031: Make the (first) reason parameter parsing failed
available as a request attribute and then use it to provide a better
status code via the FailedRequstFilter (if configured). (markt)

58086: Correct a regression in the fix for 58086 that
incorrectly handled WAR URLs. (violetagg)

58096: Classes loaded from /WEB-INF/classes/
should use that directory as their code base. (markt)

58116: Fix regression in the fix for 57281 that
broke Comet support when running under a security manager. Based on a
patch provided by Johno Crawford. (markt)

58125: Avoid a possible ClassCircularityError
when running under a security manager. (markt)

58179: Fix a thread safety issues that could mean concurrent
threads setting the same attribute on a ServletContext
could both see null as the old value. (markt)

Allow web archives bigger than 2G to be deployed using ANT tasks.
(violetagg)

58192: Correct a regression in the previous fix for
58023. Ensure that classes are associated with their manifest
even if the class file is first read (and cached) without the manifest.
(markt)

Fix thread safety issue in the AsyncContext implementation
that meant a sequence of start();dispatch(); calls using
non-container threads could result in a previous dispatch interfering
with a subsequent start. (markt)

58228: Make behaviour of
ServletContext.getResource() and
ServletContext.getResourceAsStream() consistent with each
other and the expected behaviour of the GET_RESOURCE_REQUIRE_SLASH
system property. (markt)

58230: Fix input stream corruption if non-blocking I/O is
used and the first read is made immediately after the switch to async
mode rather than in response to onDataAvaiable() and that
read does not read all the available data. (markt)

Ensure that log4javascript*.jar was not excluded from the
standard JAR scanning by default. (markt)

Coyote

57943: Prevent the same socket being added to the cache
twice. Patch based on analysis by Ian Luo / Sun Qi. (markt)

58103: When pipelining requests, and the previous request was
an async request, ensure that the socket is removed from the waiting
requests so that the async timeout thread doesn't process it during the
next request. (markt)

In the AJP and HTTP NIO connectors, ensure that the socket timeout is
correctly set before adding the socket back to the poller for read.
(markt)

58157: Ensure that the handling of async timeouts does not
result in an unnecessary dispatch to a container thread that could
result in the current socket being added to the Poller multiple times
with multiple attempts to process the same event for the same socket.
(markt)

Correct a couple of edge cases in RequestUtil.normalize().
(markt)

Jasper

58110: Like scriptlet sections, declaration sections of JSP
pages have a one-to-one mapping of lines to the generated .java file.
Use this information to provide more accurate error messages if a
compilation error occurs in a declaration section. (markt)

58119: When tags are compiled they must be placed in the
org/apache/jsp/tag/web directory. Correct a regression in the fix for
52725. (violetagg)

Fix a resource leak in JspC identified by Eclipse. (markt)

58178: Expressions in a tag file should use the tag
file's PageContext rather than that of the containing
page. (markt)

Following on from the fix for 58178, expressions in a tag
file should use the tag file's imports rather than those of the
containing page. (markt)

WebSocket

58166: Allow applications to send close codes in the range
3000-4999 inclusive. (markt)

58232: Avoid possible NPE when adding endpoints
programmatically to the
javax.websocket.server.ServerContainer.
Based on a patch provided by bastian.(violetagg)

Web applications

Correct the incorrect document of QueryTimeoutInterceptor.
The setting value is not in milliseconds but in seconds. (kfujino)

58112: Update the documentation for using the Catalina tasks
in an Apache Ant build file. (markt)

Improve the Javadoc for some of the APR socket read functions that have
inconsistent behaviour for return values. (markt)

jdbc-pool

58042: The default value of logFailed attribute
of SlowQueryReport is changed to false so that
the failed queries are not logged by default. (kfujino)

Fix potential NPE in QueryTimeoutInterceptor. (kfujino)

Add support for stopping the pool cleaner via JMX. (kfujino)

The fairness attribute and
ignoreExceptionOnPreLoad attribute do not allow a change
via JMX. (kfujino)

If the timeBetweenEvictionRunsMillis attribute is changed
via jmx, it should restart the pool cleaner because this attribute
affects the execution interval of the pool cleaner. (kfujino)

Eliminate the dependence on maxActive of busy queues and
idle queue in order to enable the expansion of the pool size via JMX.
(kfujino)

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

2015-07-06 Tomcat 8.0.24 (markt)

Catalina

57938: Correctly handle empty form fields when a form is
submitted as multipart/form-data, the
maxPostSize attribute of the Connector has been set to a
negative value and the Context has been configured with a value of
true for allowCasualMultipartParsing. The
meaning of the value zero for the maxPostSize has also been
changed to mean a limit of zero rather than no limit to align it with
maxSavePostSize and to be more intuitive. (markt)

57977: Correctly bind and unbind the web application class
loader during execution of the PersistentValve. (markt)

Remove some unnecessary code from the web application class loader and
deprecate the now unused validate() method since the
requirements of SRV.10.7.2 are met using cleaner code in
loadClass(String, boolean) and filter().
(markt)

Correct a bug that prevented the web application class loader's
filter() from working correctly. It only returned
true for classes in sub-packages of the listed packages,
but not classes located in the packages themselves. (markt)

Add the WebSocket API classes to the list of classes that the web
application class loader will always delegate to its parent for loading
first. (markt)

58015: Ensure that whenever the web application class loader
checks to see if it should delegate first, it also checks the result
of the filter() method which may indicate that it should
always delegate first for the current class/resource regardless of the
value of the delegate configuration option. (markt)

57700: Ensure that Container event
ADD_CHILD_EVENT will be sent in all cases. (violetagg)

58086: Ensure that WAR URLs are handled properly when using
ANT for web application deployment. Based on a patch provided by Lukasz
Jader. (violetagg)

Fix CredentialHandler element handling in storeconfig. (remm)

Coyote

57265: Further fix to address a potential threading issue
when sendfile is used in conjunction with TLS. (markt)

57936: Improve robustness of the acceptor thread count
parameter for NIO2, since it must be set to 1. Submitted by
Oliver Kant. (remm)

57943: Added a work-around to catch
ConcurrentModificationExceptions during Poller timeout
processing that were causing the Poller thread to stop. The root cause
of these exceptions is currently unknown. (markt)

57944: Ensure that if non-blocking I/O listeners are set on
a non-container thread that the expected listener events are still
triggered. (markt)

57871: Ensure that setting the
allowHttpSepsInV0 property of a
LegacyCookieProcessor to false only prevents HTTP
separators from being used without quotes. (markt)

Add a workaround for issues with SPNEGO authentication when running on
Java 8 update 40 and later. The workaround should be safe for earlier
Java versions but it can be disabled with the
applyJava8u40Fix attribute of the SPNEGO authenticator if
necessary. (markt)

57926: Restore the original X-Forwarded-By and
X-Forwarded-For headers after processing by the
RemoteIPValve . (markt)

Coyote

Follow up to previous fix that removed the behavior difference between
NIO and NIO2 for SSL, which caused corruption with NIO2.
(remm)

57931: Ensure that TLS connections with the NIO or NIO2 HTTP
connectors that experience issues during the handshake (e.g. missing or
invalid client certificate) are closed cleanly and that the client
receives the correct error code rather than simply closing the
connection. (markt)

Web applications

57896: Document system property
org.apache.tomcat.util.http.ServerCookie.PRESERVE_COOKIE_HEADER
that was introduced in Tomcat 8.0.0. (kkolinko)

Tribes

Ensure that the state transfer flag is updated to true only when the map
states have been transferred correctly from existing map members.
(kfujino)

Other

Update optional Checkstyle library to 6.6. (kkolinko)

2015-05-05 Tomcat 8.0.22 (markt)

Catalina

57736: Change the format of the Tomcat specific URLs for
resources inside JARs that are in turn packed in a WAR. The
^/ sequence has been replaced by */ so that
the resulting URLs are compliant with RFC 2396 and do not trigger
exceptions when converted to URIs. The old format will continue to be
accepted. (markt)

Allow logging of the remote port in the access log using the format
pattern %{remote}p. (rjung)

57556: Refine the previous fix for this issue so that the
real path returned only has a trailing separator if the requested path
ended with /. (markt)

57765: When checking last modified times as part of the
automatic deployment process, account for the fact that
File.lastModified() has a resolution of one second to
ensure that if a file has been modified within the last second, the
latest version of the file is always used. Note that a side-effect of
this change is that files with modification times in the future are
treated as if they are unmodified. (markt)

Align redeploy resource modification checking with reload modification
checking so that now, in both cases, a change in modification time
rather than an increase in modification time is used to determine if the
resource has changed. (markt)

Cleanup o.a.tomcat.util.digester.Digester from debug
messages that do not give any valuable information. Patch provided
by Polina Genova. (violetagg)

57772: When reloading a web application and a directory
representing an expanded WAR needs to be deleted, delete the directory
after the web application has been stopped rather than before to avoid
potential ClassNotFoundExceptions. (markt)

57856: Ensure that any scheme/port changes implemented by the
RemoteIpFilter also affect
HttpServletResponse.sendRedirect(). (markt)

57863: Fix the RewriteMap support in RewriteValve that did
not use the correct key value to look up entries. Based on a patch
provided by Tatsuya Bessho. (markt)

Coyote

57779: When an I/O error occurs on a non-container thread
only dispatch to a container thread to handle the error if using Servlet
3+ asynchronous processing. This avoids potential deadlocks if an
application is performing I/O on a non-container thread without using
the Servlet 3+ asynchronous API. (markt)

Remove the experimental support for SPDY. No current user agent supports
the version of SPDY that the experiment targeted. Note: HTTP/2 support
is under development for Tomcat 9 and may be back-ported to Tomcat 8
once complete. (markt)

Possible incomplete writes with SSL NIO2. (remm)

Incorrect reads with SSL NIO2 caused by a bad strategy for handling IO
differences between NIO and NIO2 that don't seem to be justified.
(remm)

After some errors, the pending flags could remain set when using SSL
NIO2. (remm)

57833: When using JKS based keystores for NIO or NIO2, ensure
that the key alias is always converted to lower case since that is what
JKS key stores expect. Based on a patch by Santosh Giri Govind M.
(markt)

Jasper

57845: Ensure that, if the same JSP is accessed directly and
via a <jsp-file> declaration in web.xml, updates to
the JSP are visible (subject to the normal rules on re-compilation)
regardless of how the JSP is accessed. (markt)

57855: Explicitly handle the case where a
MethodExpression is invoked with null or the wrong number
of parameters. Rather than failing with an
ArrayIndexOutOfBoundsException or a
NullPointerException throw an
IllegalArgumentException with a useful error message.
(markt)

WebSocket

57761: Ensure that the opening HTTP request is correctly
formatted when the WebSocket client connects to a server root. (remm)

57762: Ensure that the WebSocket client correctly detects
when the connection to the server is dropped. (markt)

57776: Revert the 8.0.21 fix for the
permessage-deflate implementation and incorrect op-codes
since the fix was unnecessary (the bug only affected trunk) and the fix
broke rather than fixed permessage-deflate if an
uncompressed message was converted into more than one compressed
message. (markt)

Fix log name typo in WsRemoteEndpointImplServer class,
caused by a copy-paste. (markt/kkolinko)

57788: Avoid NPE when looking up a class hierarchy without
finding anything. (remm)

Web applications

57759: Add information to the keyAlias documentation to make
it clear that the order keys are read from the keystore is
implementation dependent. (markt)

57864: Update the documentation web application to make it
clearer that hex values are not valid for cluster send options. Based on
a patch by Kyohei Nakamura. (markt)

Tribes

Fix a concurrency issue when a backup message that has all session data
and a backup message that has diff data are processing at the same time.
This fix ensures that MapOwner is set to
ReplicatedMapEntry. (kfujino)

Other

Add missing pom for tomcat-storeconfig. (remm)

Update optional Checkstyle library to 6.5. (kkolinko)

57707: Improve error message when trying to run a release
build on a non-Windows platform and Wine is not available. (markt)

2015-03-26 Tomcat 8.0.21 (markt)

Catalina

When docBase refers internal war and unpackWARs is set to false, avoid
registration of the invalid redeploy resource that has been added ".war"
extension in duplicate. (kfujino)

If WAR exists, it is not necessary to trigger a reload when adding a
Directory. (kfujino)

55988: Add support for Java 8 JSSE server-preferred TLS
cipher suite ordering. This feature requires Java 8
and is controlled by useServerCipherSuitesOrder
attribute on an HTTP connector.
Based upon a patch provided by Ognjen Blagojevic. (schultz)

56608: When deploying an external WAR, add watched resources
in the expanded directory based on whether the expanded directory is
expected to exist rather than if it does exist. (markt)

When triggering a reload due to a modified watched resource, ensure
that multiple changed watched resources only trigger one reload rather
than a series of reloads. (markt)

57601: Ensure that HEAD requests return the correct content
length (i.e. the same as for a GET) when the requested resource includes
a resource served by the Default servlet. (jboynes/markt)

57602: Ensure that HEAD requests return the correct content
length (i.e. the same as for a GET) when the requested resource includes
a resource served by a servlet that extends HttpServlet.
(markt)

57621: When an async request completes, ensure that any
remaining request body data is swallowed. (markt)

57637: Do not create unnecessary sessions when using
PersistentValve. (jboynes/fschumacher)

57645: Correct a regression in the fix for
57190 that incorrectly required the path passed to
ServletContext.getContext(String) to be an exact match to a
path to an existing context. (markt)

Make sure that unpackWAR attribute of Context
is handled correctly in HostConfig. (kfujino)

When deploying a WAR file that contains a context.xml file and
unpackWARs is false ignore any context.xml
file that may exist in an expanded directory associated with the WAR.
(markt)

Enable Tomcat to detect when a WAR file has been changed while Tomcat is
not running. Tomcat does this by adding a META-INF/war-tracking file to
the expanded directory and setting the last modified time of this file
to the last modified time of the WAR. If Tomcat detects a modified WAR
via this mechanism the web application will be redeployed (i.e. the
expanded directory will be removed and the modified WAR expanded in its
place). (markt)

57724: Handle the case in the CORS filter where a user agent
includes an origin header for a non-CORS request. (markt)

When searching for SCIs
o.a.catalina.Context.getParentClassLoader will be used
instead of java.lang.ClassLoader.getParent. Thus one can
provide the correct parent class loader when running embedded Tomcat in
other environments such as OSGi. (violetagg)

57743: Fix a locked file / resource leak issue when a JAR is
accessed just before or during web application undeploy. Patch provided
by Pavel Avgustinov. (markt)

Coyote

57540: Make TLS/SSL protocol available in a new request
attribute
(org.apache.tomcat.util.net.secure_protocol_version).
(Note that AJP connectors will require mod_jk 1.2.41 or later,
or an as-yet-unknown version of mod_proxy_ajp, or configure the proxy
to send the AJP_SSL_PROTOCOL request attribute to Tomcat. Please see
the bug comments for details.)
Based upon a patch provided by Ralf Hauser. (schultz)

Fix a cipher ordering issue when using the OpenSSL syntax for JSSE
cipher configuration to ensure that ephemeral ECDH with AES is preferred
to ephemeral ECDH with anything else. (markt)

57570: Make the processing of trailer headers with chunked
input optional and disabled by default. (markt)

57592: Correctly handle the case where an
AsyncContext is used for non-blocking I/O and is completed
during a write operation. (markt)

57638: Avoid an IllegalArgumentException when an AJP request
body chunk larger than the socket read buffer is being read. This
typically requires a larger than default AJP packetSize. (markt)

57674: Avoid a BufferOverflowException when an AJP response
body chunk larger than the socket write buffer is being written. This
typically requires a larger than default AJP packetSize. (markt)

Numerous fixes to the APR/native connector to improve robustness.
(markt)

Stop caching and re-using SocketWrapper instances. With the introduction
of upgrade and non-blocking I/O, I/O can occur on non-container threads.
This makes it nearly impossible to track whether a SocketWrapper is
still being referenced or not, making re-use a risky proposition.
(markt)

Refactor Connector authentication (only used by AJP) into a separate
method. (markt)

57708: Implement a new feature for AJP connectors - Tomcat
Authorization. If the new tomcatAuthorization attribute is set to
true (it is disabled by default) Tomcat will take an
authenticated user name from the AJP protocol and use the appropriate
Realm for the request to authorize (i.e. add roles) to that user.
(markt)

Fix an issue that meant that any pipe-lined data read by Tomcat before
an asynchronous request completed was lost during the completion of the
asynchronous request. This mean that the pipe-lined request(s) would be
lost and/or corrupted. (markt)

Update the minimum recommended version of the Tomcat Native library (if
used) to 1.1.33. (markt)

Jasper

57583: Cache 'Not Found' results in
javax.el.ImportHandler.resolveClass() to save repeated
attempts to load classes that are known not to exist to improve
performance. (markt)

57626: Correct a regression introduced in the 8.0.16 fix for
ensuring Jars were closed after use, that broke recompilation of
modified JSPs that depended on a tag file packaged in a Jar. (markt)

57627: Correctly determine last modified times for
dependencies when a tag file packaged in a JAR depends on a tag file
packaged in a second JAR. (markt)

57647: Ensure INFO message is logged when scanning jars for
TLDs if the scan does not find a TLD in any jar. Previously a message
would only be logged if a TLD was not found in all scanned jars. (jboynes)

57662: Update all references to the ECJ compiler to version
4.4.2. (violetagg)

Cluster

WebSocket

Correct a bug in the permessage-deflate implementation that
meant that the incorrect op-codes were used if an uncompressed message
was converted into more than one compressed message. (markt)

57676: List conflicting WebSocket endpoint classes when
there is a path conflict. Based upon a patch proposed by yangkun.
(schultz)

Web applications

56058: Add links to the AccessLogValve documentation for
configuring reverse proxies and/or Tomcat to ensure that the desired
information is used entered in the access log when Tomcat is running
behind a reverse proxy. (markt)

57683: Ensure that if a client aborts their connection to the
stock ticker example (the only way a client can disconnect), the example
continues to work for existing and new clients. (markt)

Make it clear that when using digested passwords with DIGEST
authentication that no salt and only a single iteration must be used
when generating the digest. (markt)

Extras

57377: Remove the restriction that prevented the use of SSL
when specifying a bind address with the JMXRemoteLifecycleListener. Also
enable SSL to be configured for the registry as well as the server.
(markt)

Tribes

When a map member has been added to ReplicatedMap, make
sure to add it to backup nodes list of all other members. (kfujino)

Make sure that refuse the messages from a different domain in
DomainFilterInterceptor. (kfujino)

Other

Update optional Checkstyle library to 6.4.1. (kkolinko)

57703: Update the http-method definition for
web applications using a Servlet 2.5 descriptor as per Servlet 2.5 MR 6.
(markt)

Update to Tomcat Native Library version 1.1.33 to pick up the Windows
binaries that are based on OpenSSL 1.0.1m and APR 1.5.1. (markt)

2015-02-20 Tomcat 8.0.20 (markt)

Coyote

Fix a concurrency issue that meant that a change in socket timeout (e.g.
when switching to asynchronous I/O) did not always take effect
immediately. (markt)

57556: Align getRealPath() behaviour with that
of earlier versions and include a trailing separator if the real path
refers to a directory. (markt)

Ensure that Servlet 3.0 async requests where startAsync()
is called in one container thread and dispatch() is called
in a different container thread complete correctly. (markt)

Ensure that user name checking in the optional SecurityListener is
case-insensitive (as documented) and than the case-insensitive
comparison is performed using the system default Locale. (markt)

57021: Improve logging in AprLifecycleListener and
jni.Library when Tomcat-Native DLL fails to load. Based on a patch by
Pravallika Peddi. (markt/kkolinko)

Coyote

Fix several bugs that could cause multiple registrations for write
events for a single socket when using Servlet 3.0 async. Typically, the
side effects of these multiple registrations would be exceptions
appearing in the logs. (markt)

Other

Assign newly created stream to field instead of leaking it uselessly.
Issue reported by Coverity Scan. (fschumacher)

Update optional Checkstyle library to 6.3. (kkolinko)

Guard the digester from MbeansDescriptorsDigesterSource with its own
lock object. (fschumacher)

Refactor the unit tests and add some new test properties to make it
easier to exclude performance tests and relax timing tests. This is
primarily for the ASF CI system where these tests frequently fail.
(markt)

57446: Ensure that ServletContextListeners that
have limited access to ServletContext methods are called
with the same ServletContext instance for both
contextInitialized() and contextDestroyed().
(markt)

57455: Explicitly block the use of the double-quote character
when configuring the common, server and shared class loaders since
double-quote is used to quote values that contain commas. (markt)

57461: When an instance of
org.apache.catalina.startup.VersionLoggerListener logs the
result of System.getProperty("java.home") don't report it
in a manner that makes it look like the JAVA_HOME
environment variable. (markt)

57476: Ensure the responses written as part of a forward are
fully written. This fixes a regression in 8.0.15 caused by the fix for
57252. (markt)

While closing streams for given resources ensure that if an exception
happens it will be handled properly. Issue is reported by Coverity Scan.
(violetagg)

57481: Fix IllegalStateException at the end of
the request when using non-blocking reads with the HTTP BIO connector.
(markt)

Change Response to use UEncoder instances with shared safeChars.
(fschumacher)

Ensure that when static resources are served from JARs, only static
resources are served. (markt)

Allow VersionLoggerListener to log all system properties.
This feature is off by default. (kkolinko)

Jasper

Ensure that classes imported via the page directive are made available
to the EL environment via the ImportHandler. Issue is reported by
Coverity Scan. (violetagg)

57441: Do not trigger an error when using functions defined
by lambdas or imported via an ImportHandler in an EL expression in a
JSP. (markt)

Tribes

Copy node does not need to send the entry data. It is enough to send
only the node information of the entry. (kfujino)

ReplicatedMap should send the Copy message when replicating. (kfujino)

Fix behavior of ReplicatedMap when member has disappeared. If map entry
is primary, rebuild the backup members. If primary node of map entry has
disappeared, backup node is promoted to primary. (kfujino)

2015-01-16 Tomcat 8.0.17 (markt)

Catalina

Correct a regression in the previous fix for 57252 that broke
request listeners for non-async requests that triggered an error that
was handled by the ErrorReportingValve. (markt/violetagg)

Coyote

Add flushing to send ack in the NIO2 connector. (remm)

not released Tomcat 8.0.16 (markt)

Catalina

57172: Provide a better error message if something attempts to
access a resource through a web application class loader that has been
stopped. (markt/kkolinko)

57173: Revert the fix for 56953 that broke
annotation scanning in some cases. (markt)

57180: Do not limit the CORS filter to only accepting
requests that use an HTTP method defined in RFC 7231. (markt)

57190: Fix ServletContext.getContext(String)
when parallel deployment is used so that the correct ServletContext is
returned. (markt)

57208: Prevent NPE in JNDI Realm when no results are found
in a directory context for a user with specified user name. Based on
a patch provided by Jason McIntosh. (violetagg)

57209: Add a new attribute, userSearchAsUser to the JNDI
Realm. (markt)

57215: Ensure that the result of calling
HttpServletRequest.getContextPath() is neither decoded nor
normalized as required by the Servlet specification. (markt)

57216: Improve handling of invalid context paths. A context
path should either be an empty string or start with a
'/' and do not end with a
'/'. Invalid context path are automatically
corrected and a warning is logged. The null and
"/" values are now correctly changed to
"". (markt/kkolinko)

Update storeconfig with the CredentialHandler element. (remm)

Correct message that is logged when load-on-startup servlet fails
to load. It was logging a wrong name. (kkolinko)

57239: Correct several message typos. Includes patch by
vladk. (kkolinko)

Fix closing of Jars during annotation scanning. (schultz/kkolinko)

Fix a concurrency issue in async processing. Ensure that a non-container
thread can not change the async state until the container thread has
completed. (markt)

57252: Provide application configured error pages with a
chance to handle an async error before the built-in error reporting.
(markt)

57281: Enable non-public Filter and Servlet classes to be
configured programmatically via the Servlet 3.0 API and then used
without error when running under a SecurityManager. (markt)

Allow to configure RemoteAddrValve and RemoteHostValve to
adopt behavior depending on the connector port. Implemented
by optionally adding the connector port to the string compared
with the patterns allow and deny. Configured
using addConnectorPort attribute on valve. (rjung)

Optionally trigger authentication instead of denial in
RemoteAddrValve and RemoteHostValve. This only works in
combination with preemptiveAuthentication
on the application context. Configured using
invalidAuthenticationWhenDeny attribute on valve. (rjung)

Remove the obsolete jndi protocol usage from the scanning
process performed by StandardJarScanner. (violetagg)

Prevent file descriptors leak and ensure that files are closed after
retrieving the last modification time. (violetagg)

Make o.a.catalina.webresources.StandardRoot easier for
extending. (violetagg)

57331: Allow ExpiresFilter to use "year" as synonym for
"years" in its configuration. (kkolinko)

Ensure that if the RewriteValve rewrites a request that subsequent calls
to HttpServletRequest.getRequestURI() return the undecoded
URI. (markt)

Ensure that if the RewriteValve rewrites a request to a non-normalized
URI that the URI is normalized before the URI is mapped to ensure that
the correct mapping is applied. (markt)

Prevent NPEs being logged during post-processing for requests that have
been re-written by the RewriteValve. (markt)

Various StoreConfig improvements including removing a dependency on the
StandardServer implementation, improve consistency of
behaviour when MBean is not registered and improve error messages when
accessed via the Manager application. (markt)

57265: Fix some potential concurrency issues with sendFile
and the NIO connector. (markt)

57324: If the client uses Expect: 100-continue
and Tomcat responds with a non-2xx response code, Tomcat also closes the
connection. If Tomcat knows the connection is going to be closed when
committing the response, Tomcat will now also send the
Connection: close response header. (markt)

57340: When using Comet, ensure that Socket and SocketWrapper
are only returned to their respective caches once on socket close (it is
possible for multiple threads to call close concurrently). (markt)

57391: Allow TLS Session Tickets to be disabled when using
the APR/native HTTP connector. Patch provided by Josiah Purtlebaugh.
(markt)

Jasper

57142: As per the clarification from the JSP specification
maintenance lead, classes and packages imported via the page directive
must be made available to the EL environment via the ImportHandler.
(markt)

57247: Correct the default Java source and target versions in
the JspC usage message to 1.7 for Java 7. (markt)

57309: Ensure that the current EL Resolver is given an
opportunity to perform type coercion before applying the default EL
coercion rules. (markt)

Improve the calculation of the resource's last-modified, performed by
JspCompilationContext, in a way to support URLs with protocol different
than jar:file. (violetagg)

Fix potential issue with BeanELResolver when running under a security
manager. Some classes may not be accessible but may have accessible
interfaces. (markt)

Cluster

In order to enable define in Cluster element,
ClusterSingleSignOn implements ClusterValve.
(kfujino)

57338: Improve the ability of the
ClusterSingleSignOn valve to handle nodes being added and
removed from the Cluster at run time. (markt)

WebSocket

Correct multiple issues with the flushing of batched messages that could
lead to duplicate and/or corrupt messages. (markt)

Correctly implement headers case insensitivity. (markt/remm)

Allow optional use of user extensions. (remm)

Allow using partial binary message handlers. (remm)

Limit ping/pong message size. (remm)

Allow configuration of the time interval for the periodic event. (remm)

2014-11-07 Tomcat 8.0.15 (markt)

Catalina

43682: Add support for referring to the current context, host
and service name in per Context logging.properties files by using the
properties ${classloader.webappName},
${classloader.hostName} and
${classloader.serviceName}. (markt)

47919: Extend the information logged when Tomcat starts to
optionally log the values of command line arguments (enabled by
default) and environment variables (disabled by default). Note that
the values added to CATALINA_OPTS and JAVA_OPTS environment variables
will be logged, as they are used to build up the command line. (markt)

55951: Allow cookies to use UTF-8 encoded values in HTTP
headers. This requires the use of the RFC6265
CookieProcessor. (markt)

55984: Using the allow separators in version 0 cookies option
with the legacy cookie processor should only apply to version 0 cookies.
Version 1 cookies with values that contain separators should not be
affected and should continue to be quoted. (markt)

56393: Add support for RFC6265 cookie parsing and generation.
This is currently disabled by default and may be enabled via the
CookieProcessor element of a Context.
(markt)

56394: Introduce new configuration element CookieProcessor in
Context to allow context-specific configuration of cookie processing
options. Attributes of Context element that were added in Tomcat 8.0.13
to allow configuration of a new experimental RFC6265 based cookie parser
(useRfc6265 and cookieEncoding) are
replaced by this new configuration element. (markt)

Improve the previous fix for 56401. Avoid logging version
information in the constructor since it then gets logged at undesirable
times such as when using StoreConfig. (markt)

56403: Add pluggable password derivation support to the
Realms via the new CredentialHandler interface.
(markt/schultz)

57016: When using the PersistentValve do not
remove sessions from the store when persisting them. (markt)

Deprecate the use of system properties to control cookie parsing and
replace them with attributes on the new CookieProcessor
that may be configured on a per context basis. (markt)

Correct an edge case and allow a cookie if the value starts with an
equals character and the CookieProcessor is not configured
to allow equals characters in cookie values but is configured to allow
name only cookies. (markt)

57022: Ensure SPNEGO authentication continues to work with
the JNDI Realm using delegated credentials with recent Oracle JREs.
(markt)

57027: Add additional validation for stored credentials used
by Realms when the credential is stored using hex encoding. (markt)

57038: Add a WebResource.getCodeBase() method,
implement for all WebResource implementations and then use
it in the web application class loader to set the correct code base for
resources loaded from JARs and WARs. (markt)

Correct a couple of NPEs in the JNDI Realm that could be triggered with
when not specifying a roleBase and enabling roleSearchAsUser. (markt)

Correctly handle relative values for the docBase attribute of a Context.
(markt)

Ensure that log messages generated by the web application class loader
correctly identify the associated Context when multiple versions of a
Context with the same path are present. (markt)

Remove the unnecessary registration of context.xml as a redeploy
resource. The context.xml having an external docBase has already been
registered as a redeploy resource at first. (kfujino)

57089: Ensure that configuration of a session ID generator is
not lost when a web application is reloaded. (markt)

57105: When parsing web.xml do not limit the buffer element
of the jsp-property-group element to integer values as the allowed
values are <number>kb or none. (markt)

Update the minimum required version of the Tomcat Native library (if
used) to 1.1.32. (markt)

Throw a NullPointerException if a null string is passed to
the write(String,int,int) method of the
PrintWriter obtained from the ServletResponse.
(markt)

Cookie rewrite flag abbreviation should be CO rather than C. (remm)

57153: When the StandardJarScanner is configured to scan the
full class path, ensure that class path entries added directly to the
web application class loader are scanned. (markt)

AsyncContext should remain usable until fireOnComplete is called. (remm)

AsyncContext createListener should wrap any instantiation exception
using a ServletException. (remm)

57155: Allow a web application to be configured that does not
have a docBase on the file system. This is primarily intended for use
when embedding. (markt)

Propagate header ordering from fileupload to the part implementation.
(remm)

Coyote

53952: Add support for TLSv1.1 and TLSv1.2 for APR connector.
Based upon a patch by Marcel Šebek. This feature requires
Tomcat Native library 1.1.32 or later. (schultz/jfclere)

Cache the Encoder instances used to convert Strings to byte
arrays in the Connectors (e.g. when writing HTTP headers) to improve
throughput. (markt)

Disable SSLv3 by default for JSSE based HTTPS connectors (BIO, NIO and
NIO2). The change also ensures that SSLv2 is disabled for these
connectors although SSLv2 should already be disabled by default by the
JRE. (markt)

Disable SSLv3 by default for the APR/native HTTPS connector. (markt)

Do not increase remaining counter at end of stream in
IdentityInputFilter. (kkolinko)

Trigger an error if an invalid attempt is made to use non-blocking IO.
(markt)

Allow the same class to be added to an instance of
javax.el.ImportHandler more than once without triggering
an error. The second and subsequent calls for the same class will be
ignored. (markt)

57136: Ensure only \${ and \#{ are
treated as escapes for ${ and #{ rather than
\$ and \# being treated as escapes for
$ and # when processing literal expressions in
expression language. (markt)

When coercing an object to an array type in Expression Language, handle
the case where the source object is an array of primitives.
(markt/kkolinko)

Do not throw an exception on missing JSP file servlet initialization.
(remm)

57148: When coercing an object to a given type and a
PropertyEditor has been registered for the type correctly
coerce the empty string to null if the
PropertyEditor throws an exception. (kkolinko/markt)

57153: Correctly scan for TLDs located in directories that
represent expanded JARs files that have been added to the web application
class loader's class path. (markt)

57141: Enable EL in JSPs to refer to static fields of
imported classes including the standard java.lang.*
imports. (markt)

Cluster

Add support for the SessionIdGenerator to cluster manager
template. (kfujino)

WebSocket

57054: Correctly handle the case in the WebSocket client
when the HTTP response to the upgrade request can not be read in a
single pass; either because the buffer is too small or the server sent
the response in multiple packets. (markt)

Extend support for the permessage-deflate extension to the
client implementation. (markt)

Fix client subprotocol handling. (remm)

Add null checks for arguments in remote endpoint. (remm/kkolinko)

57091: Work around the behaviour of the Oracle JRE when
creating new threads in an applet environment that breaks the WebSocket
client implementation. Patch provided by Niklas Hallqvist. (markt)

57118: Ensure that that an EncodeException is
thrown by RemoteEndpoint.Basic.sendObject(Object) rather
than an IOException when no suitable Encoder
is configured for the given Object. (markt)

Other

56079: The uninstaller packaged with the Apache Tomcat
Windows installer is now digitally signed. (markt)

Fix timestamps in Tomcat build and jdbc-pool to use 24-hour format
instead of 12-hour one and use UTC timezone. (markt/kkolinko)

Update the package renamed copy of Apache Commons DBCP 2 to revision
1631450 to pick up additional fixes since the 2.0.1 release including
Javadoc corrections to fix errors when compiling with Java 8. (markt)

56596: Update to Tomcat Native Library version 1.1.32 to
pick up the Windows binaries that are based on OpenSSL 1.0.1j and APR
1.5.1. (markt)

In Tomcat tests: log name of the current test method at start time.
(kkolinko)

2014-09-29 Tomcat 8.0.14 (markt)

Other

56079: The Apache Tomcat Windows installer, the Apache Tomcat
Windows service and the Apache Tomcat Windows service monitor
application are now digitally signed. (markt)

not released Tomcat 8.0.13 (markt)

Catalina

55917: Allow bytes in the range 0x80 to 0xFF to appear in
cookie values if the cookie is a V1 (RFC2109) cookie and the value is
correctly quoted. The new RFC6265 based cookie parser must be enabled to
correctly handle these cookies. (markt)

55918: Do not permit control characters to appear in quoted
V1 (RFC2109) cookie values. The new RFC6265 based cookie parser must be
enabled to correctly handle these cookies. (markt)

55921: Correctly handle (ignore the cookie) unescaped JSON in
a cookie value. The new RFC6265 based cookie parser must be enabled to
correctly handle these cookies. (markt)

56902: Fix a potential resource leak in the Default Servlet
reported by Coverity Scan. Based on a patch provided by Felix
Schumacher. (markt)

56903: Correct the return value for
StandardContext.getResourceOnlyServlets() so that multiple
names are separated by commas. Identified by Coverity Scan and fixed
based on a patch by Felix Schumacher. (markt)

Add an additional implementation of a RFC6265 based cookie parser along
with new Context options to select and configure it. This parser is
currently considered experimental and is not used by default. (markt)

Correct the information written by
ExtendedAccessLogValve when a format token x-O(XXX) is
used so that multiple values for a header XXX are separated by commas.
Identified by Coverity Scan. (violetagg)

Correct the previous fix for 56825 that enabled pre-emptive
authentication to work with the SSL authenticator. (markt)

Refactor to reduce code duplication identified by Simian. (markt)

When using parallel deployment and undeployOldVersions
feature is enabled on a Host, correctly undeploy context of old
version. Make sure that Tomcat does not undeploy older Context if
current context is not running. (kfujino)

When deploying war, add XML file in the config base to the redeploy
resources if war does not have META-INF/context.xml or
deployXML is false. If XML file is created in the config
base, redeploy will occur. (kfujino)

Various changes to reduce unnecessary code in Tomcat's copy of
Apache Commons BCEL to reduce the time taken for annotation scanning
when web applications start. Includes contributions from kkolinko and
hzhang9. (markt)

56938: Ensure web applications that have mixed case context
paths and are deployed as directories are correctly removed on undeploy
when running on a case sensitive file system. (markt)

57011: Ensure that the request and response are correctly
recycled when processing errors during async processing. (markt)

Coyote

56910: Prevent the invalid value of -1 being
used for maxConnections with APR connectors. (markt)

Ensure that AJP connectors enable the KeepAliveTimeout.
(kfujino)

Reduce duplicated code. All AJP connectors use common method to
configuration of processor. (kfujino)

Jasper

43001: Enable the JspC Ant task to set the JspC option
mappedFile. (markt)

Ensure that the implementation of
javax.servlet.jsp.PageContext.include(String)
and
javax.servlet.jsp.PageContext.include(String, boolean)
will throw IOException when an I/O error occur during
the operation. (violetagg)

Other

56988: Allow to use relative path in base.path
setting when building Tomcat. (kkolinko)

56990: Ensure that the ide-eclipse build target
downloads all the libraries required by the default Eclipse
configuration files. (markt)

Update the package renamed copy of Apache Commons DBCP 2 to revision
1626988 to pick up the fixes since the 2.0.1 release including support
for custom eviction policies. (markt)

Update the package renamed copy of Apache Commons Pool 2 to revision
1627271 to pick up the fixes since the 2.2 release including some memory
leak fixes and support for application provided eviction policies.
(markt)

2014-09-03 Tomcat 8.0.12 (markt)

Catalina

Make the session id generator extensible by adding a
SessionIdGenerator interface, an abstract
base class and a standard implementation. (rjung)

56882: Fix regression in processing of includes and forwards
when Context have been reloaded. Tomcat was responding with HTTP Status
503 (Servlet xxx is currently unavailable). (kkolinko)

Coyote

When building a list of JSSE ciphers from an OpenSSL cipher definition,
ignore unknown criteria rather than throwing a
NullPointerException. (markt)

Add support for the EECDH alias when using the OpenSSL cipher syntax to
define JSSE ciphers. (markt)

Jasper

Correct a logic error in the JasperElResolver. There was no
functional impact but the code was less efficient as a result of the
error. Based on a patch by martinschaef. (markt)

56568: Enable any HTTP method to be used to request a JSP
page that has the isErrorPage page directive set to
true. (markt)

WebSocket

Extend support for the permessage-deflate extension to
compression of outgoing messages on the server side. (markt)

Other

56323: Include the *.bat files when installing
Tomcat via the Windows installer. (markt)

2014-08-22 Tomcat 8.0.11 (markt)

Catalina

56658: Fix regression that a context was inaccessible after
reload. (kkolinko)

56710: Do not map requests to servlets when context is
being reloaded. (kkolinko)

When scanning class files (e.g. for annotations) and reading the number
of parameters in a MethodParameters structure only read a
single byte (rather than two bytes) as per the JVM specification. Patch
provided by Francesco Komauli. (markt)

Allow the JNDI Realm to start even if the directory is not available.
The directory not being available is not fatal once the Realm is started
and it need not be fatal when the Realm starts. Based on a patch by
Cédric Couralet. (markt)

56736: Avoid an incorrect IllegalStateException
if the async timeout fires after a non-container thread has called
AsyncContext.dispatch() but before a container thread
starts processing the dispatch. (markt)

56739: If an application handles an error on an application
thread during asynchronous processing by calling
HttpServletResponse.sendError(), then ensure that the
application is given an opportunity to report that error via an
appropriate application defined error page if one is configured. (markt)

56801: Improve performance of
org.apache.tomcat.util.file.Matcher which is to filter JARs
for scanning during web application start. Based on a patch by Sheldon
Shao. (markt)

56815: When the gzip option is enabled for the
DefaultServlet ensure that a suitable Vary
header is returned for resources that might be returned directly in
compressed form. (markt)

Do not mark threads from the container thread pool as container threads
when being used to process AsyncContext.start(Runnable) so
processing is correctly transferred back to a genuine container thread
when necessary. (markt)

Add simple caching for calls to StandardRoot.getResources()
in the new (for 8.0.x) resources implementation. (markt)

56825: Enable pre-emptive authentication to work with the
SSL authenticator. Based on a patch by jlmonteiro. (markt)

56840: Avoid NPE when the rewrite valve is mapped to
a context. (remm)

Correctly handle multiple accept-language headers rather
than just using the first header to determine the user's preferred
Locale. (markt)

Jasper

56709: Fix system property name in a log message. Submitted
by Robert Kish. (remm)

56797: When matching a method in an EL expression, do not
treat bridge methods as duplicates of the method they bridge to. In this
case always call the target of the bridge method. (markt)

WebSocket

56746: Allow secure WebSocket client threads to use the
current context class loader rather than explicitly setting it to the
class loader that loaded the WebSocket implementation. This allows
WebSocket client connections from within web applications to access,
amongst other things, the JNDI resources associated with the web
application. (markt)

Web applications

Correct the label in the list of sessions by idle time for the bin that
represents the idle time immediately below the maximum permitted idle
time when using the expire command of the Manager application. (markt)

Other

56788: Display the full version in the list of installed
applications when installed via the Windows installer package. Patch
provided by Alexandre Garnier. (markt)

56829: Add the ability for users to define their own values
for _RUNJAVA and _RUNJDB environment
variables. Be more strict with executable filename on Windows
(s/java/java.exe/). Based on a patch by Neeme Praks. (markt/kkolinko)

not released Tomcat 8.0.10 (markt)

Catalina

44312: Log an error if there is a conflict between Host and
Alias names. Improve host management methods in Mapper
to avoid occasionally removing a wrong host. Check that host management
operations are performed on the host and not on an alias. (kkolinko)

56611: Refactor code to remove inefficient calls to
Method.isAnnotationPresent(). Based on a patch by Jian Mou.
(markt/kkolinko)

Fix regression in
StandardContext.removeApplicationListener(), introduced by
the fix for bug 56588. (kkolinko)

56657: When using parallel deployment, if the same session id
matches different versions of a web application, prefer the latest
version. Ensure that remapping selects the version that we expect.
(kkolinko)

Assert that mapping result object is empty before performing mapping
work in Mapper. (kkolinko)

Remove context and wrapper fields in
Request class and deprecate their setters. (kkolinko)

56658: Avoid delay between registrations of mappings for
context and for its servlets. (kkolinko)

56665: Correct the generation of the effective web.xml when
elements contain an empty string as value. (violetagg)

Fix storeconfig exception routing issues, so that a major problem
should avoid configuration overwrite. (remm)

Add configuration fields for header names in SSLValve. (remm)

56666: When clearing the SSO cookie use the same values for
domain, path, httpOnly and secure as were used to set the SSO cookie.
(markt)

56677: Ensure that
HttpServletRequest.getServletContext() returns the correct
value during a cross-context dispatch. (markt)

56684: Ensure that Tomcat does not shut down if the socket
waiting for the shutdown command experiences a
SocketTimeoutException. (markt)

56693: Fix various issues in the static resource cache
implementation where the cache retained a stale entry after the
successful completion of an operation that always invalidates the cache
entry such as a delete operation.
(markt)

When the current PathInfo is modified as a result of dispatching a
request, ensure that a call to
HttpServletRequest.getPathTranslated() returns a value that
is based on the modified PathInfo. (markt)

Jasper

56652: Add support for method parameters that use arrays and
varargs to ELProcessor.defineFunction().(markt)

WebSocket

Add support for the permessage-deflate extension. This is
currently limited to decompressing incoming messages on the server side.
It is expected that support will be extended to outgoing messages and to
the client side shortly. (markt)

Web applications

Attempt to obfuscate session cookie values associated with other web
applications when viewing HTTP request headers with the Cookies example
from the examples web application. This reduces the opportunity to use
this example for malicious purposes should the advice to remove the
examples web application from security sensitive systems be ignored.
(markt)

56694: Remove references to Manager attribute
checkInterval from documentation and Javadoc since it no
longer exists. Based on a patch by Felix Schumacher. Also remove other
references to checkInterval that are no longer valid.
(markt)

Other

Update the API stability section of the release notes now that Tomcat 8
has had its first stable release. (markt)

Improve build.xml so that when Eclipse JDT Compiler is
updated, it will delete the old JAR from build/lib
directory. (kkolinko)

Simplify implementation of "setproxy" target in build.xml.
(kkolinko)

Update optional Checkstyle library to 5.7. (kkolinko)

56596: Update to Tomcat Native Library version 1.1.31 to
pick up the Windows binaries that are based on OpenSSL 1.0.1h. (markt)

56685: Add quotes necessary for daemon.sh to
work correctly on Solaris. Based on a suggestion by lfuka. (markt)

56387: Improve the code that handles an attempt to load a
class after a web application has been stopped. Use common code to handle
this case regardless of the access path and don't throw an exception
purely to log a stack trace. (markt)

56399: Improve implementation of CoyoteAdapter.checkRecycled()
to do not use an exception for flow control. (kkolinko)

56461: New failCtxIfServletStartFails attribute
on Context and Host configuration to force the context startup to fail
if a load-on-startup servlet fails its startup. (slaurent)

Refactor and simplify common code in object factories in
org.apache.catalina.naming package, found thanks to Simian
(Similarity Analyser) tool. Improve handling of Throwable.
(markt/kkolinko)

Relax cookie naming restrictions. Cookie attribute names used in the
Set-Cookie header may be used unambiguously as cookie
names. The restriction that prevented such usage has been removed.
(jboynes/markt)

Further relax cookie naming restrictions. Version 0 (a.k.a Netscape
format) cookies may now use names that start with the $
character. (jboynes/markt)

Restrict cookie naming so that the = character is no longer
permitted in a version 0 (a.k.a. Netscape format) cookie name. While
Tomcat allowed this, browsers always truncated the name at the
= character leading to a mis-match between the cookie the
server set and the cookie returned by the browser. (jboynes/markt)

Add a simple ServiceLoader based discovery mechanism to the
JULI LogFactory to make it easier to use JULI and Tomcat
components that depend on JULI (such as Jasper) independently from
Tomcat. Patch provided by Greg Wilkins. (markt)

56578: Correct regression in the fix for 56339
that prevented sessions from expiring when using clustering. (markt)

56588: Remove code previously added to enforce the
requirements of section 4.4 of the Servlet 3.1 specification. The code
is no longer required now that Jasper initialization has been refactored
and TLD defined listeners are added via a different code path that
already enforces the specification requirements. (markt)

56600: In WebdavServlet: Do not waste time generating
response for broken PROPFIND request. (kkolinko)

Provide a better error message when asynchronous operations are not
supported by a filter or servlet. Patch provided by Romain Manni-Bucau.
(violetagg)

Coyote

56518: When using NIO, do not attempt to write to the socket
if the thread is marked interrupted as this will lead to a connection
limit leak. This fix was based on analysis of the issue by hanyong.
(markt)

56521: Re-use the asynchronous write buffer between writes to
reduce allocation and GC overhead. Based on a patch by leonzhx. Also
make the buffer size configurable and remove copying of data within
buffer when the buffer is only partially written on a subsequent write.
(markt)

Ensure that a request without a body is correctly handled during Comet
processing. This fixes the Comet chat example. (markt)

Fix input concurrency issue in NIO2 upgrade. (remm)

Correct a copy/paste error and return a 500 response rather than a 400
response when an internal server error occurs on early stages of
request processing. (markt)

56582: Use switch(actionCode) in processors instead of a
chain of "elseif"s. (kkolinko)

Fix CVE-2014-0227:
Various improvements to ChunkedInputFilter including clean-up, i18n for
error messages and adding an error flag to allow subsequent attempts at
reading after an error to fail fast. (markt)

When an error occurs after the response has been committed close the
connection immediately rather than attempting to finish the response to
make it easier for the client to differentiate between a complete
response and one that failed part way though. (markt)

Fix CVE-2014-0230:
Add a new limit, defaulting to 2MB, for the amount of data Tomcat will
swallow for an aborted upload. The limit is configurable by
maxSwallowSize attribute of an HTTP connector. (markt)

Do not configure a JspFactory in the
JasperInitializer if one has already been set as might be
the case in some embedding scenarios. (markt)

Add a simple implementation of InstanceManager and have
Jasper use it if no other InstanceManager is provided. This
makes it easier to use Jasper independently from Tomcat. Patch provided
by Greg Wilkins. (markt)

56568: Allow any HTTP method when a JSP is being used as an
error page. (markt)

56581: If an error on a JSP page occurs when response has
already been committed, do not clear the buffer of JspWriter, but flush
it. It will make more clear where the error occurred. (kkolinko)

56612: Correctly parse two consecutive escaped single quotes
when used in UEL expression in a JSP. (markt)

56638: When using
ELProcessor.defineFunction(String,String,String,String) and
no function name is specified, use the method name as the function name
as required by the specification. (markt)

WebSocket

56446: Clearer handling of exceptions when calling a method
on a POJO based WebSocket endpoint. Based on a suggestion by Eugene
Chung. (markt)

When a WebSocket client attempts to write to a closed connection, handle
the resulting IllegalStateException in a manner consistent
with the handling of an IOException. (markt)

Add more varied endpoints for echo testing. (remm)

56577: Improve the executor configuration used for the
callbacks associated with asynchronous writes. (markt)

Web applications

Set the path for cookies created by the examples web application so they
only returned to the examples application. This reduces the opportunity
for using such cookies for malicious purposes should the advice to
remove the examples web application from security sensitive systems be
ignored. (markt/kkolinko)

Attempt to obfuscate session cookie values associated with other web
applications when viewing HTTP request headers with the Request Header
example from the examples web application. This reduces the opportunity
to use this example for malicious purposes should the advice to remove
the examples web application from security sensitive systems be ignored.
(markt)

Add options for all of the WebSocket echo endpoints to the WebSocket
echo example in the examples web application. (markt)

Ensure that the asynchronous WebSocket echo endpoint in the examples
web application always waits for the previous message to complete before
it sends the next. (markt)

Other

Update package renamed Apache Commons DBCP2 to r1596858. (markt)

beta, 2014-05-21 Tomcat 8.0.8 (markt)

Catalina

56536: Ensure that
HttpSessionBindingListener.valueUnbound() uses the correct
class loader when the SingleSignOn valve is used. (markt)

Other

not released Tomcat 8.0.6 (markt)

Catalina

Fix extension validation which was broken by refactoring for new
resources implementation. (markt)

Fix custom UTF-8 decoder so that a byte of value 0xC1 is always rejected
immediately as it is never valid in a UTF-8 byte sequence. Update UTF-8
decoder tests to account for UTF-8 decoding improvements in Java 8.
The custom UTF-8 decoder is still required due to bugs in the UTF-8
decoder provided by Java. Java 8's decoder is better than Java
7's but it is still buggy. (markt)

56027: Add more options for managing FIPS mode in the
AprLifecycleListener. (schultz/kkolinko)

56320: Fix a file descriptor leak in the default servlet when
sendfile is used. (markt)

56321: When a WAR is modified, undeploy the web application
before deleting any expanded directory as the undeploy process may
refer to classes that need to be loaded from the expanded directory. If
the expanded directory is deleted first, any attempt to load a new class
during undeploy will fail. (markt)

56327: Enable AJP as well as HTTP connectors to be created
via JMX. Patch by kiran. (markt)

56339: Avoid an infinite loop if an application calls
session.invalidate() from the session destroyed event for
that session. (markt)

Jasper

56334: Fix a regression in the handling of back-slash
escaping introduced by the fix for 55735. (markt/kkolinko)

56425: Improve method matching for EL expressions. When
looking for matching methods, an exact match between parameter types is
preferred followed by an assignable match followed by a coercible match.
(markt)

Correct the handling of back-slash escaping in the EL parser and no
longer require that \$ or \# must be followed
by { in order for the back-slash escaping to take effect.
(markt)

Cluster

Remove the implementation of
org.apache.catalina.LifecycleListener from
org.apache.catalina.ha.tcp.SimpleTcpCluster.
SimpleTcpCluster does not work as
LifecycleListener, it works as nested components of Host or
Engine. (kfujino)

Remove cluster and replicationValve from cluster manager template. These
instance are not necessary to template. (kfujino)

Add support for cross context session replication to
org.apache.catalina.ha.session.BackupManager. (kfujino)

Remove the unnecessary cross context check. It does not matter whether
the context that is referenced by other context is set to
crossContext=true. The context that refers to the different
context must be set to crossContext=true. (kfujino)

Move to org.apache.catalina.ha.session.ClusterManagerBase
common logics of
org.apache.catalina.ha.session.BackupManager and
org.apache.catalina.ha.session.DeltaManager. (kfujino)

Simplify the code of o.a.c.ha.tcp.SimpleTcpCluster. In
order to add or remove cluster valve to Container, use pipeline instead
of IntrospectionUtils. (kfujino)

There is no need to set cluster instance when
SimpleTcpCluster.unregisterClusterValve is called.
Set null than cluster instance for cleanup. (kfujino)

WebSocket

56343: Avoid a NPE if Tomcat's Java WebSocket 1.0
implementation is used with the Java WebSocket 1.0 API JAR from the
reference implementation. (markt)

Increase the default maximum size of the executor used by the WebSocket
implementation for call backs associated with asynchronous writes from
10 to 200. (markt)

Add a warning if the thread group created for WebSocket asynchronous
write call backs can not be destroyed when the web application is
stopped. (markt)

Ensure that threads created to support WebSocket clients are stopped
when no longer required. This will happen automatically for WebSocket
client connections initiated by web applications but stand alone clients
must call WsWebSocketContainer.destroy(). (markt)

56449: When creating a new session, add the message handlers
to the session before calling Endpoint.onOpen() so the
message handlers are in place should the onOpen() method
trigger the sending of any messages. (markt)

56458: Report WebSocket sessions that are created over secure
connections as secure rather than as not secure. (markt)

Stop threads used for secure WebSocket client connections when they are
no longer required and give them better names for easier debugging while
they are running. (markt)

Web applications

Add Support for copyXML attribute of Host to Host Manager.
(kfujino)

Ensure that "name" request parameter is used as a application base of
host if "webapps" request parameter is not set when adding host in
HostManager Application. (kfujino)

Update package renamed Apache Commons Codec to r1586336 to pick up some
Javadoc fixes and some code clean up. (markt)

Switch to including Apache Commons DBCP via a package renamed svn copy
rather than building from a source release for consistency with other
Commons packages and to allow faster releases to fix DBCP related
issues. (markt)

Improve merging process for web.xml files to take account of the
elements and attributes supported by the Servlet version of the merged
file. (markt)

Avoid NullPointerException in resource cache when making an
invalid request for a resource outside of the web application. (markt)

Remove an unnecessary null check identified by FindBugs. (markt)

In WebappClassLoader, when reporting threads that are still running
while web application is being stopped, print their stack traces to
the log. (kkolinko)

56190: The response should be closed (i.e. no further output
is permitted) when a call to AsyncContext.complete() takes
effect. (markt)

56236: Enable Tomcat to work with alternative Servlet and
JSP API JARs that package the XML schemas in such as way as to require
a dependency on the JSP API before enabling validation for web.xml.
Tomcat has no such dependency. (markt)

56248: Allow the deployer to update an existing WAR file
without undeploying the existing application if the update flag is set.
This allows any existing custom context.xml for the application to be
retained. To update an application and remove any existing context.xml
simply undeploy the old version of the application before deploying the
new version. (markt)

56253: When listing resources that are provided by a JAR, fix
possible StringIndexOutOfBoundsExceptions. Add some unit
tests for this and similar scenarios and fix the additional issues those
unit tests identified. Based on a patch by Larry Isaacs. (markt)

Fix CVE-2014-0096:
Redefine the globalXsltFile initialisation parameter of the
DefaultServlet as relative to CATALINA_BASE/conf or CATALINA_HOME/conf.
Prevent user supplied XSLTs used by the DefaultServlet from defining
external entities. (markt)

Coyote

In some circumstances asynchronous requests could time out too soon.
(markt)

56172: Avoid possible request corruption when using the AJP
NIO connector and a request is sent using more than one AJP message.
Patch provided by Amund Elstad. (markt)

Add experimental NIO2 connector. Based on code developed by
Nabil Benothman. (remm)

Fix CVE-2014-0075:
Improve processing of chuck size from chunked headers. Avoid overflow
and use a bit shift instead of a multiplication as it is marginally
faster. (markt/kkolinko)

Fix CVE-2014-0095:
Correct regression introduced in 8.0.0-RC2 as part of the Servlet 3.1
non-blocking IO support that broke handling of requests with an explicit
content length of zero. (markt/kkolinko)

Web Applications

56217: Improve readability by using left alignment for the
table cell containing the request information on the Manager application
status page. (markt)

Fixed java.lang.NegativeArraySizeException when using
"Expire sessions" command in the manager web application on a
context where the session timeout is disabled. (kfujino)

Add support for LAST_ACCESS_AT_START system property to
Manager web application. (kfujino)

Other

56115: Expose the httpusecaches property of
Ant's get task as some users may need to change the
default. Based on a suggestion by Anthony. (markt)

56143: Improve service.bat so that it can be
launched from a non-UAC console. This includes using a single call to
tomcat8.exe to install the Windows service rather than
three calls, and using command line arguments instead of environment
variables to pass the settings. (markt/kkolinko)

Simplify Windows *.bat files: remove %OS% checks, as current java does
not run on ancient non-NT operating systems. (kkolinko)

Align options between service.bat and exe
Windows installer. For service.bat the changes are in
--Classpath, --DisplayName, --StartPath, --StopPath. For
exe installer the changes are in --JvmMs, --JvmMx options,
which are now 128 Mb and 256 Mb respectively instead of being empty.
Explicitly specify --LogPath path when uninstalling Windows service,
avoiding default value for that option. (kkolinko)

56137: Explicitly use NIO connector in SSL example in
server.xml so it doesn't break if APR is enabled. (markt)

Add the option to the Apache Ant tasks to ignore the constraint of the
first line of the response message that must be "OK -"
(ignoreResponseConstraint in AbstractCatalinaTask).
Default is false. (kfujino)

beta, 2014-02-11 Tomcat 8.0.3 (markt)

Other

Fix build of Apache Commons DBCP2 classes. (kkolinko)

Update Commons DBCP 2 to snapshot 170 dated 07 Feb 2014. This enables
DBCP to work with a SecurityManager such that only DBCP needs to be
granted the necessary permissions to communicate with the database.
(markt)

not released Tomcat 8.0.2 (markt)

Catalina

56085: ServletContext.getRealPath(String) should
return null for invalid input rather than throwing an
IllegalArgumentException. (markt)

Fix WebDAV support that was broken by the refactoring for the new
resources implementation. (markt)

Simplify Catalina.initDirs(). (kkolinko)

56096: When the attribute rmiBindAddress of the
JMX Remote Lifecycle Listener is specified it's value will be used when
constructing the address of a JMX API connector server. Patch is
provided by Jim Talbut. (violetagg)

When environment entry with one and the same name is defined in the web
deployment descriptor and with annotation then the one specified in the
web deployment descriptor is with priority. (violetagg)

Fix passing the value of false for xmlBlockExternal option
of Context to Jasper, as the default was changed in 8.0.1. (kkolinko)

Coyote

Enable non-blocking reads to take place on non-container threads.
(markt)

Coyote

Jasper

Change default value of the blockExternal attribute of
JspC task. The default value is true. Add support for
-no-blockExternal switch when JspC is run as a
standalone application. (kkolinko)

WebSocket

Do not return an empty string for the
Sec-WebSocket-Protocol HTTP header when no sub-protocol has
been requested or no sub-protocol could be agreed as RFC6455 requires
that no Sec-WebSocket-Protocol header is returned in this
case. (markt)

51408: Replace calls to Charset.defaultCharset()
with an explicit reference to the ISO-8859-1 Charset. (markt)

Refactor initialization code to use a single, consistent approach to
determining the Catalina home (binary) and base (instance) directories.
The search order for home is catalina.home system property,
parent of current directory if boootstrap.jar is present and finally
current working directory. The search order for Catalina base is
catalina.base system property falling back to the value for
Catalina home. (markt)

52092: JULI now uses the OneLineFormatter and
AsyncFileHandler by default. (markt)

52558: Refactor CometConnectionManagerValve so
that it does not prevent the session from being serialized in when
running in a cluster. (markt)

Make the Mapper type-safe. Hosts, Contexts and Wrappers are no
longer handled as plain objects, instead they keep their type.
Code using the Mapper doesn't need to cast objects returned by
the mapper. (rjung)

Move Manager, Loader and Resources from Container to Context since
Context is the only place they are used. The documentation already
states (and has done for some time) that Context is the only valid
location for these nested components. (markt)

Move the Mapper from the Connector to the Service since the Mapper is
identical for all Connectors of a given Service and it is common for
there to be multiple Connectors for a Service (http, https and ajp).
This means there is now only ever one Mapper per Service rather than
possibly multiple identically configured Mapper objects. (markt)

Remove the per Context Mapper objects and use the Mapper from the
Service. This removes the need to maintain two copies of the mappings
for Servlets and Filters. (markt)

Implement a new Resources implementation that merges Aliases,
VirtualLoader, VirtualDirContext, JAR resources and external
repositories into a single framework rather than a separate one for each
feature. (markt)

54095: Add support to the Default Servlet for serving
gzipped versions of static resources directly from disk as an
alternative to Tomcat compressing them on each request. Patch by
Philippe Marschall. (markt)

54708: Change the name of the working directory for the ROOT
application (located under $CATALINA_BASE/work by default) from _ to
ROOT. (markt)

Change default configuration so that a change to the global web.xml file
will trigger a reload of all web applications. (markt)

Initialize the JSP runtime in Jasper's initializer to avoid need for a
Jasper-specific lifecycle listener. JasperListener has been
removed. (jboynes)

Change ordering of elements of JMX objects names so components are
grouped more logically in JConsole. Generally, components are now
grouped by Host and then by Context. (markt)

Context listener to allow better EE and framework integration. (remm)

57896: Support defensive copying of "cookie" header so that
unescaping double quotes in a cookie value does not corrupt original
value of "cookie" header. This is an opt-in feature, enabled by
org.apache.tomcat.util.http.ServerCookie.PRESERVE_COOKIE_HEADER
system property. (remm/kkolinko)

Coyote

Experimental support for SPDY. Includes contributions from Sheldon Shao.
(costin)

The default connector is now the Java NIO connector even when specifying
HTTP/1.1 as protocol (fhanik)

Update default value of pollerThreadCount for the NIO connector. The new
default value will never go above 2 regardless of available processors.
(fhanik)

54010: Remove some unnecessary code (duplicate calls to
configure the scheme as https for AJP requests originally received over
HTTPS). (markt)

Refactor char encoding/decoding using NIO APIs. (remm)

Change the default URIEncoding for all connectors from ISO-8859-1 to
UTF-8. (markt)

Jasper

Simplify API of ErrorDispatcher class by using varargs.
(kkolinko)

Update Jasper to use the new common web.xml parsing code. Includes
patches by Jeremy Boynes. (markt/violetagg)

Create test cases for JspC. Patch by Jeremy Boynes. (markt)

55246: TLD scanning is now performed by JasperInitializer
(a ServletContainerInitializer) removing the need for support within the
Servlet container itself. The scan is now performed only once rather than
in two passes reducing startup time. (jboynes)

55251: Do not allow JspC task to fail silently if the web.xml
or web.xml fragment can not be generated. (markt)

55166: Move the JSP descriptor and tag library descriptor
schema definition files from jsp-api.jar to servlet-api.jar so relative
includes between the J2EE, Servlet and JSP schemas are correctly
resolved. (markt)

55372: When starting Tomcat with the jpda option
to enable remote debugging, by default only listen on localhost for
connections from a debugger. Prior to this change, Tomcat listened on
all known addresses. (markt)