Configuration validation fails for email fields with token values

Created on 4 March 2024, about 1 year ago
Updated 30 April 2024, 11 months ago

Problem/Motivation

After upgrading to D10.2 I get errors from Configuration Inspector β†’ module, saying, that ""<site>" is not a valid email address." for config keys like "email_from.addresses" for mailer_policy configs. This happens, because in issue #3364506 ✨ Add optional validation constraint support to ConfigFormBase Fixed constraint has been added.

Steps to reproduce

Install D10.2, config_inspector and symfony_mailer modules, create mailer policy using From element with "<site>" as Address. Then check configuration with config_inspector module.

Proposed resolution

Maybe it is better to change type from "email" to "string". It looks more appropriate, than changing core email validator.

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia sorlov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024