This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
from 85daf45655 Follow-up to 09c0caced9
new fef7039a68 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 6fd26942a4 Record an error in CoyoteWriter.close() when the underlying
OutputBuffer close fails, rather than swallowing the IOException silently, so
checkError() reflects the failure
new e9ff675a9c 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 abee799d6b 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 99d1d56725 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 95768c8f3a 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 ba91d79ad1 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 4d142cc729 Merge branch 'main' of [email protected]:apache/tomcat.git
into main
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 | 34 ++++++-
.../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, 430 insertions(+), 15 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]