Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Creating user with japanese signs in email address fails without error message in Admin UI #37192

@DaBonse

Description

@DaBonse

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

admin/ui

Describe the bug

Creating a user with japanese signs in the local part of an email address fails without an error message, in the admin UI.

  • Create a realm with email as username setting
  • Go to Admin UI and create a user with this email address: あいうえお@example.com
  • Click "Create" -> nothing happend in the frontend

In the backend, there was a 400 error thrown.

This kind of email address is technically not a valid email address. The UI validation and the api validation should reject this kind of email address. But not the email validator is the source of the error, instead the username validator throws the error.

When you try to create a user with this email address via Admin API, you will get this error:

Error creating user: error-username-invalid-character

Maybe related to:

#31140

#25339

Version

26.1.1

Regression

  • The issue is a regression

Expected behavior

The email validator should reject this kind of email addresses generally, in the UI and in the API.

Actual behavior

See Bug description.

How to Reproduce?

  • Create a realm with email as username setting
  • Go to Admin UI and create a user with this email address: あいうえお@example.com
  • Click "Create" -> nothing happend in the frontend

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions