[MODUSERSKC-9] (Demo env) Error when generating password reset link for a user without credentials Created: 15/Jan/24  Updated: 19/Jan/24

Status: Open
Project: mod-users-keycloak
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Yauhen Viazau Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: back-end, epam-eureka
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: File Demo_reset_password_link_not_generated_no_creds.mp4    
Sprint:
Development Team: Eureka
RCA Group: TBD

 Description   

Overview: Error when generating password reset link for a user without credentials

Preconditions: 

On Demo env:

  • a user exists in the system (POST /users-keycloak/users)
  • given user does NOT have credentials created

Steps to Reproduce:

  1. Generate password reset link for a user from Preconditions (POST /users-keycloak/password-reset/link)

Expected Results: Reset request yielded success response

Actual Results: Response with status "400" and token validation error in body:

{
    "errors": [
        {
            "message": "[400 Bad Request] during [POST] to [http://notify] [NotificationClient#sendNotification(Notification)]: [Requested template does not support 'text/plain' output format]",
            "type": "BadRequest",
            "code": "validation_error"
        }
    ],
    "total_records": 1
}

Additional Information:
See attached screencast: Demo_reset_password_link_not_generated_no_creds.mp4

Password reset link successfully generated for a user with credentials

The same error is returned in response to POST /users-keycloak/forgotten/password (if user does not have credentials created)

Interested parties:


Generated at Thu Feb 08 22:29:01 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.