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

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


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

commit b5be6b63633564418986930cd5d555ced5fdc1a2
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 21 15:30:22 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 1e3e060e8a..087e5bc749 100644
--- a/java/org/apache/catalina/connector/Request.java
+++ b/java/org/apache/catalina/connector/Request.java
@@ -2314,7 +2314,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) {
@@ -2329,8 +2329,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