8000 Admin and account consoles fail in product builds: theme-resources.ftl not found · Issue #55514 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Admin and account consoles fail in product builds: theme-resources.ftl not found #55514

Description

@edewit

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

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?

  1. Run a product image such as registry-proxy.engineering.redhat.com/rh-osbs/keycloak-rhbk-openshift-rhel9:26.8-2 with start-dev.
  2. Open http://localhost:8080/admin/ or http://localhost:8080/realms/master/account/.
  3. 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

  1. added
    kind/bug
    on Nov 25, 2026
  2. added theissue type on Nov 25, 2026
  3. added
    area/admin/ui
    on Nov 25, 2026
  4. added a commit that references this issue on Nov 25, 2026
    66444df
  5. added a commit that references this issue on Nov 26, 2026
    7c669fe
  6. added
    priority/blocker
    and removed
    priority/important
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/admin/uikind/bugpriority/blockerrelease/26.8.3release/27.0.0team/core-shared

Type

Fields

No fields configured for bug.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

0