java.util.Optional MultipartFile[] @RequestParam argument is null in multipart/form-data POST [SPR-15918] #20472
Labels
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Brice Roncace opened SPR-15918 and commented
If an
Optional
@RequestParam
is not present in the request parameters, that value should beOptional.EMPTY
as opposed tonull
. However, anOptional<MultipartFile[]>
orOptional<List<MultipartFile>>
parameter on a controller method handling a POSTed multipart/form-data request is NOT converting that parameter to Optional.EMPTY as expected but leaving itnull
.Affects: 4.3.10
Reference URL: https://stackoverflow.com/q/45949393/225217
Issue Links:
@RequestParam
Referenced from: commits 15c82af, 53a9697
Backported to: 4.3.12
The text was updated successfully, but these errors were encountered: