This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 6df2787784 Align with 10.1.x
6df2787784 is described below

commit 6df278778400ea926f2aeb6050feaa83d1b1ab98
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 21 15:30:40 2025 +0100

    Align with 10.1.x
---
 java/org/apache/catalina/connector/Request.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/catalina/connector/Request.java 
b/java/org/apache/catalina/connector/Request.java
index 3a10857112..c4c1a2db08 100644
--- a/java/org/apache/catalina/connector/Request.java
+++ b/java/org/apache/catalina/connector/Request.java
@@ -2422,7 +2422,7 @@ public class Request implements HttpServletRequest {
     }
 
 
-    private void parseParts(boolean mustParse) {
+    private void parseParts(boolean explicit) {
 
         // Return immediately if the parts have already been parsed
         if (parts != null || partsParseException != null) {
@@ -2437,8 +2437,10 @@ public class Request implements HttpServletRequest {
                 mce = new MultipartConfigElement(null, 
connector.getMaxPostSize(), connector.getMaxPostSize(),
                         connector.getMaxPostSize());
             } else {
-                if (mustParse) {
+                if (explicit) {
                     partsParseException = new 
IllegalStateException(sm.getString("coyoteRequest.noMultipartConfig"));
+                } else {
+                    parts = Collections.emptyList();
                 }
                 return;
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to