MaxUploadSizeExceededException is recognized based on the exception message containing the words "size" and "exceed". Jetty server throws a message "Request exceeds maxRequestSize...". Shouldn't such message also be treated as a MaxUploadSizeExceededException?
The proposed change addresses the issue regarding handling errors for too large file uploads when using the Jetty 9.4.x server. Now it is possible that MultipartException is thrown instead of MaxUploadSizeExceededException when the file exceeds the size limit.
Comment From: sbrannen
This has been merged into 5.3.x and main.
Thanks, and congratulations on submitting your first PR to the Spring Framework! 👍