-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect Jetty 12 "max length exceeded" message for MaxUploadSizeExceededException
#31850
Comments
MaxUploadSizeExceededException
Could you please provide a reproducer as an attached archive or a link to a repository? |
@sdeleuze sure please have a look there there i've added code that you could use later for fix
Note: Be aware that test results may overlap with other client-related issues: "The connection was closed BEFORE response." |
So if |
MaxUploadSizeExceededException
MaxUploadSizeExceededException
Indeed, thanks for sharing that screenshot which illustrates it nicely! |
Related: #28759 for Jetty 9.4's exception message. |
Pushed a revision now for inclusion in the 6.1.3 release. It would be great if you could give the upcoming 6.1.x snapshot a try! |
yes it works with 6.1.3-SNAPSHOT ! demo using snapshot updated. small note: maybe it would be nice if it were like thanks! |
Thanks for the immediate check! I was wondering whether to throw the top-level exception or the relevant cause as well but ultimately settled with the top-level exception since that may contain further details, even if it was a specific cause that led to us to identify an upload size failure. |
Affects:
StandardMultipartHttpServletRequest
contains the following code:That seems like it doesn't handle correctly the case for
MaxUploadSizeExceededException
for jetty server due to fact that original error from the Servlet API will bethrow new ServletException(new BadMessageException("bad multipart", cause));
, and the error fromjetty-http
for multipart will bethrow new IllegalStateException("max length exceeded: %d".formatted(max));
.The text was updated successfully, but these errors were encountered: