Skip to content

Contract of @RequestPart(required=false) not obeyed [SPR-12860] #17458

Closed

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-12860 and commented

Currently @RequestPart(required=false) works as expected only if the part is missing altogether. It should also work if the part is present but the content is empty. Instead currently, depending on the specific HttpMessageConverter used, it may result in an HttpMessageNotReadableException instead of null.


Affects: 4.1.6

Issue Links:

Activity

  1. added
    type: bug
    in: web
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions