Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistencies in Role Creation with API and UI for Role Name validation #23265

Open
Dinithi-Hasanika opened this issue Feb 25, 2025 · 0 comments
Labels

Comments

@Dinithi-Hasanika
Copy link

Description

There is a requirement to create roles with role name as UUID. But there is a hardcoded front end regex validation for role names (^[a-zA-Z][a-zA-Z0-9-_. ]+$) when creating role from the console application. This validates whether the role name starts with an alphabetic letter.

From the other hand, There is no such validation for role name, when creating Roles using role management REST API [1]

[1] - https://is.docs.wso2.com/en/latest/apis/roles-v2-rest-api/#tag/Roles-Endpoint/operation/createRoleV2

Steps to Reproduce

From console create a role with role name starts with a number (UUID). It fails the validation and error message will be appeared.

Version

IS 7.0.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant