79715259

Date: 2025-07-25 21:34:52
Score: 0.5
Natty:
Report link

AWS Upgrading to Tomcat 9.0.71 or later is what caused this to occur: https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.71

You will want to increase these settings in application.yml

spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=100MB
spring.servlet.multipart.max-parts=50

In Grails 7, which uses Spring Boot 3.5.x the settings are:

server.tomcat.max-part-count
server.tomcat.max-part-header-size

If that does not work due to the older version of Grails and Spring Boot you are using, you will need to adjust the settings in tomcat's $CATALINA_HOME/conf/server.xml

https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#Attributes_Common%20Attributes_maxPartCount

<Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443"
           maxPartCount="50" />
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: James Fredley