Skip to content

User Portal: Unmanaged 400 error when creating user with uppercase letters in "Username" field #7532

Description

@viktec

When trying to create a new user from the user portal, if the Username field contains uppercase letters, a generic error is returned:

Error
Request failed with status code 400

This behavior is not correct: the interface should show an explicit message indicating that the username must contain only lowercase letters, as per the validation regex:

^[a-z][-._a-z0-9]*$

In the cluster-admin interface the error is still not well-handled, but at least a clearer message is shown.


Steps to reproduce

  1. Access the user portal
  2. Click on "New user"
  3. Enter a username with uppercase letters, e.g. Vittorio123
  4. Click "Save"

Expected behavior

A clear and contextual error message should be shown, for example:

The username may only contain lowercase letters, numbers, and the characters -, ., _.

Actual behavior

A generic error message is displayed:

Errore
Request failed with status code 400

Image

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

    verifiedAll test cases were verified successfully

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions