Closed
Description
Symfony version(s) affected
4.4.33
Description
URL validation changed between symfony/validation:4.4.31
and symfony/validation:4.4.33
. (4.4.32 does not exists)
http://vat-rates/graphql/internal (Works with 4.4.31)
http://vat-rates/graphql/internal (Rejected with 4.4.33)
Seems like its the changes in #43388 that broke it.
How to reproduce
<?php
declare(strict_types=1);
require_once __DIR__.'/vendor/autoload.php';
use Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Validation;
$wrongUrl = 'http://vat-rates/graphql/internal';
$urlValidator = Validation::createValidator();
$urlConstraint = new Constraints\Url();
var_dump($urlValidator->validate($wrongUrl, $urlConstraint)->count());
Outputs
4.4.31
php test.php
int(0)
4.4.33
php test.php
int(1)
Possible Solution
Revert of #43388? maybe :)
Additional Context
No response