500 error when resetting password for some users.

Description

Steps to reproduce:

  1. Log into https://folio-etesting-snapshot-diku.ci.folio.org/

  2. Enable any search filter option to retrieve users (f.e., select “Active“ in “Status“ filter)

  3. Click on the name of a user (note this only happens for certain users and only once)

  4. In the third pane, click on “Actions” button → Select “Edit” option

  5. Click on “Send reset password email” link next to “Username“ field

Expected result: A modal appears with the reset password link.

Actual result: A modal with the reset password link does NOT appear. In DevTools, POST /users-keycloak/password-reset/link request fails with 500 status and the following response body:

 

This was discovered by QA when verifying . The UI first checks if user exists by calling users-keycloak/auth-users/ and will create the keycloak user if that endpoint returns a 404. Please check and see if there are other cases where POST /users-keycloak/password-reset/link can throw the above error. It may be that the keycloak user exists, but the passwordExists property is null. Adding null safety should hopefull prevent this edge-case.

Additional information:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

4

Checklist

hide

Activity

Show:

Yauhen Viazau December 11, 2024 at 12:41 PM

Tested on https://eureka-bugfest-ramsons.int.aws.folio.org/ - works as expected

Reset password link is generated successfully for existing or new users with or without a Keycloak record. See examples:

 

Yauhen Viazau December 5, 2024 at 12:40 PM

Yauhen Viazau December 3, 2024 at 3:05 PM
Edited

Tested on https://folio-etesting-snapshot-diku.ci.folio.org/ - not reproducible

See examples:

To be released/deployed/tested on Eureka R BugFest env.

Dima Tkachenko December 3, 2024 at 12:15 PM
Edited

redeployed on https://folio-etesting-snapshot-diku.ci.folio.org/
For bugfest there is no released version of mod-users-keycloak yet

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Eureka

Fix versions

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 20, 2024 at 4:00 PM
Updated December 11, 2024 at 12:41 PM
Resolved December 3, 2024 at 3:05 PM
Loading...