From 0d72221b3e98f859a455ac666239b7787776d7d6 Mon Sep 17 00:00:00 2001 From: Steven Hawkins Date: Mon, 7 Jul 2025 09:18:24 -0400 Subject: [PATCH] fix: correcting spi-theme options closes: #40930 Signed-off-by: Steve Hawkins (cherry picked from commit eba493495069325e4d281e0341573bf7b0c4a962) --- docs/documentation/server_development/topics/themes.adoc | 2 +- docs/guides/ui-customization/themes.adoc | 2 +- .../java/org/keycloak/services/resources/WelcomeResource.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/documentation/server_development/topics/themes.adoc b/docs/documentation/server_development/topics/themes.adoc index fc370ac57ee0..d52feea014bc 100644 --- a/docs/documentation/server_development/topics/themes.adoc +++ b/docs/documentation/server_development/topics/themes.adoc @@ -74,7 +74,7 @@ restarting {project_name}. + [source,bash] ---- -bin/kc.[sh|bat] start --spi-theme--static-max-age=-1 --spi-theme--cache-themes=false --spi-theme-cache--templates=false +bin/kc.[sh|bat] start --spi-theme--static-max-age=-1 --spi-theme--cache-themes=false --spi-theme--cache-templates=false ---- . Create a directory in the `themes` directory. diff --git a/docs/guides/ui-customization/themes.adoc b/docs/guides/ui-customization/themes.adoc index 7d53826a3aa0..a7cf860db926 100644 --- a/docs/guides/ui-customization/themes.adoc +++ b/docs/guides/ui-customization/themes.adoc @@ -79,7 +79,7 @@ restarting {project_name}. + [source,bash] ---- -bin/kc.[sh|bat] start --spi-theme-static-max-age=-1 --spi-theme-cache-themes=false --spi-theme--cache-templates=false +bin/kc.[sh|bat] start --spi-theme--static-max-age=-1 --spi-theme--cache-themes=false --spi-theme--cache-templates=false ---- . Create a directory in the `themes` directory. diff --git a/services/src/main/java/org/keycloak/services/resources/WelcomeResource.java b/services/src/main/java/org/keycloak/services/resources/WelcomeResource.java index 5ced667f5964..1cf1d1288348 100755 --- a/services/src/main/java/org/keycloak/services/resources/WelcomeResource.java +++ b/services/src/main/java/org/keycloak/services/resources/WelcomeResource.java @@ -179,7 +179,7 @@ private Response createWelcomePage(String successMessage, String errorMessage) { Theme theme = getTheme(); if(Objects.isNull(theme)) { - logger.error("Theme is null please check the \"--spi-theme-default\" parameter"); + logger.error("Theme is null please check the \"--spi-theme--default\" parameter"); errorMessage = "The theme is null"; ResponseBuilder rb = Response.status(Status.BAD_REQUEST) .entity(errorMessage)