+
Skip to content

Translations specified in the admin console do not override the translations specified in a theme #36037

@martin-kanis

Description

@martin-kanis

Before reporting an issue

  • 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

translations

Describe the bug

Theme messages are not enhanced in KeycloakErrorHandler with realm's overrides (realm settings -> localization -> realm overrides). That means whenever there is a error like "BAD REQUEST" or "NOT FOUND", default messages are used in the templates.

Version

main

Regression

  • The issue is a regression

Expected behavior

Messages are enhanced in KeycloakErrorHandler

Actual behavior

Messages are not enhanced in KeycloakErrorHandler

How to Reproduce?

Have a custom login theme and some realm overrides defined for a realm.

Try to authenticate for the realm by trying to access the admin console and made following errors:

  1. http://0.0.0.0:8080/realms/test/protocol/openid-connect/auth... resulting in BAD REQUEST -> notice that error page is shown without overrides applied for the template
  2. http://0.0.0.0:8080/realms/test/ -> again, no overrides are applied
    Note that the realm must be present in the path in order for overrides to be taken into account.

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载