Skip to content
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

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

Closed
spring-projects-issues opened this issue Apr 2, 2012 · 0 comments
Assignees
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Apr 2, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants