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

Username containing a '#' is truncated in Admin Console when hiding inherited roles [GHI#42949]

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

      admin/ui

      Describe the bug

      When usernames (from UserStorage SPIs) containing the '#' character cause errors in the Keycloak admin console when attempting to assign roles.
      Specifically, the user ID is truncated at the '#' character, leading to a "User not found" error.

      Version

      main

      Regression

      [ ] The issue is a regression

      Expected behavior

      UI should escape the special char and handle the request

      Actual behavior

      "User not found" error

      How to Reproduce?

      Use a custom User Storage SPI i.e from quickstarts
      Edit the users.properties file to include a user with special characters (e.g. test2#y400)
      Find the user in admin console users page and click on it to see user's details
      Navigate to Role mapping tab
      Uncheck the "Hide inherited roles" box.
      see the UI error

      Anything else?

      No response

              mkanis Martin Kanis
              mkanis Martin Kanis
              Keycloak Core (shared)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: