-
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
Remove dependency on Commons FileUpload in ContentRequestMatchers #27742
Comments
In any case, the Javadoc for |
That revision in 6.0 was not really about removing the dependency, rather about replacing it with the Commons FileUpload fork in Tomcat core. We are not going to backport that, we'd rather keep the original Commons FileUpload dependency in 5.3.x, otherwise we would force existing 5.3.x test setups to change their dependency declaration. @sbrannen I'll take of updating the javadoc accordingly, good catch! |
Oh, I misunderstood the meaning of that merge request. |
@jhoeller Just a little note, but as of today, the Javadoc is still not updated "Note: This method uses the Apache Commons FileUpload library to parse the multipart data and it must be on the test classpath." |
I have created #31988 related issue (and will backport it to 6.0.x). |
In Spring 5.3,
multipartData()
methods were added toorg.springframework.test.web.client.match.ContentRequestMatchers
, which are useful for testing a multipart request body.As a slight limitation, to use this method with Spring 5.3, we need to add dependency on Commons-Fileupload in test scope.
The dependency was removed from Spring 6.0 in conjunction with #27423.
It would great if this change to
ContentRequestMatchers
would be backported to Spring 5.3.x.The text was updated successfully, but these errors were encountered: