Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Regression in validator #50780

Copy link
Copy link
Closed
Closed
Copy link
@garak

Description

@garak
Issue body actions

Symfony version(s) affected

5.4.25, 6.2.12, 6.3.1

Description

Upgrading symfony/validator from 5.4.34 to 5.4.35 breaks validation in a project of mine.
Some properties that have a NotBlank constraint applied are not detected as invalid when submitted without a value.
It seems that the regression was introduced in this change 6a3a4d7#diff-50c23a0a9ba92c8fb19fa501720ad061da508e3ccfd98fbcdfff2b7c8c6e6499 but unfortunately I cannot understand how.

How to reproduce

I'm sorry but it seems not so easy to provide a reproducer. In my project, I use XML validation and the problem appears on a property which is not directly defined in the validated object (it's defined in a parent object)

Possible Solution

Sorry, no clue about this

Additional Context

I isolated the problem during an upgrade, by requiring in my composer.json "symfony/validator": "^5.4,<5.4.25". With this requirement, all my tests pass.
If I replace it with the simple "symfony/validator": "^5.4", the tests break

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.