55282: Ensure that one and the same application listener is
added only once when starting the web application. (violetagg)
55975: Apply consistent escaping for double quote and
backslash characters when escaping cookie values. (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)
56526: Improved the StuckThreadDetectionValve to
optionally interrupt stuck threads to attempt to unblock them.
(slaurent)
56545: Pre-load two additional classes, the loading of which
may otherwise be triggered by a web application which in turn would
trigger an exception when running under a security manager. (markt)
56546: Reduce logging level for stack traces of stuck web
application threads printed by WebappClassLoader.clearReferencesThreads()
from error to info. (kkolinko)
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)
56606: User entries in tomcat-users.xml file
are recommended to use "username" attribute rather than legacy "name"
attribute. Fix inconsistencies in Windows installer, examples. Update
digester rules and documentation for MemoryRealm.
(markt/kkolinko)
56611: Refactor code to remove inefficient calls to
Method.isAnnotationPresent(). Based on a patch by Jian Mou.
(markt)
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)
56582#c1: Implement DISPATCH_EXECUTE action for AJP
connectors. (kkolinko)
If request contains an unrecognized Expect header, respond with error
417 (Expectation Failed), according to RFC2616 chapter 14.20. (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)
Remove the beta tag from the NIO2 connectors. (remm)
56620: Avoid bogus access log entries when pausing the NIO
HTTP connector and ensure that access log entries generated by error
conditions use the correct request start time. (markt)
Improve configuration of cache sizes in the endpoint. (markt)
Add a new limit, defaulting to 2MB, for the amount of data Tomcat will
swallow for an aborted upload. (markt)
Jasper
56334#c15: Fix a regression in EL parsing when quoted string
follows a whitespace. (kkolinko/markt)
56543: Update to the Eclipse JDT Compiler 4.4RC4 to pick up
some fixes for Java 8 support. (markt/kkolinko)
56561: Avoid NoSuchElementException while
handling attributes with empty string value. (violetagg)
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)
Move code that parses EL expressions within JSP template text from
Parser to JspReader class for better
performance. (kkolinko)
56636: Correctly identify the required method when specified
via ELProcessor.defineFunction(String,String,String,String)
when using Expression Language. (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)
Jasper
56529: Avoid NoSuchElementException while handling
attributes with empty string value in custom tags. Patch provided by
Hariprasad Manchi. (violetagg)
not released Tomcat 8.0.7 (markt)
Catalina
56523: When using SPNEGO authentication, log the exceptions
associated with failed user logins at debug level rather than error
level. (markt)
Coyote
56399: Assert that both Coyote and Catalina request objects
have been properly recycled. (kkolinko)
Jasper
56522: When setting a value for a
ValueExpression, ensure that the expected coercions take
place such as a null string being coerced to an empty
string. (markt)
Other
Copy missing resources file from Apache Commons DBCP 2 to packaged
renamed copy of DBCP 2. (markt)
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)
56365: Simplify file name pattern matching code in
StandardJarScanner. Improve documentation. (kkolinko)
Ensure that the static resource cache is able to detect when a cache
entry is invalidated by being overridden by a new resource in a
different WebResourceSet. (markt)
56369: Ensure that removing an MBean notification listener
reverts all the operations performed when adding an MBean notification
listener. (markt)
Improve implementation of Lifecycle for
WebappClassLoader. State is now correctly reported rather
than always reporting as NEW. (markt)
56382: Information about finished deployment and its execution
time is added to the log files. Patch is provided by Danila Galimov.
(violetagg)
56383: Properties for disabling server information and error
report are added to the org.apache.catalina.valves.ErrorReportValve.
Based on the patch provided by Nick Bunn. (violetagg/kkolinko)
56390: Fix JAR locking issue with JARs containing TLDs and
the TLD cache that prevented the undeployment of web applications when
the WAR was deleted. (markt)
Fix CVE-2014-0119:
Only create XML parsing objects if required and fix associated potential
memory leak in the default Servlet.
Extend XML factory, parser etc. memory leak protection to cover some
additional locations where, theoretically, a memory leak could occur.
(markt)
Modify generic exception handling so that
StackOverflowError is not treated as a fatal error and can
handled and/or logged as required. (markt)
56409: Avoid StackOverflowError on non-Windows
systems if a file named \ is encountered when scanning for
TLDs. (markt)
56430: Extend checks for suspicious URL patterns to include
patterns of the form *.a.b which are not valid patterns for
extension mappings. (markt)
56441: Raise the visibility of exceptions thrown when a
problem is encountered calling a getter or setter on a component
attribute. The logging level is raised from debug to warning. (markt)
56463: Property for disabling server information is added to
the DefaultServlet. Server information is presented in the
response sent to the client when directory listings is enabled.
(violetagg)
56472: Allow NamingContextListener to clean up on stop if its
start failed. (kkolinko)
56481: Work around case insensitivity issue in
URLClassLoader exposed by some recent refactoring. (markt)
56492: Avoid eclipse debugger pausing on uncaught exceptions
when tomcat renews its threads. (slaurent)
Add the org.apache.naming package to the packages requiring
code to have the defineClassInPackage permission when
running under a security manager. (markt)
Make the naming context tokens for containers more robust by using a
separate object. Require RuntimePermission when introducing a new token.
(markt/kkolinko)
56501: HttpServletRequest.getContextPath()
should return the undecoded context path used by the user agent. (markt)
Minor fixes to ThreadLocalLeakPreventionListener. Do not
trigger threads renewal for failed contexts. Do not ignore
threadRenewalDelay setting. Improve documentation. (kkolinko)
Correct regression introduced in r1239520 that broke loading
of users from tomcat-users.xml when using the
JAASMemoryLoginModule. (markt)
Correct regression introduced in r797162 that broke
authentication of users when using the
JAASMemoryLoginModule. (markt)
Handle various cases of incomplete writes in NIO2. (remm)
Code cleanups and i18n in NIO2. (remm)
Fix extra onDataAvailable calls in the NIO2 connector. (remm)
Fix gather writes in NIO2 SSL. (remm)
Upgrade the NIO2 connectors to beta, but still not ready for production. (remm)
Fix code duplication between NIO and NIO2. (remm)
56348: Fix slow asynchronous read when read was performed on
a non-container thread. (markt)
56416: Correct documentation for default value of socket
linger for the AJP and HTTP connectors. (markt)
Fix possible corruption if doing keepalive after a comet request. (remm)
56518: Fix connection limit latch leak when a non-container
thread is interrupted during asynchronous processing. (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)
Correct documentation on Windows service options, aligning it with
Apache Commons Daemon documentation. (kkolinko)
56418: Ensure that the Manager web application does not
report success for a web application deployment that fails. (slaurent)
Improve valves documentation. Split valves into groups. (kkolinko)
56513: Make the documentation crystal clear that using
sendfile will disable any compression that Tomcat may otherwise have
applied to the response. (markt)
Other
Review source code and take advantage of Java 7's
try-with-resources syntax where possible. (markt)
Align DisplayName of Tomcat installed by service.bat with
one installed by the *.exe installer. Print a warning in case if neither
server nor client jvm is found by service.bat. (kkolinko)
56363: Update to version 1.1.30 of Tomcat Native library.
(schultz)
Update package renamed Apache Commons BCEL to r1593495 to pick up some
additional changes for Java 7 support and some code clean up. (markt)
Update package renamed Apache Commons FileUpload to r1569132 to pick up
some small improvements (e.g. better null protection) and
some code clean up. (markt)
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)
Update package renamed Apache Commons Pool2 and DBCP2 to r1593563 to
pick various bug fixes. (markt)
In tests: allow to configure directory where JUnit reports and access
log are written to. (kkolinko)
beta, 2014-03-27 Tomcat 8.0.5 (markt)
Catalina
Rework the fix for 56190 as the previous fix did not recycle
the request in all cases leading to mis-routing of requests. (markt)
Allow web applications to package tomcat-jdbc.jar and their JDBC driver
of choice in the web application. (markt)
56293: Cache resources loaded by the class loader from
/META-INF/services/ for better performance for repeated
look ups. (markt)
Coyote
Fix possibly incomplete final flush with NIO2 when using non blocking
mode. (remm)
Cleanup NIO2 endpoint shutdown. (remm)
Fix rare race condition notifying onWritePossible in the NIO2
HTTP/1.1 connector. (remm)
Jasper
54475: Add Java 8 support to SMAP generation for JSPs. Patch
by Robbie Gibson. (markt)
Web applications
56273: If the Manager web application does not perform an
operation because the web application is already being serviced, report
an error rather than reporting success. (markt)
56304: Add a note to the documentation about not using
WebSocket with BIO HTTP in production. (markt)
not released Tomcat 8.0.4 (markt)
Catalina
Restore the ability to use the addURL() method of the
web application class loader to add external resources to the web
application. (markt)
Improve the robustness of web application undeployment based on some
code analysis triggered by the report for 54315. (markt)
56125: Correctly construct the URL for a resource that
represents the root of a JAR file. (markt)
Generate a valid root element for the effective web.xml for a web
application for all supported versions of web.xml. (markt)
Make it easier for applications embedding and/or extending Tomcat to
modify the javaseClassLoader attribute of the
WebappClassLoader. (markt)
Add missing support for <deny-uncovered-http-methods>
element when merging web.xml files. (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)
56244: Fix MBeans descriptor for WebappClassLoader MBean.
(kkolinko)
Add a work around for validating XML documents (often TLDs) that use
just the file name to refer to refer to the JavaEE schema on which they
are based. (markt)
Add methods of get the idle time from last client access time to
org.apache.catalina.Session. (kfujino)
56246: Fix NullPointerException in MemoryRealm when
authenticating an unknown user. (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)
Fix CVE-2014-0099:
Fix possible overflow when parsing long values from a byte array.
(markt)
Jasper
Change the default compiler source and compiler target versions to 1.7
since Tomcat 8 requires a minimum of Java 7. (markt)
56179: Fix parsing of EL expressions that contain unnecessary
parentheses. (markt)
56177: Handle dependency tracking for TLDs when using JspC
with a tag library JAR that is located outside of the web application.
(markt)
Remove an unnecessary null check identified by FindBugs. (markt)
56199: Restore validateXml option for JspC which determines
if web.xml will be parsed with a validating parser. (markt)
56223: Throw an IllegalStateException if a call
is made to ServletContext.setInitParameter() after the
ServletContext has been initialized. (markt)
56265: Do not escape values of dynamic tag attributes
containing EL expressions. (kkolinko)
Make the default compiler source and target versions for JSPs Java 7
since Tomcat 8 requires Java 7 as a minimum. (markt)
56283: Update to the Eclipse JDT Compiler P20140317-1600
which adds support for Java 8 syntax to JSPs. Add support for value
"1.8" for the compilerSourceVM and
compilerTargetVM options. (markt)
WebSocket
Avoid a possible deadlock when one thread is shutting down a connection
while another thread is trying to write to it. (markt)
Avoid NPE when flushing batched messages. (markt)
Web Applications
56093: Add the SSL Valve to the documentation web
application. (markt)
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)
56139: Avoid a web application class loader leak in some unit
tests when running on Windows. (markt)
Correct build script to avoid building JARs with empty packages. (markt)
Allow to limit JUnit test run to a number of selected test case
methods. (kkolinko)
Update Commons Pool 2 to 2.2. (markt)
Update Commons DBCP 2 to the 2.0 release. (markt)
56189: Remove used file cpappend.bat from the distribution.
(markt)
56204: Remove unnecessary dependency between tasks in the
build script. (markt)
Add definition of org.apache.catalina.ant.FindLeaksTask.
(kfujino)
Implement org.apache.catalina.ant.VminfoTask,
org.apache.catalina.ant.ThreaddumpTask and
org.apache.catalina.ant.SslConnectorCiphersTask. (kfujino)
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
56082: Fix a concurrency bug in JULI's LogManager
implementation. (markt)
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)
Cluster
Simplify the code of
o.a.c.ha.tcp.SimpleTcpCluster.createManager(String).
Remove unnecessary class cast. (kfujino)
Web applications
In Manager web application improve handling of file upload errors.
Display a message instead of error 500 page. Simplify. (kkolinko)
Other
56104: Correct the version number on the welcome page of the
Windows installer. (markt)
Update Commons DBCP 2 to snapshot 168 dated 05 Feb 2014. (markt)
Fix CVE-2014-0050, a denial of service with a malicious, malformed
Content-Type header and multipart request processing. Fixed by merging
latest code (r1565159) from Commons FileUpload. (markt)
beta, 2014-02-02 Tomcat 8.0.1 (markt)
Catalina
Change default value of xmlBlockExternal attribute of
Context. It is true now. (kkolinko)
Coyote
Correct regression in the fix for 55996 that meant that
asynchronous requests might timeout too early. (markt)
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)
not released Tomcat 8.0.0 (markt)
Catalina
Implement JSR 340 - Servlet 3.1. The JSR 340 implementation includes
contributions from Nick Williams and Jeremy Boynes. (markt)
Implement JSR 245 MR2 - JSP 2.3. (markt)
Implement JSR 341 - Unified Expression Language 3.0. (markt)
Implement JSR 356 - WebSockets. The JSR 356 implementation includes
contributions from Nick Williams, Rossen Stoyanchev and Niki Dokovski.
(markt)
46727: Refactor default servlet to make it easier to
sub-class to implement finer grained control of the file encoding. Based
on a patch by Fred Toth. (markt)
45995: Align Tomcat with Apache httpd and perform MIME type
mapping based on file extension in a case insensitive manner. (markt)
Remove duplicate code that converted a Host's appBase attribute to
a canonical file. (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)
52767: Remove reference to MySQL specific autoReconnect
property in JDBCAccessLogValve. (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)
URL rewrite valve, similar in functionality to mod_rewrite. (remm)
Port storeconfig functionality, which can persist to server.xml and
context.xml runtime container configuration changes. (remm)
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)
55101: Make BASIC authentication more tolerant of whitespace.
Patch provided by Brian Burch. (markt)
55166: Move JSP descriptor and tag library descriptor schemas
to servlet-api.jar to enable relative references between the schemas to
be correctly resolved. (markt)
Refactor the descriptor parsing code into a separate module that can be
used by both Catalina and Jasper. Includes patches provided by Jeremy
Boynes. (violetagg/markt)
55246: Move TLD scanning to a ServletContainerInitializer
provided by Jasper. Includes removal of TldConfig lifecycle listener and
associated Context properties. (jboynes)
55317: Facilitate weaving by allowing ClassFileTransformer to
be added to WebppClassLoader. Patch by Nick Williams. (markt)
55620: Enable Tomcat to start when either $CATALINA_HOME
and/or $CATALINA_BASE contains a comma character. Prevent Tomcat from
starting when $CATALINA_HOME and/or $CATALINA_BASE contains a semi-colon
on Windows. Prevent Tomcat from starting when $CATALINA_HOME and/or
$CATALINA_BASE contains a colon on Linux/FreeBSD/etc. (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)
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)
Cluster
Remove unused JvmRouteSessionIDBinderListener and SessionIDMessage.
(kfujino)
Modify method signature in ReplicationValve. Cluster instance is not
necessary to argument of method. (kfujino)
Remove unused expireSessionsOnShutdown attribute in
org.apache.catalina.ha.session.BackupManager. (kfujino)
Web applications
Extend the diagnostic information provided by the Manager web
application to include details of the configured SSL ciphers suites for
each connector. (markt)
48550: Update examples web application to use UTF-8. (markt)
55383: Improve the design and correct the HTML markup of
the documentation web application. Patches provided by Konstantin
Preißer. (markt)
Tribes
Refactor AbstractReplicatedMap to use generics. A key
side-effect of this is that the class now implements
Map<K,V> rather than extends
ConcurrentMap. (markt)
Other
Remove unused, deprecated code. (markt)
Remove static info String and associated getInfo() method where present.
(markt)
(r1353242, r1353410):
Remove Ant tasks jasper2 and jkstatus.
The correct names are jasper and jkupdate.
(kkolinko)
53529: Clean-up the handling of
InterruptedException throughout the code base. (markt)
54899: Provide an initial implementation of NetBeans support.
Patch provided by Brian Burch. (markt)
55166: Move the JSP descriptor and tag library descriptor
schema defintion 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)