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

Integer validation error not shown for user profile fields [GHI#42178]

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

      user-profile

      Describe the bug

      When I create a field in the user profile and add a length min/max validation to it, the error message doesn't show in the admin UI, the user is not saved, and an exception is shown in the console.

      Version

      main

      Regression

      [ ] The issue is a regression

      Expected behavior

      The validation error should be shown.

      Actual behavior

      No validation error is shown

      How to Reproduce?

      Create a new field and add a length validation to it

      <img width="1047" height="274" alt="Image" src="https://github.com/user-attachments/assets/daa11ca7-0fcc-42b3-8c18-d616293757af" />

      <img width="750" height="241" alt="Image" src="https://github.com/user-attachments/assets/71cc86c5-40d8-447d-83df-de54e288358a" />

      Anything else?

      The problem is that the length validation error adds integer parameters, while front end only expects strings.

      I'll provide a fix.

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

                Created:
                Updated:
                Resolved: