Before reporting an issue
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
How to Reproduce?
Run keycloak latest (I did using docker image).
- Login to admin console using default admin user pass
- Go to Authentication -> Policies -> Password Policy
- Add 'Not recently used' policy and save
- Go to Users -> Add user
- Create some user with any username
- Credentials -> Set password
- Enter a password, disable temporary checkbox. Password is created.
- Now click 'Reset password'
- 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