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

Validation errors for required actions don't show translated messages [GHI#42182]

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 entering an invalid value like "-1" into the minimum age of authentication, the error message is not shown as text, and not at the UI control element:

      <img width="706" height="128" alt="Image" src="https://github.com/user-attachments/assets/c995fd98-a0bd-4eaa-97fe-b3b39c339237" />

      Version

      main

      Regression

      [ ] The issue is a regression

      Expected behavior

      Show a proper error message, ideally at the input field.

      Actual behavior

      A error popup, with a message code instead of the text.

      How to Reproduce?

      Edit a required action, and add a negative value like "-1"

      Anything else?

      I wanted to do some advanced validation and error message, and this one was blocking me. This is a simple reproducer with the current code.

      I'll provide a draft PR and I'm looking for some advanced hints.

              Unassigned Unassigned
              pvlha Pavel Vlha
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: