This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a change to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
from 9b0f7e4cfe Follow-up to 0dd86e53
new dd0febe2f9 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 528a5b0883 Record an error in CoyoteWriter.close() when the underlying
OutputBuffer close fails, rather than swallowing the IOException silently, so
checkError() reflects the failure
new 0c9837fd06 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 7ae6a1150a 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 5027181e52 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 1b2ad67e5f 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 67ceed2eae 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 731e38b9c8 Merge branch '11.0.x' of [email protected]:apache/tomcat.git
into 11.0.x
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 | 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]