You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
A workaround was added for the Resin Servlet container in gh-13937.
This avoids attempting to delete parts that are not named, because the
`part.delete()` call would fail for non-file entries. This can be
problematic for files that are unnamed as they might not be removed by
the Framework.
This commit removes this workaround as Resin is not supported anymore.
Fixesgh-33511
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
Referenced from: commits 9fcb578, 7ea85a9
The text was updated successfully, but these errors were encountered: