parts w/o filename in Content-Disposition
header are not cleaned from temp folder (skipped by StandardServletMultipartResolver
)
#33511
Milestone
Affects: 6.1.12 (but can not say since when exactly, older versions are probably also affected) + Jetty 12.0.12
Parts w/o filename in content disposition header are missing in
AbstractMultipartHttpServletRequest.getMultiFileMap()
. Because of thispart.delete()
is skipped in the resolver.The relevant logic to filter out such parts is in
spring-framework/spring-web/src/main/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequest.java
Line 101 in eff19ec
the logic to ignore parts which are not part of the filemap is here:
spring-framework/spring-web/src/main/java/org/springframework/web/multipart/support/StandardServletMultipartResolver.java
Line 123 in eff19ec
Should we cleanup those parts by ourself? Not sure whether there are other dependencies (why it should not be part of filemap e.g.) but our fix is currently to overwrite the
StandardServletMultipartResolver
and delete the part nevertheless its contained or not in the filemap)The text was updated successfully, but these errors were encountered: