Skip to content

Validation is not enforced on HttpExchange interfaces #34995

Closed as not planned
Closed as not planned
@GuillaumeVT

Description

@GuillaumeVT

Hello there,

I've been trying to get validation to trigger for outward HTTP calls in the context of @HttpExchange interfaces.

A missing path variable, mandatory request parameter or request body will throw an IllegalArgumentException, but no ConstraintViolationException is thrown when Jakarta constraints are not respected

I found this ticket which seems to indicate that this was raised and implemented in Jan 2023: #29782

However, it seems to not be working, so I've built a small app reproducing the problem attached to this issue.

demo.zip

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions