Description
Ralph Schaer opened SPR-9299 and commented
Testing the StandardServletMultipartResolver on Resin 4.0.27 with this form.
<form action="uploadTest" method="post" enctype="multipart/form-data">
<input type="hidden" name="hiddenParameter" value="theHiddenValue" />
...
</form>
The resolver tries to cleanup the parts with the cleanupMultipart method
by calling part.delete();
Resin throws this exception
8:08:25.093 [resin-port-8080-19] WARN o.s.w.m.s.StandardServletMultipartResolver - Failed to perform cleanup of multipart items
ava.io.IOException: Part.delete() is not applicable to part 'hiddenParameter':'theHiddenValue'
at com.caucho.server.http.AbstractCauchoRequest$PartImpl.delete(AbstractauchoRequest.java:1086) ~[resin.jar:4.0.27]
at org.springframework.web.multipart.support.StandardServletMultipartResolver.cleanupMultipart(StandardServletMultipartResolver.java:65) ~[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
Not sure why Resin not simply ignores the call to delete() for this kind of parts, as all the other servers (Tomcat, Jetty) do.
Affects: 3.1.1