-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Description
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 this part.delete()
is skipped in the resolver.
The relevant logic to filter out such parts is in
Line 101 in eff19ec
if (filename != null) { |
the logic to ignore parts which are not part of the filemap is here:
Line 123 in eff19ec
if (request.getFile(part.getName()) != null) { |
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)