This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a change to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
from 6da20f64db Follow-up to 0dd86e53
new 5c7cece179 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 d1a1e07890 Record an error in CoyoteWriter.close() when the underlying
OutputBuffer close fails, rather than swallowing the IOException silently, so
checkError() reflects the failure
new d2aef8a68a 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 15ed7cade9 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 fc78d1eb84 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 fd3b3bea68 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 ac45d183bd 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
new 2fb3864f0e jakarta -> javax and fix test
The 8 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 | 27 +++++-
.../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, 425 insertions(+), 13 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]