This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a change to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
from ce5f2588a8 Follow-up to 0dd86e53
new e9bc429941 Fix InputBuffer.skip() consuming and returning more
characters than requested by comparing and advancing by the remaining count (n
- nRead) rather than the original count, and add a regression test
new 2bd3cd8e52 Record an error in CoyoteWriter.close() when the underlying
OutputBuffer close fails, rather than swallowing the IOException silently, so
checkError() reflects the failure
new 7ccdb9cfcb Return 0 rather than -1 for zero-length reads from
InputBuffer at end of stream, as required by the InputStream/Reader contract,
and avoid the unnecessary blocking fill these requests previously triggered
new 863895956d Return a snapshot enumeration from Request.getLocales() to
prevent ConcurrentModificationExceptions when the locales list is modified
while a previously returned enumeration is being iterated
new b5c5e3252a Add spec-mandated validation to
ApplicationServletRegistration: throw IllegalStateException when the
registration is modified after the context has been initialised (using a
deliberately lenient availability test to avoid breaking existing applications
that configure registrations before start) and IllegalArgumentException from
addMapping for null or empty URL patterns
new 2810a69cf8 Fall back to the raw trimmed filename value in
ApplicationPart.getSubmittedFileName() when HttpParser.unquote() rejects an
invalid quoted-string, keeping the result consistent with the file-vs-field
classification performed by FileUploadBase.getFileName() for malformed
Content-Disposition headers
new ae6ad90929 Make FrameworkListener registration idempotent so repeated
Server start events do not add duplicate container listeners or orphan previous
per-context lifecycle listeners that can no longer be removed
The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../apache/catalina/connector/CoyoteWriter.java | 8 +-
.../org/apache/catalina/connector/InputBuffer.java | 12 ++-
java/org/apache/catalina/connector/Request.java | 4 +-
java/org/apache/catalina/core/ApplicationPart.java | 7 +-
.../core/ApplicationServletRegistration.java | 25 ++++-
.../apache/catalina/core/FrameworkListener.java | 28 +++++-
.../apache/catalina/core/LocalStrings.properties | 2 +
.../apache/catalina/connector/TestInputBuffer.java | 100 +++++++++++++++++++
.../apache/catalina/core/TestApplicationPart.java | 44 +++++++++
.../core/TestApplicationServletRegistration.java | 107 ++++++++++++++++++++-
.../catalina/core/TestFrameworkListener.java | 99 +++++++++++++++++++
11 files changed, 424 insertions(+), 12 deletions(-)
create mode 100644 test/org/apache/catalina/core/TestApplicationPart.java
create mode 100644 test/org/apache/catalina/core/TestFrameworkListener.java
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]