Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3712

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

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] 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

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core (shared)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: