You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Admin and account consoles fail in product builds: theme-resources.ftl not found #55514
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
Bug Description
Product builds of Keycloak (for example RHBK images built with -DskipCommunityTranslations) fail to render the Admin Console and Account Console.
index.ftl for both consoles imports theme-resources.ftl, but that template was only packaged under themes/.../resources-community/ for the admin and account base themes. Community translations are skipped in product builds, so FreeMarker fails with TemplateNotFoundException: Template not found for name "theme-resources.ftl".
Community distributions are unaffected because they include resources-community.
Version
26.8.2
Regression
The issue is a regression
Expected behavior
Admin Console and Account Console load successfully in product builds.
Actual behavior
Requests to /admin/ and /realms/master/account/ return HTTP 500. Server log shows:
org.keycloak.theme.FreeMarkerException: Failed to process template index.ftl
Caused by: freemarker.template.TemplateNotFoundException: Template not found for name "theme-resources.ftl"
How to Reproduce?
Run a product image such as registry-proxy.engineering.redhat.com/rh-osbs/keycloak-rhbk-openshift-rhel9:26.8-2 with start-dev.
Open http://localhost:8080/admin/ or http://localhost:8080/realms/master/account/.
Observe HTTP 500 and the FreeMarker error in the server log.
Anything else?
Introduced by #49647, which added identical theme-resources.ftl copies under each theme type. Login worked in product builds because its copy also lived under resources/; admin and account only had community copies.
Activity
Add regression test for shared theme-resources.ftl resolution
Share theme-resources.ftl via ThemeResourceProvider (keycloak#55518)