Skip to content

Reset password in admin UI with 'not recently used' password policy leads to error 'Device already exists with the same name' #42736

@Wouter-M

Description

@Wouter-M

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

No response

Describe the bug

Setting a password in the admin console, after enabling 'not recently used' password policy, leads to an error.

Version

26.3.4; latest

Regression

  • The issue is a regression

How to Reproduce?

Run keycloak latest (I did using docker image).

  1. Login to admin console using default admin user pass
  2. Go to Authentication -> Policies -> Password Policy
  3. Add 'Not recently used' policy and save
  4. Go to Users -> Add user
  5. Create some user with any username
  6. Credentials -> Set password
  7. Enter a password, disable temporary checkbox. Password is created.
  8. Now click 'Reset password'
  9. Enter another password than the first time, again disable temporary checkbox

Actual behavior

Error: Device already exists with the same name

In the network inspector I see a 409 Conflict:

{"error":"conflict","error_description":"Device already exists with the same name"}

The password does appear to get updated.

Expected behavior

No such error message.

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions