sonata-project / SonataBlockBundle

Symfony SonataBlockBundle
https://docs.sonata-project.org/projects/SonataBlockBundle
MIT License
413 stars 142 forks source link

Bug in (lazy-loading) group property on validator component #1010

Closed houssemz closed 2 years ago

houssemz commented 2 years ago

Environment

Sonata packages

show

``` $ composer show --latest 'sonata-project/*' sonata-project/admin-bundle 3.107.0 The missing Symfony Admin Generator sonata-project/article-bundle 1.6.1 Advanced article management sonata-project/block-bundle 3.23.3 Symfony SonataBlockBundle sonata-project/cache 2.0.1 Cache library sonata-project/cache-bundle 3.3.0 This bundle provides caching services sonata-project/classification-bundle 3.18.0 Symfony SonataClassificationBundle sonata-project/datagrid-bundle 3.4.2 Symfony SonataDatagridBundle sonata-project/doctrine-extensions 1.15.0 Doctrine2 behavioral extensions sonata-project/doctrine-orm-admin-bundle 3.35.0 Integrate Doctrine ORM into the SonataAdminBundle sonata-project/entity-audit-bundle 1.3.2 Audit for Doctrine Entities sonata-project/exporter 2.8.0 Lightweight Exporter library sonata-project/form-extensions 1.12.1 Symfony form extensions sonata-project/formatter-bundle 4.6.1 Symfony SonataFormatterBundle sonata-project/intl-bundle 2.11.1 Symfony SonataIntlBundle sonata-project/media-bundle 3.36.0 Symfony SonataMediaBundle sonata-project/notification-bundle 3.13.0 Symfony SonataNotificationBundle sonata-project/page-bundle 3.24.0 This bundle provides a Site and Page management through container and block services sonata-project/seo-bundle 2.15.0 Symfony SonataSeoBundle sonata-project/translation-bundle 2.9.1 SonataTranslationBundle sonata-project/twig-extensions 1.9.0 Sonata twig extensions sonata-project/user-bundle 4.13.0 Symfony SonataUserBundle ```

Symfony packages

show

``` $ composer show --latest 'symfony/*' symfony/amazon-sqs-messenger v5.3.4 Symfony Amazon SQS extension Messenger Bridge symfony/contracts v1.1.10 A set of abstractions extracted out of the Symfony components symfony/deprecation-contracts v2.4.0 A generic function and convention to trigger deprecation notices symfony/monolog-bundle v3.7.0 Symfony MonologBundle symfony/phpunit-bridge v5.3.7 Provides utilities for PHPUnit, especially user deprecation notices management symfony/polyfill-ctype v1.23.0 Symfony polyfill for ctype functions symfony/polyfill-iconv v1.23.0 Symfony polyfill for the Iconv extension symfony/polyfill-intl-grapheme v1.23.1 Symfony polyfill for intl's grapheme_* functions symfony/polyfill-intl-icu v1.23.0 Symfony polyfill for intl's ICU-related data and classes symfony/polyfill-intl-idn v1.23.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions symfony/polyfill-intl-normalizer v1.23.0 Symfony polyfill for intl's Normalizer class and related functions symfony/polyfill-mbstring v1.23.1 Symfony polyfill for the Mbstring extension symfony/polyfill-php72 v1.23.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions symfony/polyfill-php73 v1.23.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions symfony/polyfill-php80 v1.23.1 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions symfony/polyfill-php81 v1.23.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions symfony/security-acl v3.2.0 Symfony Security Component - ACL (Access Control List) symfony/string v5.3.7 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way symfony/swiftmailer-bundle v3.5.2 Symfony SwiftmailerBundle symfony/symfony v4.4.36 The Symfony PHP framework ```

PHP version

$ php -v
PHP 7.4.25 (cli) (built: Oct 22 2021 18:03:01) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.25, Copyright (c), by Zend Technologies

Subject

I am using Symfony v4.4.33 and Sonata. When I update Symfony to ^4.4.34, I encountered a bug in group property in the Constraint class in the validator component with SonataBlockBundle.

Minimal repository with the bug

Steps to reproduce

https://user-images.githubusercontent.com/6786605/149780709-5b8e14ca-5e13-409c-991d-95aa5fc19cbe.mov

Expected results

Actual results

jordisala1991 commented 2 years ago

I guess this issue is related to this fix: https://github.com/sonata-project/form-extensions/pull/313.

Closing