Skip to content

Part list/array gets resolved to all parts in current request [SPR-13893] #18467

@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-13893 and commented

Our support for Servlet 3.0 Part lists and arrays is unfortunately highly inconsistent with the MultipartFile handling that it was supposed to align with. Our MultipartRequest interface allows for access to multiple files which got uploaded under the same name; this is also what a declared MultipartFile list/array argument would receive. However, the Servlet 3.0 HttpServletRequest.getParts method does not retrieve parts by name but rather always returns all parts of the given request, so we accidentally called that method without any use of our specified part name... Let's make this consistent for 4.3.


Affects: 4.2.4

Issue Links:

Referenced from: commits b4f33ad

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions