Skip to content

org.springframework.web.multipart.support.StandardServletMultipartResolver.cleanupMultipart causes an IOException on Resin [SPR-9299] #13937

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions