Skip to content

Customer address telephone validation does not work if there is no allowed characters #40361

@VincentMarmiesse

Description

@VincentMarmiesse

Preconditions and environment

  • Magento version: 2.4.8-p3

Steps to reproduce

Hello,

The customer address validation done in class vendor/magento/module-customer/Model/Validator/Telephone.php does not work as intended if you type no allowed characters.

Steps to reproduce:

  • Create a customer account
  • Go to address book and create an adress
  • Enter aaaa as Telephone

Expected result

I should have an error message saying the telephone is invalid

Actual result

Address is saved with aaaa as Telephone

Additional information

The validation works if you enter at least one allowed character, some examples:

  • 0aaaa: works as intended, I have the error message
  • ,,,,: does not work, I don't have any error message
  • (aaa works as intended, I have the error message

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready for Confirmation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions