500 error when resetting password for some users.
Description
CSP Request Details
None
CSP Rejection Details
None
Potential Workaround
None
Attachments
4
has to be done before
relates to
Checklist
hideActivity
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
Still occasionally active on https://eureka-bugfest-ramsons.int.aws.folio.org/
Yauhen Viazau December 3, 2024 at 3:05 PMEdited
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 PMEdited
redeployed on https://folio-etesting-snapshot-diku.ci.folio.org/
For bugfest there is no released version of mod-users-keycloak yet
Yauhen Viazau December 3, 2024 at 7:49 AM
Done
Details
Assignee
Dima TkachenkoDima TkachenkoReporter
Ryan BergerRyan BergerPriority
P1Story Points
2Sprint
NoneDevelopment Team
EurekaRCA Group
Implementation coding issueTestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee

Reporter

Priority
Story Points
2
Sprint
None
Development Team
Eureka
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
Steps to reproduce:
Log into https://folio-etesting-snapshot-diku.ci.folio.org/
Enable any search filter option to retrieve users (f.e., select “Active“ in “Status“ filter)
Click on the name of a user (note this only happens for certain users and only once)
In the third pane, click on “Actions” button → Select “Edit” option
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 wherePOST /users-keycloak/password-reset/link
can throw the above error. It may be that the keycloak user exists, but thepasswordExists
property is null. Adding null safety should hopefull prevent this edge-case.Additional information:
Reproducible occasionally, only for users not having a Keycloak record
Also active occasionally on https://eureka-bugfest-ramsons.int.aws.folio.org/