ECS | Username uniqueness validation should be case insensitive for usernames from different tenants

Description

Username uniqueness validation should be case insensitive for usernames from different tenants

Preconditions:

  1. Central tenant and member tenant exist

  1. User A has been created in Central tenant with "Staff" user type and has NO assigned affiliations. Important! User A username contains both uppercase and lowercase characters

  1. User B has been created in member tenant with "Staff" user type

  1. Authorized User B is logged in member tenant with the following permissions:

  • Users: Can create and edit users

  • Users: Can edit user profile

Steps to reproduce:

  1. Go to "Users" app

  2. Click "Actions" button on "User search results" pane and select "New" option

  3. Fill the following fields:

  •  

    • "Last name" - enter any value (e.g. "Test")

    • "Patron group" - select any value from the dropdown

    • "User type" - select "Staff" value from the dropdown

    • "Username" - enter User A username in lowercase

    • "Email" - enter existing email

  1. Click "Save & close" button on "Create User" page

Expected result: 

  • Error toast message "This username already exists" appears

  • User was not saved

Environment

None

Potential Workaround

None

Attachments

6

Checklist

hide

TestRail: Results

Activity

Show:

Joseph ReimersDecember 8, 2023 at 6:16 PM

Works as expected in Bugfest environment

Polina UstimenkoDecember 8, 2023 at 10:51 AM

Tested on https://bugfest-poppy-consortium.int.aws.folio.org/

Works as expected 

cc:  

JenkinsNotificationsDecember 8, 2023 at 8:27 AM

Deployed to the Poppy bf env. Moved status to In bugfix review from status Awaiting deployment. Please proceed with the verification.

Joseph ReimersDecember 6, 2023 at 3:39 PM

Works as expected.

NinaChistovaDecember 6, 2023 at 12:42 PM
Edited

Tested on https://folio-dev-thunderjet-consortium.ci.folio.org/

Works as expected

could you please review? Thank you!

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

Poppy (R2 2023) Bug Fix

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 24, 2023 at 2:09 PM
Updated March 20, 2024 at 8:27 AM
Resolved December 6, 2023 at 3:39 PM
TestRail: Cases
TestRail: Runs