if there is a controller method with code like this:
public void uploadFile( @RequestParam(value = "file",required = true) MultipartFile file){
//some code
}
and there is no header which name is "Content-Type" in the request,then the method "resolveName" will throw MultipartException which is from the method "assertIsMultipartRequest" even if the value of attribute which name is "required" is true.
The expected response should be throw MissingServletRequestParameterException i think. Because it is convenient for coder to execute the same code when there is no enough parameters.
Comment From: pivotal-issuemaster
@rocky-peng Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@rocky-peng Thank you for signing the Contributor License Agreement!