54851: When scanning for web fragments, directories without
any web-fragment.xml should not impact the status of distributable
element. Patch provided by Trask Stalnaker. (violetagg)

When an error occurs during the sending of a WebSocket message, notify
the Inbound side (where all the events occur that the application reacts
to) that an error has occurred and that the connection is being closed.
(markt)

54906: Better error message if a
ConcurrentModificationException occurs while checking for
memory leaks when a web application stops. Also ensure that the
exception does not cause remaining checks to be skipped. Based on a
patch by NateC.

54690: Fix a regression caused by the previous fix for
54406. If no values are specified for sslEnabledProtocols or
ciphers use the default values for server sockets rather than the
default values for client sockets. (markt)

52318: Version for imported package
org.apache.juli.logging is extended to include also 7.0.x
versions. The fix is applicable only when running in OSGi environment.
Patch provided by Martin Lichtin. (violetagg)

54599: Do not print connection password in
PoolProperties.toString(). Based on a patch by
Daniel Mikusa. (kkolinko)

54684: Add javax.naming.spi to
Import-Package header in MANIFEST.MF in order to resolve
ClassNotFoundException when running in OSGi environment.
(violetagg)

Ensure that the request start time (used by the access log valve to
calculate request processing time) is correctly recorded for the HTTP
NIO connector. In some cases the request processing time may have been
longer than that recorded. (markt)

Add one more library from JDK 7 to the value of jarsToSkip
property in the catalina.properties file. (kkolinko)

53871: If annotation scanning results in a
StackOverflowError due to broken class dependencies, add
the class hierarchy that triggered the exception to the error message.
(markt)

Add a new option to the standard JarScanner implementation
(scanBootstrapClassPath) to control if the bootstrap
classpath is scanned or not. By default, it will not be scanned. (markt)

54584: Take account of the delegate attribute when building
the web application class path to pass to the JSP compiler. (markt)

Copy the updated and re-packaged UTF-8 decoder from Tomcat 8.0.x and use
this improved decoder for WebSocket connections. Remove the WebSocket
specific UTF-8 decoder. (markt)

54602: Recycle the byte to character converter used for URIs
between requests to ensure an error in one request does not trigger a
failure in the next request. (markt)

Use the newly added improved UTF-8 decoder for decoding UTF-8 encoded
URIs and UTF-8 encoded request bodies. Invalid UTF-8 URIs will not
cause an error but will make use of the replacement character when an
error is detected. This will allow web applications to handle the URI
which will most likely result in a 404 response. The fall-back to
decoding with ISO-8859-1 if UTF-8 decoding fails has been removed.
Invalid UTF-8 sequences in a request body will trigger an IOException.
The way the decoder is used has also been improved. The notable change
is that invalid sequences at the end of the input now trigger an error
rather than being silently swallowed. (markt)

54624: Ensure that the correct request body length is used
when swallowing a request body after FORM authentication prior to
restoring the original request preventing possible hanging when
restoring POST requests submitted over AJP. (markt)

54628: When writing binary WebSocket messages write from
start position in array rather than the start of the array. Patch
provided by blee. (markt)

54450: Correctly handle resource injection when part of the
servlet properties uses @Resource and the other uses
injection-target. Patch provided by Violeta Georgieva.
(markt)

54458: Include exception when logging errors in the
DataSourceRealm. Patch provided by Violeta Georgieva. (markt)

54483: Correct one of the Spanish translations. Based on a
suggestion from adinamita. (markt)

Prevent the SSO deregister when web application is stopped or reloaded.
When StandardManager(pathname="") or DeltaManager stops normally, all
sessions in the context are expired.
In this case, because most sessions is not time-out, SSO deregister was
triggered. (kfujino)

Include the exception in the log message if the parsing of the
context.xml file fails. (markt/kkolinko)

54497: Make memory leak detection code more robust so a
failure in the leak detection code does not prevent the Context from
stopping unless the error is fatal to the JVM. (markt)

54507: Do not start the background thread that is used for
expiring sessions (amongst other things) until the web application is
fully started. Stop the background thread as soon as the web application
is stopped. (markt)

Allow WebSocket Ping/Pong messages to be sent between fragments of a
fragmented message. (markt)

54612: Check if the socket is closed before trying to write a
WebSocket message to it. Also, flush any partial buffered data before
closing the socket. (markt)

54406: Fix NIO HTTPS connector to prune specified
ciphers and sslEnableProtocols options to those
supported by the SSL implementation, sharing logic with the BIO
connector. Modified ciphers and sslEnabledProtocols option pruning to
not silently revert to JVM defaults when none of the options specified
are supported - new behaviour is to warn and explicitly enable no
options. (timw)

Align NIO HTTP connector with other HTTP connectors and include leading
blank lines when determining the size of the HTTP headers. (markt)

53869: Performance improvement for pages with lots of heavily
nested tags. Retain a reference to the root JSP context rather than
traversing the hierarchy on every call. Based on a patch suggested by
Sheldon Shao. (markt)

54440: Correct a regression caused by the changes for
54240 that broke compilation of JSPs with JspC. Patch
provided by Sheldon Shao. (markt)

54466: Improve error message by including the name of the
file when the java file generated from a tag file cannot be compiled.
Based on a patch by Sheldon Shao. (markt)

54247: Prevent ClassNotFoundExceptions on stop
when running as a service. (markt)

54249: Ensure resource properties are available when the
context path contains encoded characters such as a space. This triggered
compilation issues in Jasper. Patch provided by Polina Genova. (markt)

54256: Improve error reporting when a JAR file fails
extension validation by including the name of the JAR file in the
exception. (markt)

Allow web applications to be stopped cleanly even if filters throw
exceptions when their destroy() method is called. (markt/kkolinko)

Fix memory leak of servlet instances when running with a
SecurityManager and either init() or destroy() methods fail
or the servlet is a SingleThreadModel one. (kkolinko)

Cleanup method cache lookup code in SecurityUtil class.
(kkolinko)

Make the Tomcat 7 non-JSR356 WebSocket implementation non-blocking
(where supported by the connector) between the HTTP upgrade and the
first WebSocket message from the client to the server. (markt)

54262: Ensure that an empty
<absolute-ordering /> element in the main web.xml
file disables scanning for web fragments. Based on a patch by Violeta
Georgieva. (markt)

54284: As per clarification from the Servlet EG, anonymous
Filters and Servlets are not permitted. Patch by Violeta Georgieva.
(markt)

54371: Prevent exceptions when processing web fragments for
unexpanded WAR files when the context path contains characters that
need to be encoded in URLs such as spaces. Based on a patch by Polina
Genova. (markt)

54240: Add support for auto-detection and configuration of
JARs on the classpath that provide tag plug-in implementations. Based on
a patch by Sheldon Shao. (markt)

54241: Revert the fix for 35410 as it was not
compliant with the JSP specification, specifically that
<%= obj %> must be translated to
out.print(obj) which in turn becomes
out.write(String.valueOf(obj)). This will trigger a
NullPointerException if obj.toString() returns
null. The fix for 35410 incorrectly suppressed
the NullPointerException in this case. (markt)

54007: Fix a memory leak that prevented deletion of a
context.xml file associated with a Context that had failed to deploy.
Also fix the problems uncovered with undeploying such a Context once the
leak had been fixed and the file could be deleted. (markt)

54044: Correct bug in timestamp cache used by logging
(including the access log valve) that meant entries could be made with
an earlier timestamp than the true timestamp. (markt)

54054: Do not share shell environment variables between
multiple instances of the CGI servlet. (markt)

54060: Use a simple parser rather than a regular expression
to parse HTTP Digest authentication headers so the header is correctly
parsed. The new approach is also faster and generates less garbage.
(markt)

The HTTP header parser added to address 52811 has been
removed and replaced with the light-weight HTTP header parser created to
address 54060. The new parser includes a work-around for a
bug in the Adobe Acrobat Reader 9.x plug-in for Microsoft Internet
Explorer that was identified when the old parser was introduced
(53814).

54076: Add an alternative work-around for clients that use
SPNEGO authentication and expect the authenticated user to be cached
per connection (Tomcat only does this if an HTTP session is available).
(markt)

Correct an issue that prevented WebSockets from being used over SSL when
using the HTTP NIO connector. (markt)

54022: Ensure the Comet END event is triggered on client
disconnect with APR/native on Windows Vista/2k8 or later. Patch provided
by Douglas Beachy. (markt)

54067: Ensure responses with 1xx response codes are correctly
marked as not containing an entity body. This caused an issue for some
WebSocket clients when an Transfer-Encoding header was sent with the
101 (HTTP upgrade) response. (markt)

53867: Optimise the XML escaping provided by the PageContext
implementation. Based on a patch by Sheldon Shao. (markt)

53896: Use an optimised CompositeELResolver for Jasper that
skips resolvers that are known to be unable to resolve the value. Patch
by Jarek Gawor. (markt)

53986: Correct a regression introduced by the fix for
53713. JSP comments that ended with the sequence ---%> (or
any similar sequence with a odd number of - characters) was not
correctly parsed. (markt)

54011: Fix a bug in the tag plug-in for
<c:out> that triggered a JSP compilation error if the
escapeXml attribute was used. Patch provided by Sheldon
Shao. (markt)

Follow up to 54011. Simplify generated code for
<c:out>. Based on a patch by Sheldon Shao. (markt)

54012: Fix a bug in the tag plug-in infrastructure that meant
the <c:set> triggered a JSP compilation error when
used in a tag file. Based on a patch provided by Sheldon Shao. (markt)

53843: request.isAsyncStarted() must continue to
return true until the dispatch actually happens (which at the earliest
isn't until the thread where startAsync() was called
returns to the container). (markt)

53863: Ensure the the implicit servlets (JSP and default) are
marked as override-able when using embedded mode. (markt)

When the DefaultServlet is under heavy load, the HTTP
header parser added to address 52811 generates large amounts
of garbage and uses significant CPU time. A cache has been added that
significantly reduces the overhead of this parser. (markt)

53854: Make directory listings work correctly when aliases
are used. (markt)

Improve the documentation web application to clarify the difference
between the tag and version parameters when using text interface of the
Manager web application. (markt)

Make sessions saved in the Store associated with a
Manager that extends PersistentManager
optionally visible (via the showProxySessions Servlet initialisation
parameter in web.xml) to the Manager web application. (markt)

53071: This additional fix for this issue improves the
formatting of Jasper errors (or any exceptions that use a multi-line
message) with the ErrorReportValve. (markt)

53469: If a URL passed to
javax.servlet.http.HttpServletResponse.encodeURL() cannot
be made absolute, never encode it and return it unchanged. Previously,
the fix for 53062 meant than an
IllegalArgumentException was thrown. (markt)

53481: Added support for SSLHonorCipherOrder to allow
the server to impose its cipher order on the client. Based on a patch
provided by Marcel Šebek. This feature requires
Tomcat Native 1.1.25 or later. (schultz)

53498: Fix atomicity bugs in use of concurrent collections.
Based on a patch by Yu Lin. (markt)

Correct a regression in the previous fix for 53062 that did
not always correctly normalize redirect URLs when the redirect URL
included a query string or fragment component. (markt)

53574: Ensure Servlets defined using jsp-file are available
when metadata-complete is true. (markt)

53584: Ignore path parameters when comparing URIs for FORM
authentication. This prevents users being prompted twice for passwords
when logging in when session IDs are being encoded as path parameters.
(markt)

53623: When performing a asynchronous dispatch after series
of forwards, ensure that the request properties are correct for the
request at each stage. (markt)

53624: Ensure that
HttpServletResponse.sendRedirect() works when called after
a dispatch from an AsyncContext. (markt)

53641: Correct name of HTTP header used in WebSocket
handshake for listing the preferred protocols. (markt)

Document the constants that were added to the
RequestDispatcher interface in Servlet 3.0. (kkolinko)

Ensure custom error pages are not truncated if the page that triggered
the error set a content length header. (markt)

53677: Ensure that a 500 response rather than no response is
returned if the HTTP headers exceed the size limit. (markt)

Always make the resulting web.xml available even if metadata-complete is
true. (markt)

53714: Provide separate system properties to control which
JARs are excluded from which scans when using the JarScanner. This
allows JARs to be excluded from all scans or only from TLD scanning
and/or Servlet 3.0 pluggability scanning. (markt)

Add several JDK libraries to the value of jarsToSkip
property in the catalina.properties file. (markt, kkolinko)

Improvements to DIGEST authenticator including the disabling caching of
authenticated user in session by default, tracking server rather than
client nonces and better handling of stale nonce values. (markt)

53801: Overlapping URL patterns were sometimes merged
incorrectly in security constraints leading to incorrect 401 responses.
Note: it was possible for access to be denied when it should have been
granted but it was not possible for access to be granted when it should
have been denied. (markt)

53697: Correct a regression in the fix for 51881
that mean that in some circumstances the comet flag was not
reset on HttpAprProcessor instances. This caused problems
when the Processor was re-used for a new connection that would trigger a
NullPointerException and could result in a JVM crash.
(markt)

Fix an issue when running under Java 7 which throws exceptions when
trying to set an invalid option whereas Java 6 silently swallowed them.
The option using the problem was soTrafficClass.
Investigations showed that this option had no effect for Cluster Channel
Receivers so it was removed. (markt)

Add support for searching for roles in JNDI/LDAP
using another value than the actual DN or username specified.
Rather it will use a value from the users directory entry.
The new attribute introduced to the JNDIRealm is userRoleAttribute
(fhanik)

Fix checking of recommended tcnative library version when using the APR
connector. (rjung)

52135: Add support for a default error page to be defined in
web.xml by defining an error page with just a nested location element.
It appears this feature was intended to be included in the Servlet 3.0
specification but was accidently left out. (markt)

53450: Correct regression in fix for 52999 that
could easily trigger a deadlock when deploying a ROOT web application.
(markt)

As per section 1.6.2 of the Servlet 3.0 specification and clarification
from the Servlet Expert Group, the servlet specification version
declared in web.xml no longer controls if Tomcat scans for annotations.
Annotation scanning is now always performed - regardless of the version
declared in web.xml - unless metadata complete is set to true. (markt)

53619: As per clarification from the Servlet Expert Group,
JARs will always be scanned for ServletContainerInitializers regardless
of the setting of metadata complete. However, if an absolute ordering is
specified and a JAR is excluded from that ordering it will not be
scanned for ServletContainerInitializers nor will it be scanned for
matches to any HandleTypes annotations. (markt)

53465: Populate mapped-name property for resources defined in
web.xml. Based on a patch by Violeta Georgieva. (markt)

Make the request available when establishing a WebSocket connection.
(markt)

53467: Correct a regression in the fix for 53257
that introduced problems for JSPs that used characters that must be
encoded if used in a URI. (markt)

53024: Fix context reloading so requests received during the
reload are paused and processed when reloading completes rather than
receiving 404 responses. (markt)

Improve the handling of watched resources so that changes trigger a
reload rather than a stop followed by a start which allows requests
received to be paused and processed when reloading completes rather than
receiving 404 responses. (markt)

Remove potential bottleneck on creation of new WebSocket connections.
(markt)

53047: If a JDBC Realm or DataSource Realm is configured for
an all roles mode that only requires authorization (and no roles) and no
role table or column is defined, don't populate the Principal's roles.
(markt)

53056: Add APR version number to tcnative version INFO log
message. (schultz)

53062: When constructing absolute URLs for redirects from
relative URLs ensure that the resulting URLs are normalized. (markt)

53067: Ensure the WebSocket Servlet continues to work when
requests are wrapped. (markt)

Enable host's xmlBase attribute in ContextConfig. (kfujino)

53071: Use the message from the throwable (if there is one)
when generating the report in the ErrorReportValve and no
message has been specified via sendError(). (markt)

53074: Switch to an infinite socket timeout by default for
WebSocket connections. (markt)

53081: Do not always cache resources loaded by the web
application class loader since they may be very large which in turn
could trigger a memory leak. Calls to the web application class
loader's getResourceAsStream() method will now access
the resource directly rather than via the cache in most cases. (markt)

53225: Fix an IllegalStateException due to the JAR file being
closed when accessing static resources in a JAR file when
urlCacheProtection="false" in the
JreMemoryLeakPreventionListener. (markt)

53230: Changed ManagerBase to throw
TooManyActiveSessionsException instead of IllegalStateException
when the maximum number of sessions has been exceeded and a new
session will not be created. (schultz)

53257: Ensure that resources, including JSP files, that have
names that include characters with special meanings in URLs (such as
ampersand, semicolon, plus, hash and percent) are correctly handled.
This bug is partially a regression caused by the original fix for
51584 and partially an existing issue that had not previously
been identified. This fix reverts the original fix for 51584,
correctly fixes that issue and fixes the additional issues identified by
the test cases that were also added as part of this fix.
(markt/kkolinko)

53266: If a class specified in a @HandlesTypes
annotation on a ServletContainerInitializer is missing
log a more helpful message and do not prevent the web application from
starting. (markt)

53267: Ensure that using the GC Daemon Protection feature of
the JreMemoryLeakPreventionListener does not trigger a
full GC every hour. (markt)

53285: Do not require security-role-ref elements
to contain a role-link element. (markt)

53322: When processing resource injection, correctly infer
property name from its setter method if the name starts with several
uppercase characters. (kkolinko)

53333: When processing JNDI resources, take account of the
types of any specified injection targets to ensure that the resource
definition and the injection target types are consistent. Based on a
patch provided by Violeta Georgieva. (markt)

53337: Forwarding via a RequestDispatcher to an
asynchronous Servlet always failed. Includes a test case based on code
by Rossen Stoyanchev. (markt)

52055: Additional fix required to ensure that
InputFilters are recycled between requests. (markt)

53061: Fix a problem in the NIO connector whereby if the
poller was under low but consistent load (>1 request/per second and
always less than 1 second between requests) timeouts never took place.
(markt)

53063: When using an Executor with BIO, use the
executor's maxThreads as the default for maxConnections. (markt)

53119: Prevent buffer overflow errors being reported when a
client disconnects before the response has been fully written from an
AJP connection using the APR/native connector. (markt)

53169: Allow developers to avoid chunked encoding for a
response of unknown length by setting the Connection: close
header. Based on a patch suggested by Philippe Marschall. (markt)

When a connection is reconnected due to failed validation
make sure the ConnectionState is reset or it will assume
incorrect values (fhanik)

53374 (r1348056):
Add support for the following properties in DataSourceFactory:
commitOnReturn, rollbackOnReturn,
useDisposableConnectionFacade,
logValidationErrors and
propagateInterruptState.
Based on patch proposed by Suresh Avadhanula. (kkolinko)

Explicitly ignore empty path values in virtualClasspath
attribute of VirtualWebappLoader class. Document that
whitespace around the values is trimmed. Reformat documentation
examples to make them more readable. (kkolinko)

Further improve fix for 51197 to allow an error reporting
Valve to write a response body if sendError() is called
during an asynchronous request on a container thread. (markt)

Correct fix for 51741 (r1307600):
If VirtualDirContext class is configured with non-empty
value of extraResourcePaths option (a feature added
in 7.0.24), do not implicitly set allowLinking option to
the value of true. If it is really needed, it should be
set explicitly. (kkolinko)

52846: Make sure NonLoginAuthenticator registers not
MemoryUser but GenericPrincipal into a session when UserDatabaseRealm
is used. (kfujino)

52850: Extend memory leak prevention and detection code to
work with IBM as well as Oracle JVMs. Extend unit tests to check direct
and indirect ThreadLocal memory leak detection. Based on a patch
provided by Rohit Kelapure. (markt)

Add support for the WebSocket protocol (RFC6455). Both streaming and
message based APIs are provided and the implementation currently fully
passes the Autobahn test suite. Also included are several examples.
A significant contribution to this new functionality was provided by
Johno Crawford — particularly the examples. Contributions were
also provided by Petr Praus, Jonathan Drake & Slávka. (markt)

When stopping a Context, ensure that any Servlets registered with JMX
are unregistered. (markt)

Make the implementation of Catalina.getParentClassLoader
consistent with similar methods across the code base and have it return
the system class loader if no parent class loader is set. (markt)

52953: Ensure users can authenticate when using DIGEST
authentication with digested passwords if the digested password is
stored using upper case hexadecimal characters since DIGEST
authentication expects digests to use lower case characters. Based on a
patch provided by Neale Rudd. (markt)

52957: Ensure that a Valve implements Lifecycle before
calling any Lifecycle methods on that Valve. (markt)

Correctly register NIO sockets with poller after processing Comet events
to ensure that no read events are missed. This fixes an intermittent
issue observed in the unit tests. (fhanik/markt)

52770: Fix a bug in the highly unlikely circumstance that
an infinite timeout was specified for writing data to a client when
using NIO. (markt)

52858: Fix high CPU load with SSL, NIO and sendfile when
client breaks the connection before reading all the requested data.
(markt)

52926: Avoid NPE when an NIO Comet connection times out on
one thread at the same time as it is closed on another thread. (markt)

Include port number when known in connector name when logging messages
from connectors that use automatic free port allocation. (markt)

Don't try an unlock the acceptor thread if it is not locked. This is
unlikely to impact normal usage but it does fix some unit test issues.
(markt)

When using the APR connector ensure that any connections in a keep-alive
state are closed when the connector is stopped rather than when the
connector is destroyed. This is important when stop() followed by
start() is called on the connector. (markt)

52842: Exception in MBeanDumper when dumping MBean for
StandardThreadExecutor. (rjung)

Bring built-in mime types for embedded Tomcat more in line with the
ones defined in the default web.xml configuration file. (rjung)

Add support to the JMXProxyServlet which is part of the Manager
application for fetching a specific key from a
CompositeData value. Updated documentation, so that
the entire 'get' command for the JMX proxy servlet is documented,
including the new optional 'key' parameter. (schultz/markt)

52607: Ensure that the extension validator checks the JARs in
the shared and common class loaders for extensions. (markt)

Correct a threading issue in the generation of the list of standard
authenticators during Context initialization that could lead to a web
application failing to start if Contexts were started in parallel.
(markt)

52669: Correct regression that broke annotation processing in
/WEB-INF/classes for web applications deployed as WARs,
packageless classes and some embedding scenarios. The regression was
introduced by the invalid assumptions made in the fix for
51741. (markt)

52474: Ensure that leading and trailing white space is
removed from listener class names when parsing TLD files. (markt)

52480: When converting class path entries from URLs to
files/directories, ensure that any URL encoded characters are converted.
Fixes JSP compilation with javac when Tomcat is installed at a path that
includes spaces. (markt)

52666: Correct coercion order in EL when processing the
equality and inequality operators. (markt)

When building a Windows installer do not copy whole "res" folder to
output/dist, but only the files that we need. Apply fixcrlf filter
only after the files are copied, so that INSTALLLICENSE
file had correct line ends. (kkolinko)

Remove res/License.rtf. The file that is actually shown
by the Windows installer is res/INSTALLLICENSE.
(kkolinko)

Automate the OpenPGP signature generation for the release process.
(markt)

Don't exclude directories named target from the build process.
(rjung)

52184: Provide greater control over the logging of errors
triggered by invalid input data (i.e. data over which Tomcat has no
control). (markt/kkolinko)

52225: Fix ClassCastException in an Alias added to
existing host through JMX. (kkolinko)

Do not throw IllegalArgumentException from parseParameters() call
when chunked POST request is too large, but treat it like an IO error.
The FailedRequestFilter filter can be used to detect this
condition. (kkolinko)

52328: Improve performance when large numbers of single
characters and/or small strings are written to the response via a
Writer. (markt)

52384: Do not fail with parameter parsing when debug logging
is enabled. (kkolinko)

Do not flag extra '&' characters in parameters as parse errors.
(kkolinko)

Reduce log level for the message about hitting
maxParameterCount limit from WARN to INFO. (kkolinko)

52387: Ensure that the correct host is used when configuring
logging when Tomcat is embedded. Patch provided by David Calavera.
(markt)

52405: Align the Servlet 3.0 implementation with the changes
defined in the first maintenance release (also know as Rev. A). See the
JCP documentation for a detailed list of changes. (markt)

Improve JMX names for objects related to Connectors that have the
address attribute set. (markt)

Remove some stale attributes from MBeans. (rjung)

Move destruction of ContainerBase objects to
ContainerBase to ensure that they are destroyed. (markt)

52443: Change the behaviour of the default Realm in the
embedded use case so it is set once on the Engine rather than on every
Context thereby avoiding the Lifecycle issues with having the same Realm
set on multiple Contexts. (markt)

Provide a new Realm implementation, the NullRealm, that does not contain
any users and is used as the default Realm implementation (rather than
the JAAS Realm which was used prior to this change) if no Realm is
specified. (markt)

52461: Don't assume file based URLs when checking last
modified times for global and host level web.xml files. Patch provided
by violetagg. (markt)

Add test cases for the BASIC and NonLogin Authenticators when not using
SSO. Patch provided by Brian Burch. (markt)

52450: Add setter for entityResolver in ParserUtils.
This is mainly useful when jasper and dtds are in different
class loaders. (mturk)

52321: Ensure that the order of multiple prelude/coda values
for JSP pages is respected. (markt)

52335: Only handle <\% and not
\% as escaped in template text. (markt)

52440: Ensure that when using
ValueExpression.getValueReference() if the expression is an
EL variable that the value returned is the ValueReference
for the ValueExpression associated with the EL variable.
(markt)

46264: Add the ability to start and stop containers
(primarily Contexts) using a thread pool rather than a single thread.
This can significantly improve start and stop time. Based on patches
by Joe Kislo and Felix Schumacher. (markt)

50570: Enable FIPS mode to be set in AprLifecycleListener.
Based upon a patch from Chris Beckey. (schultz/kkolinko)

51744: Throw the correct exception if an application attempts
to modify the associated JNDI context. (markt)

51744: Add an option to the StandardContext that allows
exception throwing when an application attempts to modify the associated
JNDI context to be disabled. (markt)

51910: Prevent NPE on connector stop if Comet applications
are being used without the CometConnectionManagerValve. (markt)

51940: Do not limit saving of request bodies during FORM
authentication to POST requests since any HTTP method may include a
request body. Based on a patch by Nicholas Sushkin. (markt/kkolinko)

51952: Make the inclusion of a response body with a redirect
response introduced to address 41718 optional and disabled by
default due to the side-effects of including a body with the response in
this case. (markt)

Correct a regression in the fix for 49779 that
parameters POSTed by an unauthenticated user to a page that required
FORM authentication were lost during the authentication process.
(markt)

52055: Ensure that the input and output buffers are correctly
reset between keep-alive requests when using Servlet 3.0 asynchronous
request processing. (markt)

Ensure changes to the configuration of the RemoteHostValve and the
RemoteAddrValve via JMX are thread-safe. (markt)

Ensure the the memory leak protection for the HttpClient keep-alive
always operates even if the thread has already stopped. (markt)

Remove the Java 1.2 specific error handling around the adding of the
shutdown hook. (markt)

Correct errors in i18n resources and resource usage that meant some
messages were either not used or were incorrectly formatted. (markt)

Replace the use of deprecated auth method names from
authenticator.Constants with the auth method names from
HttpServletRequest. (kkolinko)

Make configuration issues for security related Valves and Filters result
in the failure of the valve or filter rather than just a warning
message. (markt)

Improve performance of parameter processing for GET and POST requests.
Also add an option to limit the maximum number of parameters processed
per request. This defaults to 10000. Excessive parameters are ignored.
Note that FailedRequestFilter can be used to reject the
request if some parameters were ignored. (markt/kkolinko)

New filter FailedRequestFilter that will reject a request
if there were errors during HTTP parameter parsing. (kkolinko)

Improve special attributes handling in Request object by using hash
table lookup instead of series of string comparisons. (kkolinko)

Deprecate unused methods in IntrospectionUtils class.
(kkolinko)

Improve processing of errors that are wrapped in
InvocationTargetException. Rethrow fatal errors that must
be rethrown. (kkolinko)

Improve handling of failed web application deployments during automatic
deployment. Once deployment of a web application fails in one form (e.g.
WAR), no further attempt (e.g. directory) will be made to deploy that
web application. The base Lifecycle implementation has been improved to
allow failed web applications to be started once the configuration
issues have been resolved. Any changes to a context.xml file (global,
per host or web application specific) will now result in a redeploy
of the affected web application(s) that ensures that any changes are
correctly applied rather than a reload which ignores changes in
context.xml files. (markt/kkolinko)

52173: Improve Javadoc for delegate attribute
of WebappClassLoader. Based on a patch by bmargulies. (markt)

Avoid an unnecessary session ID change notice.
Notice of changed session ID by JvmRouteBinderValve is unnecessary to
BackupManager. In BackupManager, change of session ID is replicated by
the call of a setId() method. (kfujino)

Work around a
known JVM bug that is fixed in 1.7.0_01 but still present in
1.6.0_29 and was triggering intermittent unit test failures for
org.apache.catalina.tribes.group.
TestGroupChannelMemberArrival.testMemberArrival.
The bug affects any components that use NIO although it was more likely
to be observed in the clustering module than the HTTP or AJP NIO
connector. (markt)

When Context manager does not exist, no context manager message is
replied in order to avoid timeout (default 60sec) of
GET_ALL_SESSIONS sync phase. (kfujino)

52015: In jdbc-pool: JdbcInterceptor passes not 'this' but
'proxy' to getNext().invoke. (kfujino)

In jdbc-pool: Improve handling of Errors that originate from methods
invoked through reflection. In TrapException interceptor:
rethrow Error as is, without wrapping it in a RuntimeException.
(kkolinko)

In jdbc-pool: Unwrap InvocationTargetException if it is caught in
ResultSetProxy, like we do it elsewhere. (kkolinko)

When building jdbc-pool from within Tomcat, use Tomcat's
output directory location. This allows to move all build
output away from the source tree. (kkolinko)

51550: An additional change that ensures any exceptions
thrown by an Authenticator (or any other Valve configured for the
Context) will be handled by the custom error pages for the Context if an
appropriate error page is configured. (markt)

51580: Added a nicer error message when a WAR file contains
filenames not properly encoded in UTF-8. (schultz)

51687: Added (optional) protection against
sun.java2d.Disposer thread pinning a WebappClassLoader into memory
in the JreMemoryLeakPreventionListener. (schultz)

51741: Fixes a problem with Eclipse WTP "Serve modules
without publishing" feature where applications failed to access
resources when using getResource() on the classloader. (slaurent)

51744: Prevent application code from closing the associated
JNDI context while the application is running. (markt)

Correct a regression with the fix for 51653 that broke custom
error pages for 4xx responses from the Authenticators. Error handling
and request listeners are now handled in the StandardHostValve to ensure
they wrap all Context level activity. (markt)

51758: The digester (used for processing XML files) used the
logger name org.apache.commons.digester.Digester rather
than the expected org.apache.tomcat.util.digester.Digester.
The digester has been changed to use the expected logger name.
(markt/kkolinko)

51774: Fix incorrect cached method signature that prevented
session tracking modes from being defined in web.xml when running under
a security manager. (markt)

Add an annotation cache to the DefaultInstanceManager that
improves performance for applications that make use of a lot of
non-poolable objects (e.g. tag files) that need to be scanned for
annotations when created. (markt)

Use the specification compliant request attribute of
javax.servlet.request.ssl_session_id to access the SSL
session ID and deprecated the Tomcat specific request attribute. (markt)

Allow to overwrite the check for distributability
of session attributes by session implementations. (rjung)

Add Java 7 sunec.jar and zipfs.jar to the list of JARs
to skip when scanning for TLDs and web fragments. (rjung)

51862: Added a classesToInitialize attribute to
JreMemoryLeakPreventionListener to allow pre-loading of configurable
classes to avoid some classloader leaks. (slaurent)

Reduce visibility of static field ManagerBase.name and
make it final. (kkolinko)

51872: Ensure that the access log always uses the correct
value for the remote IP address associated with the request and that
requests with multiple errors do not result in multiple entries in
the access log. (markt)

Fix a timing issue in NIO connector that meant that stopping a connector
did not trigger a Comet END event if the associated processor was
processing a READ event when the connector was stopped. (markt)

When unloading JSPs due to configuration of the
maxLoadedJsps initialisation parameter, the unloading code
was retaining a reference to the to the unloaded JSP preventing the
associated class from being unloaded until the JSP that replaced it was
itself unloaded. (markt)

51852: Correct two problems in the handling of varargs
methods with the BeanELResolver. The first meant the wrong method was
sometimes called and the second that an ArrayIndexOutOfBoundsExceptions
could be thrown. Patch (including a test case) provided by Matt Benson.
(markt)

Update the "test" target in the default build file to report a test
failure only after all available connector variants (bio, nio, apr)
have been tested. Do not stop after first connector that fails.
(kkolinko)

51887: When running the unit tests, use a fast but insecure
random number source for session ID generation to reduce the delays
caused by waiting for entropy. (kkolinko/markt)

Code clean-up to further reduce the number of warnings reported by
Eclipse, FindBugs and CheckStyle. (markt/kkolinko)

51653: Move application level error page handling from the
Host to the Context. This ensures that application error page handling
is completed before the requestDestroyed event of any
ServletRequestListener is fired. (markt)

Corrected missing comma in the value of jarsToSkip
property in conf/catalina.properties file, which
caused tomcat-jdbc.jar and commons-beanutils*.jar to be not
ignored when scanning jars for tag libraries. (kkolinko)

41709: Provide exception messages where no message is
provided currently for IllegalStateExcpetions triggered by calling
HttpServletResponse methods when the reponse is committed. (markt)

51509: Fix potential concurrency issue in CSRF prevention
filter that may lead to some requests failing that should not. (markt)

51518: Correct error in web.xml parsing rules for the
<others/> tag when using absolute ordering. (markt)

Move the SetCharacterEncoding filter from the examples web application
to the org.apache.catalina.filters package so it is
available for all web applications. (markt)

51550: Internal errors in Tomcat components that process
requests before they are passed to a web application, such as
Authenticators, now return a 500 response rather than a 200 response.
(markt)

51555: Allow destroy() to be called on Lifecycle components
that are in the initialized state. (markt)

Add x-threadname pattern format token to ExtendedAccessLogValve to log
the current request thread name. Based on a patch from Felix Schumacher.
(timw)

51584: Ensure file paths are encoded/decoded when translated
to/from URLs when working with resources from a Context so special
characters don't cause issues. (markt)

41498: Add the allRolesMode attribute to the Realm
configuration page in the documentation web application. (markt)

48997: Fixed some typos and correct cross-referencing to the
HTTP Connector documentation with the SSL How-To page of the
documentation web application. (markt)

49122: Improvements and fixes for index page for ROOT web
application. Based on a patch provided by pidster. (markt)

51516: Correct documentation web application to show correct
system property name for changing the name of the SSO session cookie.
(markt)

Configure the Manager and Host Manager web applications with the Set
Character Encoding Filter to make the default request character encoding
UTF-8 to improve i18n support. Note that best results will be obtained
if the connector is also configured with
URIEncoding="UTF-8".(markt)

Update the documentation web application to be even more explicit about
the implications of setting the path attribute on a Context element in
server.xml. (markt)

51561: Update the Realm page within the documentation web
application to recommend the use of digest.[bat|sh] to generate digests
rather than calling RealmBase directly. (markt)

51567: Update the class loading page of the documentation
web application to include information on the search order for the
common class loader when separate values are used for $CATALINA_HOME and
$CATALINA_BASE. (markt)

46252: Allow to specify character set to be used to write
the access log in AccessLogValve. (kkolinko)

51494: Prevent an NPE when a long running request completes
if the associated web application was destroyed while the request was
processing. (markt)

Allow choosing a locale for timestamp formatting in AccessLogValve.
(rjung)

When generating access logs for errors, log at the Context/Host level if
a Context or Host can be identified for the failed request. (markt)

Create a directory for access log or error log (in AccessLogValve and
in JULI FileHandler) automatically when it is specified as a part of
the file name, e.g. in the prefix attribute. Earlier this
happened only if it was specified with the directory
attribute. (kkolinko)

49165: Allow any time stamp formats supported by
SimpleDateFormat in AccessLogValve. Support logging begin and/or end of
request. (rjung)

50677: Allow system property variables to be used in the
values of "common.loader" and other "*.loader" properties in the
catalina.properties file. (kkolinko)

51376: When adding a Servlet via
ServletContext#addServlet(String, Servlet), the Servlet was not
initialized when the web application started and a load on startup value
was set. (markt)

51386: Correct code for processing @HandlesTypes annotations
so only types of interest are reported to a ServletContainerInitializer.
(markt)

Add the Tomcat extras, ant-junit and Java Help Jars to the list of JARs
to skip when scanning for TLDs and web fragments. (rjung)

The fix for bug 51310 caused a regression that re-introduced
bug 49957 and deleted the contents of the work directory
when Tomcat was shutdown. This fix ensures that that work directory for
an application is not deleted when Tomcat is shutdown. (markt)

Correct issues with JULI's OneLineFormatter including: correctly
re-using formatted timestamps when possible; thread-safety issues in
timestamp formatting; correcting the output of any milliseconds to
include leading zeros and formatting any parameters present.
(kkolinko/markt/rjung)

51395: Fix memory leak triggered when an application that
includes a SAXParserFactory is the first web application to be loaded.
(markt)

51396: Correctly handle jsp-file entries in web.xml when the
JSP servlet has been configured via code when embedding Tomcat. (markt)

51400: Avoid known bottleneck in JVM when converting between
Strings and bytes by always providing a Charset rather than an encoding
name. Based on a patch by Dave Engberg. (markt)

51401: Correctly initialise shared WebRuleSet instance used
by the digesters that parse web.xml and prevent incorrect warnings about
multiple occurrences of elements that are only allowed to appear once in
web.xml and web-fragment.xml. (kfujino)

Previous improvements in JAR scanning performance introduced a start-up
performance penalty for some use cases. This fix addresses those
performance penalties while retaining the original improvements. (markt)

51418: Provide more control over Context creation when
embedding Tomcat. Based on a patch by Benson Margulies. (markt/kkolinko)

Remove redundant copy of catalina.properties from o.a.c.startup.
Generate this copy for inclusion in bin and src jars during the
ant "compile" task. (rjung)

Use system properties loaded from catalina.properties via the class
path in unit tests. (rjung)

Improve JMX unit test. (rjung)

Fix IllegalStateException for JavaScript files when switching from
Writer to OutputStream. The special handling of this case in the
DefaultServlet was broken due to a MIME type change for JavaScript.
(funkman)

In launcher for embedded Tomcat: do not change catalina.home
system property if it had a value. (kkolinko)

When using Servlets that implement the SingleThreadModel interface, add
the single instance created to the pool when it is determined that a
pool of servlets is required rather than throwing it away. (markt)

Improve the message printed by TldLocationsCache and add configuration
example to the logging.properties file. (kkolinko)

33453: Recompile JSPs if last modified time of the source or
any of its dependencies changes either forwards or backwards. Note that
this introduces an incompatible change to the code generated for JSPs.
Tomcat will automatically re-compile any JSPs and tag files found in the
work directory when upgrading from 7.0.16 or earlier to 7.0.17 or later.
If you later downgrade from 7.0.17 or later to 7.0.16 or earlier, you
must empty the work directory as part of the downgrade process. (markt)

36362: Handle the case where tag file attributes (which can
use any valid XML name) have a name which is not a Java identifier.
(markt/kkolinko)

Broaden the exception handling in the EL Parser so that more failures to
parse an expression include the failed expression in the exception
message. Hopefully, this will help track down the cause of
51088. (markt)

33262: Install monitor to auto-start for current user only
rather than all users to be consistent with menu item creation. (markt)

40510: Provide an option to install shortcuts for the current
user or all users. Also ensure registry is correctly cleaned on
uninstall for 64-bit platforms. (markt)

50949: Provide the ability to specify the AJP port and
service name when installing Tomcat using the Windows installer. This
permits multiple instances of the same Tomcat version to be installed
side-by-side. (markt)

Change JAR scanning log messages where no TLDs are found to DEBUG level
and replace the multiple messages with a single INFO level message that
indicates that at least one JAR was scanned needlessly and how to obtain
more info. (markt)

27122: Remove a workaround for a very old and since fixed
Mozilla bug and change the default value of the securePagesWithPragma
attribute of the Authenticator Valves to false. These changes should
reduce the likelihood of issues when downloading files with IE. (markt)

35054: Check that a file is not specified for a Host's
appBase and log an error if it is. (markt)

51197: Fix possible dropped connection when sendError or
sendRedirect are used during async processing. (markt)

51276: Provide an abstraction for accessing content in JARs
so the most efficient method can be selected depending on the type of
URL used to identify the JAR. This improves startup time when JARs are
located in $CATALINA_BASE/lib. (markt)

51277: Improve error message if an application is deployed
with an incomplete FORM authentication configuration. (markt)

51278: Allow ServletContainerInitializers to override
settings in the global default web.xml and the host web.xml. (markt)

Provide additional configuration options for the RemoteIpValve and
RemoteIpFilter to allow greater control over the values returned by
ServletRequest#getServerPort() and ServletRequest#getLocalPort() when
Tomcat is behind a reverse proxy. (markt)

Ensure session cookie paths end in / so that session
cookies created for a context with a path of /foo do not
get returned with requests mapped to a context with a path of
/foobar. (markt)

Implement display of multiple request headers in AccessLogValve:
print not just the value of the first header, but of the all of them,
separated by commas. (kkolinko)

50306: New StuckThreadDetectionValve to detect requests that
take a long time to process, which might indicate that their processing
threads are stuck. Based on a patch provided by TomLu. (slaurent)

51038: Ensure that asynchronous requests are included in
access logs. (markt)

51042: Don't trigger session creation listeners when a
session ID is changed as part of the authentication process. (markt)

51050: Add additional common but non-standard file extension
to MIME type mappings for MPEG 4 files. Based on a patch by Cédrik Lime.
(markt)

Add some additional common JARs that do not contain TLDs or web
fragments to the list of JARs to skip when scanning for TLDs and web
fragments. (markt)

While scanning JARs for TLDs and fragments, avoid using JarFile and use
JarInputStream as in most circumstances where JARs are scanned, JarFile
will create a temporary copy of the JAR rather than using the resource
directly. This change significantly improves startup performance for
applications with lots of JARs to be scanned. (markt)

Ensure response is committed when AsyncContext#complete()
is called. (markt)

Add a container event that is fired when a session's ID is changed,
e.g. on authentication. (markt)

50158: Ensure the asynchronous requests never timeout if the
timeout is set to zero or less. Based on a patch provided by Chris.
(markt)

51073: Throw an exception and do not start the APR connector
if it is configured for SSL and an invalid value is provided for
SSLProtocol. (markt)

Align all the connector implementations with the documented default
setting for processorCache of 200. This changes the default from -1
(unlimited) for the AJP-BIO, AJP-APR and HTTP-APR connectors. Additional
information was also added to the documentation on how to select an
appropriate value.

Take account of time spent waiting for a processing thread when
calculating connection and keep-alive timeouts for the HTTP BIO
connector. (markt)

51095: Don't trigger a NullPointerException when the SSL
handshake fails with the HTTP-APR connector. Patch provided by Mike
Glazer. (markt)

Improve handling in AJP connectors of the case where too large a AJP
packet is received. (markt)

Restore the automatic disabling of HTTP keep-alive with the BIO
connector once 75% of the processing threads are in use and make the
threshold configurable. (markt)

Make pollerSize and maxConnections synonyms for the APR connectors since
they perform the same function. (markt)

Use maxThreads rather than 10000 as the default maxConnections for the
BIO connectors. (markt)

When using parallel deployment, correctly handle the scenario when the
client sends multiple JSESSIONID cookies. (markt)

12428: Add support (disabled by default) for preemptive
authentication. This can be configured per context. Based on a patch
suggested by Werner Donn. (markt)

Make the CSRF nonce cache serializable so that it can be replicated
across a cluster and/or persisted across Tomcat restarts. (markt)

Resolve some refactoring TODOs in the implementation of the new Context
attribute "swallowAbortedUploads". (markt)

Include the seed time when calculating the time taken to create
SecureRandom instances for session ID generation, report excessive times
(greater than 100ms) at INFO level and provide a value for the message
key so a meaningful message appears in the logs. (markt)

Don't register Contexts that fail to start with the Mapper. (markt)

48685: Add initial support for SPNEGO/Kerberos authentication
also referred to as integrated Windows authentication. This includes
user authentication, authorisation via the directory using the
user's delegated credentials and exposing the user's delegated
credentials via a request attribute so applications can make use of them
to impersonate the current user when accessing third-party systems that
use a compatible authentication mechanism. Based on a patch provided by
Michael Osipov. (markt)

HTTP range requests cannot be reliably served when a Writer is in use so
prevent the DefaultServlet from attempting to do so. (kkolinko)

Protect the DefaultServlet from Valves, Filters and Wrappers that write
content to the response. Prevent partial responses to partial GET
requests in this case since the range cannot be reliably determined.
Also prevent the DefaultServlet from setting a content length header
since this too cannot be reliably determined. (markt)

50929: When wrapping an exception, include the root cause.
Patch provided by sebb. (markt)

50991: Fix regression in fix for 25060 that called
close on a JNDI resource while it was still available to the
application. (markt)

Provide a configuration option that lets the close method to be used for
a JNDI Resource to be defined by the user. This change also disables
using the close method unless one is explicitly defined for the
resource and limits it to singleton resources. (markt)

Correctly track changes to context.xml files and trigger redeployment
when copyXML is set to false. (markt)

50997: Relax the requirement that directories must have a
name ending in .jar to be treated as an expanded JAR file
by the default JarScanner. Based on patch by Rodion Zhitomirsky. (markt)

Don't append the jvmRoute to a session ID if the jvmRoute is a zero
length string. (markt)

50887: Add support for configuring the JSSE provider used to
convert client certificates. Based on a patch by pknopp. (markt)

50903: When a connector is stopped, ensure that requests that
are currently in a keep-alive state and waiting for client data are not
processed. Requests where processing has started will continue to
completion. (markt)

50927: Improve error message when SSLCertificateFile is not
specified when using APR with SSL. Based on a patch provided by sebb.
(markt)

50928: Don't ignore keyPass attribute for HTTP BIO and
NIO connectors. Based on a patch provided by sebb. (markt)

25060: Close Apache Commons DBCP datasources when the
associated JNDI naming context is stopped (e.g. for a non-global
DataSource resource on web application reload) to close remaining
database connections immediately rather than waiting for garbage
collection. (markt)

26701: Provide a mechanism for users to register their own
URLStreamHandlerFactory objects. (markt)

19444: Add an option to the JNDI realm to allow role searches
to be performed by the authenticated user. (markt)

21669: Add the ability to specify the roleBase for the JNDI
Realm as relative to the users DN. Based on a patch by Art W. (markt)

22405: Add a new Lifecycle listener,
org.apache.catalina.security.SecurityListener that prevents
Tomcat from starting insecurely. It requires that Tomcat is not started
as root and that a umask at least as restrictive as 0007 is used. This
new listener is not enabled by default.
(markt)

48863: Better logging when specifying an invalid directory
for a class loader. Based on a patch by Ralf Hauser. (markt/kkolinko)

50789: Provide an option to enable ServletRequestListeners
for forwards as required by some CDI frameworks. (markt)

50793: When processing Servlet 3.0 async requests, ensure
that the requestInitialized and requestDestroyed events are only fired
once per request at the correct times. (markt)

50802: Ensure that
ServletContext.getResourcePaths() includes static resources
packaged in JAR files in its output. (markt)

Web crawlers can trigger the creation of many thousands of sessions as
they crawl a site which may result in significant memory consumption.
The new Crawler Session Manager Valve ensures that crawlers are
associated with a single session - just like normal users - regardless
of whether or not they provide a session token with their requests.
(markt)

If server configuration errors and/or faulty applications caused the
ulimit for open files to be reached, the acceptor threads for all
connectors could enter a tight loop. This loop consumed CPU and also
logged an error message for every iteration of the loop which lead to
large log files being generated. The acceptors have been enhanced to
better handle this situation. (markt)

18797: Provide protection against null or zero
length names being provided for users, roles and groups in the
MemoryRealm and UserDatabaseRealm. (markt)

Improve fix for 50205 to trigger an error earlier if invalid
configuration is used. (markt)

Provide additional control over component class loaders, primarily for
use when embedding. (markt)

Fix NPE in RemoteAddrFilter, RemoteHostFilter. (kkolinko)

49711: HttpServletRequest#getParts will work in a filter
or servlet without an @MultipartConfig annotation or
MultipartConfigElement if the new "allowCasualMultipartParsing"
context attribute is set to "true". (schultz)

49978: Correct another instance where deployment incorrectly
failed if a directory in the work area already existed. (markt)

50582: Refactor access logging so chunked encoding is not
forced for all requests if bytes sent is logged. (markt)

50597: Don't instantiate a new instance of a Filter if
an instance was provided via the
ServletContext.addFilter(String, Filter) method. Patch
provided by Ismael Juma. (markt)

50620: Stop exceptions that occur during
Session.endAccess() from preventing the normal completion
of Request.recycle(). (markt)

50629: Make StandardContext.bindThread() and
StandardContext.unbindThread() protected to allow use by
sub-classes. (markt)

Use getName() instead of logName() in error messages in StandardContext.
(kkolinko)

50642: Move the sun.net.www.http.HttpClient
keep-alive thread memory leak protection from the
JreMemoryLeakPreventionListener to the WebappClassLoader since the
thread that triggers the memory leak is created on demand. (markt)

50673: Improve Catalina shutdown when running as a service.
Do not call System.exit(). (kkolinko)

50683: Ensure annotations are scanned when
unpackWARs is set to false in the Host
where a web application is deployed. (markt)

Improve HTTP specification compliance in support of
Accept-Language header. This protects from known exploit
of the Oracle JVM bug that triggers a DoS, CVE-2010-4476. (kkolinko)

50606: Improve CGIServlet: Provide support for specifying
empty value for the executable init-param. Provide support
for explicit additional arguments for the executable. Those were
broken when implementing fix for bug 49657. (kkolinko)

48822: Include context name in case of error while stopping
or starting a context during its reload. Patch provided by Marc
Guillemot. (slaurent)

48837: Extend thread local memory leak detection to include
classes loaded by subordinate class loaders to the web
application's class loader such as the Jasper class loader. Based
on a patch by Sylvain Laurent. (markt)

48973: Avoid creating a SESSIONS.ser file when stopping an
application if there's no session. Patch provided by Marc Guillemot.
(slaurent)

49000: No longer accept specification invalid name only
cookies by default. This behaviour can be restored using a system
property. (markt)

49159: Improve memory leak protection by renewing threads of
the pool when a web application is stopped. (slaurent)

49372: Re-fix after connector re-factoring. If connector
initialisation fails (e.g. if a port is alreasy in use) do not trigger
an LifecycleException for an invalid state transition.
(markt)

49543: Allow Tomcat to use shared data sources with per
application credentials. (fhanik)

Further performance improvements to session ID generation. Remove legacy
configuration options that are no longer required. Provide additional
options to control the SecureRandom instances used to
generate session IDs. (markt)

50201: Update the access log reference in
StandardEngine when the ROOT web application is redeployed,
started, stopped or defaultHost is changed. (markt/kkolinko)

50282: Load
javax.security.auth.login.Configuration with
JreMemoryLeakPreventionListener to avoid memory leak when
stopping a web application that would use JAAS. (slaurent)

50351: Fix the regression that broke BeanFactory resources
caused by the previous fix for 50159. (markt)

50352: Ensure that AsyncListener.onComplete() is
fired when AsyncContext.complete() is called. (markt)

50358: Set the correct LifecycleState when stopping instances
of the deprecated Embedded class. (markt)

Further Lifecycle refactoring for Connectors and associated components.
(markt)

50556: Improve JreMemoryLeakPreventionListener to prevent
a potential class loader leak caused by a thread spawned when the class
com.sun.jndi.ldap.LdapPoolManager is initialized and the
system property com.sun.jndi.ldap.connect.pool.timeout is
set to a value greater than 0. (slaurent)

50360: Provide an option to control when the socket
associated with a connector is bound. By default, the socket is bound on
Connector.init() and released on
Connector.destroy() as per the current behaviour but this
can be changed so that the socket is bound on
Connector.start() and released on
Connector.stop(). This fix also includes further Lifecycle
refactoring for Connectors and associated components. (markt)

Remove a huge memory leak in the NIO connector introduced by the fix
for 49884. (markt)

50467: Protected against NPE triggered by a race condition
that causes the NIO poller to fail, preventing the processing of further
requests. (markt)

50157: Ensure MapperListener is only added to a container
object once. (markt)

50159: Add a new attribute for <Resource>
elements, singleton, that controls whether or not a new
object is created every time a JNDI lookup is performed to obtain the
resource. The default value is true, which will return the
same instance of the resource in every JNDI lookup. (markt)

50168: Separate the Lifecycle.DESTROY_EVENT into
Lifecycle.BEFORE_DESTROY_EVENT and
Lifecycle.AFTER_DESTROY_EVENT. Use the additional state to
ensure that Context objects are only destroyed once.
(markt)

50169: Ensure that when a Container is started that it
doesn't try and register with the mapper unless its parent has
already started. Patch provided by Eiji Takahashi. (markt)

50222: Modify memory leak prevention code so it pins the
system class loader in memory rather than than the common class loader,
which is better for embedded systems. Patch provided by Christopher
Schultz. (markt)

Add a new option, resourceOnlyServlets, to Context elements
that provides a mechanism for working around the issues caused by new
requirements for welcome file mapping introduced in Servlet 3.0. By
default, the existing Tomcat 6.0.x welcome file handling is used.
(markt)

Make Tomcat more tolerant of null when generating JMX names
for Valves. (markt)

If starting children automatically when adding them to a container (e.g.
when adding a Context to a Host) don't lock the parent's set
of children whilst the new child is being started since this can block
other threads and cause issues such as lost cluster messages. (markt)

Implement support for parallel deployment. This allows multiple versions
of the same web application to be deployed to the same context path at
the same time. Users without a current session will be mapped to the
latest version of the web application. Users with a current session will
continue to use the version of the web application with which the
session is associated until the session expires. (markt)

49297: Enforce the rules in the JSP specification for parsing
the attributes of custom and standard actions that require that
the attribute names are unique within an element and that there is
whitespace before the attribute name. The whitespace test can be
disabled by setting the system property
org.apache.jasper.compiler.Parser.STRICT_WHITESPACE to
false. Attributes of the page directive have slightly
different rules. The implementation of that part of the fix is based on
a patch by genspring. (markt)

50105: When processing composite EL expressions use
Enum.name() rather than Enum.toString() as
required by the EL specification. (markt)

Fix minor thread-safety and performance issues in the implementation
of maxLoadedJsps. (rjung)

Add support for unloading JSPs that have not been requested for a
long time using the new parameter jspIdleTimeout. (rjung)

Add logging and JMX support to JSP unloading. (rjung)

50192: Improve performance for EL when running under a
security manager. Based on a patch by Robert Goff. (markt)

50228: Improve recycling of BodyContentImpl.
This avoids keeping a cached reference to a webapp-provided Writer
used in JspFragment.invoke() calls. (kkolinko)

50273: Provide a workaround for an HP-UX issue that can
result in large numbers of SEVERE log messages appearing in the logs as
a result of normal operation. (markt)

50293: Increase the size of internal ELResolver array from 2
to 8 since in typical usage there are at least 5 resolvers. Based on a
patch by Robert Goff. (markt)

Restore the ability to edit the contents of /WEB-INF and /META-INF via
WebDAV via the provision of a new configuration option,
allowSpecialPaths. (markt)

Correct broken links for on-line JavaDocs. (markt)

50230: Add new DistributedManager interface that is
implemented by the Backup Manager to remove circular dependency between
tomcat-catalina-ha and tomcat-catalina modules. Also allows third-party
distributed Manager implementations to report full session information
through the HTML Manager. (markt)

Improve Tomcat Logging documentation. (kkolinko)

50303: Update JNDI how-to to reflect the new JavaMail
download location and that JAF is now included in Java SE 6. (markt)

When installing with the Windows installer on 64-bit platforms, allow
the user to select either a 32-bit JDK or a 64-bit JDK. If a 32-bit JDK
is selected, the 32-bit service wrapper and the 32-bit native DLL will
be installed. If a 64-bit JDK is selected, the 64-bit service wrapper
and the 64-bit native DLL will be installed. (markt/kkolinko)

49937: Use an InstanceManager when creating an AsyncListener
through the AsyncContext to ensure annotations are processed. Based on a
patch by David Jencks. (markt)

To avoid NoSuchMethodException, xmlValidation and xmlNamespaceAware are
removed from the createStandardHost definition
of mbeans-descriptors.xml. (kfujino)

49945: Continue improvements to JMX. Fix a handful of
attributes that were showing as Unavailable in JConsole. Patch provided
by Chamith Buddhika. (markt)

49952: Allow ServletContainerInitializers to add listeners to
a web application. Patch provided by David Jencks. (markt)

49956: Handle case when @Resource annotation uses the full
JNDI name for a resource. Based on a patch by Gurkan Erdogdu. (markt)

49557: Correct regression due to Lifecycle refactoring that
cleared all work directories (with compiled JSPs and persisted sessions)
when Tomcat was stopped. (markt)

49978: Correctly handle the case when a directory expected
to be created during web application start is already present. Rather
than throwing an exception and failing to start, allow the web
application to start normally. (markt)

49721: Alls JAR in a web application should be searched for
resources, not just those with a web-fragment.xml that is going to be
processed. (markt)

49728: Improve PID file handling when another process is
managing the PID file and Tomcat does not have write access. (markt)

49730: Fix a race condition in StandardThreadExector that can
cause requests to experience large delays. Patch provided by Sylvain
Laurent. (markt)

49749: Single sign on cookies should have httpOnly flag set
using same rules as session cookies. (markt)

49750: Align WebappClassLoader.validate()
implementation with Javadoc and ensure that javax.servlet.*
classes can not be loaded by a WebappClassLoader instance.
Patch provided by pid. (markt)

49757: Correct some generics warnings. Based on a patch
provided by Gábor. (markt)

49779: Improve handling of POST requests and FORM
authentication, particularly when the user agent responds to the 302
response by repeating the POST request including a request body. Any
request body provided at this point is now swallowed. (markt)

CSRF prevention filter did not correctly handle URLs that used anchors.
(markt)

49856: Add an executorName attribute to Connectors so it is
possible to trace ThreadPool to Connector to Executor via the JMX
interface. (markt)

49865: Tomcat failed to start if catalina.properties was not
present. (markt)

49876: Fix the generics warnings in the copied Apache Jakarta
BCEL code. Based on a patch by Gábor. (markt)

49883: Ensure that the CombinedRealm and LockOutRealm return
a name for use in log messages rather than throwing an
UnsupportedOperationException. (markt)

49884: Fix occassional NullPointerException on async
complete(). This resulted in a major refactoring of the async
implementation to address a number of threading issues. (markt)

Update the version numbers in ServerInfo defaults to Tomcat 7.0.x.
(markt)

49892: Correct JNDI name for method resource injections.
Based on a patch by Gurkan Erdogdu. (markt)

Ensure that Context elements defined in server.xml use any configClass
setting specified in the parent Host element. (markt)

GSOC 2010. Enable the creation of Services, Engines, Connectors, Hosts
and Contexts via JMX from a minimal server.xml that contains only a
Server element. Based on a patch by Chamith Buddhika. (markt)

49909: Fix a regression introduced with the fix for
47950 that prevented JSTL classes being loaded. (markt)

49915: Make error more obvious, particularly when accessed
via JConsole, if StandardServer.storeConfig() is called when there is
no StoreConfig implementation present. (markt)

50018: Fix some minor Javadoc errors in Jasper source.
Based on a patch by sebb. (timw)

50021: Correct a regression in the fix for 46844
that may have caused additional problems during a failure at start up.
(markt)

50026: Prevent serving of resources from WEB-INF and
META-INF directories when DefaultServlet or WebdavServlet is mapped
to a sub-path of the context. This changes DefaultServlet to always
serve resources with paths relative to the root of the context
regardless of where it is mapped, which is a breaking change for
current servlet-mappings that map the default servlet to a subpath.
(timw)

50689: Provide 100 Continue responses at appropriate points
during FORM authentication if client indicates that they are expected.
(markt)

49665: Provide better information including JSP file name and
location when a missing file is detected during TLD handling. Patch
provided by Ted Leung. (markt)

49726: Specifying a default content type via a JSP property
group should not prevent a page from setting some other content type.
(markt)

49799: The new omit attribute for
jsp:attribute elements now supports the use of expressions
and expression language. (markt)

49916: Switch to using an initialisation parameter to pass
JSP file information from Catalina to Jasper. This simplifies the
Catalina code as well as making it easier for Geronimo and others to
integrate Jasper. Patch provided by David Jencks. (markt)

49182: Align comments in setclasspath.[sh|bat] with
behaviour. Based on a patch provided by sebb. (markt)

49230: Enhance JRE leak prevention listener with protection
for the keep-alive thread started by
sun.net.www.http.HttpClient. Based on a patch provided by
Rob Kooper. (markt)

49414: When reporting threads that may have triggered a
memory leak on web application stop, attempt to differentiate between
request processing threads and threads started by the application.
(markt)

49428: Add a work-around for the known namespace issues for
some Microsoft WebDAV clients. Patch provided by Panagiotis Astithas.
(markt)

Add support for *.jar pattern in VirtualWebappLoader.
(kkolinko)

Use a LockOutRealm in the default configuration to prevent attempts to
guess user passwords by brute-force. (markt)

49478: Add support for user specified character sets to the
AddDefaultCharsetFilter. Based on a patch by Felix
Schumacher. (markt)

49503: Make sure connectors bind to their associated ports
sufficiently early to allow jsvc and the
org.apache.catalina.startup.EXIT_ON_INIT_FAILURE system property to
operate correctly. (markt)

49525: Ensure cookies for the ROOT context have a path of /
rather than an empty string. (markt)

49528, 49567: Ensure that
AsyncContext.isAsyncStarted() returns the correct value
after AsyncContext.start() and that if
AsyncContext.complete() is called on a separate thread that
it is handled correctly. (markt)

49530: Contexts and Servlets not stopped when Tomcat is shut
down. (markt)

49536: If no ROOT context is deployed, ensure a 404 rather
than a 200 is returned for requests that don't map to any other context.
(markt)

49550: Supress deprecation warning where deprecated code is
required to be used. No functional change. Patch provided by Sebb.
(markt)

49551: Allow default context.xml location to be specified
using an absolute path. (markt)

Improve logging of unhandled exceptions in servlets by including the
path of the context where the error occurred. (markt)

Include session ID in error message logged when trying to set an
attribute on an invalid session. (markt)

Improve the CSRF protection filter by using SecureRandom rather than
Random to generate nonces. Also make the implementation class used user
configurable. (markt)

Avoid NullPointerException, when copyXML=true and META-INF/context.xml
does not exist. (kfujino)

49598: When session is changed and the session cookie is
replaced, ensure that the new Set-Cookie header overwrites the old
Set-Cookie header. (markt)

Create a thread to trigger asynchronous timeouts when using the BIO
connector, change the default timeout to 10s (was infinite) and make the
default timeout configurable using the asyncTimeout
attribute on the connector. (pero/markt)

49600: Make exceptions returned by the
ProxyDirContext consistent for resources that weren't found
by checking the DirContext or the cache. Test case based on
a patch provided by Marc Guillemot. (markt)

49613: Improve performance when using SSL for applications
that make multiple class to Request.getAttributeNames().
Patch provided by Sampo Savolainen. (markt)

Handle the edge cases where resources packaged in JARs have names that
start with a single quote character or a double quote character. (markt)

Correct copy and paste typo in web.xml parsing rules that mixed up
local-ejb-ref and resource-env-ref. (markt)

49130: Better describe the core package in the Windows
installer, making it clear that the service will be installed. Patch
provided by sebb. (markt)

Re-factor unit tests to enable them to be run once with each of the HTTP
connector implementations (BIO, NIO and APR/native). (markt)

49268: Add the necessary plumbing to include CheckStyle in
the build process. Start with no checks. Additional checks will be
added as they are agreed. (markt)

Updated to Ant 1.8.1. The build now requires a minimum of Ant 1.8.x.
(markt)

Update the re-packaged version of commons-fileupload from 1.2.1 to
1.2.2. The layout of re-packaged version was also restored to the
original commons-fileupload layout to make merging of future updates
easier. (markt)

Update the re-packaged version of Jakarta BCEL from trunk revision
880760 to trunk revision 978831. (markt)

Numerous code clean-up changes including the use of generics and
removing unused imports, fields, parameters and methods. (markt)

All deprecated internal code has been removed. Warning: If you
have custom components for a previous Tomcat version that extend
internal Tomcat classes and override deprecated methods it is highly
likely that they will no longer work. (markt)

Parameterize version number throughout build scripts and source. (rjung)