Skip to content

Issue when updating customer email in Admin Panel with ö and .swiss domain #39394

Open
@ouwfuc

Description

@ouwfuc

Preconditions and environment

Magento versions tested:

  • 2.4.5-p10
  • 2.4.6-p7
  • 2.4.7

Steps to reproduce

  1. Go to the Admin Panel.
  2. Navigate to Customers > All Customers and select a customer.
  3. In the Account Information section, try to update the email address to something like max@möstermann.swiss.
  4. Save the changes.

Expected result

Email address and customer saved successfully

Actual result

After attempting to save the email, the following error message is displayed at the top of the page:

  • "Email" is not a valid hostname.
  • 'xn--mstermann-07a.swiss' looks like a DNS hostname but we cannot match it against the hostname schema for TLD 'swiss'.
  • 'xn--mstermann-07a.swiss' looks like a local network name, which is not an acceptable format.

Additional information

Observations:

  • When I enter an email like max@möstermann.com, it works fine.
  • When I enter max@möstermann.swiss with the ö, the email is converted to its Punycode equivalent (xn--mstermann-07a.swiss), and the error is triggered.
  • I tried .swiss by itself without the special character ö (e.g., `[email protected]) and it works fine.

It seems like the combination of the ö character and .swiss is causing the issue. The email address gets converted to Punycode, but it seems Magento or the underlying validation logic doesn't handle this combination correctly.

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”.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: AccountComponent: AdminIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: ready for devReported on 2.4.5-p10Indicates original Magento version for the Issue report.Reported on 2.4.6-p7Indicates original Magento version for the Issue report.Reported on 2.4.7Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions