-
Notifications
You must be signed in to change notification settings - Fork 292
Description
Setup
- Rancher version: v2.13.0-alpha3
- Browser type & version: Version 140.0.7339.186 (Official Build) (arm64)
Describe the bug
When accessing the Add Project Member dialog via creating a project or editing the config of an existing project it's possible to type a user in without selecting them and add them to the list of members without an error being thrown.
When trying to save the changes the error expected to be seen from the typed in user is thrown.
To Reproduce
- In Rancher navigate to either the local/downstream cluster -> Project/Namespaces
- Create a Project
- Click
Addto open theAdd Project Memberdialog - Type a non-existent user into the
Select Memberfield and clickAdd - Observe the non-existent user is added to the project list instead of an error being thrown in the dialog
- Attempt to save the changes and the expected error is thrown
- Remove the non-existent user
- Create a new project and save
- In the Projects/Namespaces page select
Edit Configfor the new project - Click
Addto open theAdd Project Memberdialog - Observe the non-existent user is added to the project list instead of an error being thrown in the dialog
- Attempt to save the changes and the expected error is thrown.
Result
Expected Result
The Validation failed in API: must target a user [userId]/[userPrincipalId] OR a group [groupId]/[groupPrincipalId] error should be thrown inside the Add Project Member dialog box instead of adding the non-existent user to the list of members.
Similar to the behavior when accessing the Add Project Member dialog from the Clusters and Project Members page.
Screenshots