From cc7f755fe995ee9e80371c50145ea42c092b0c6f Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Tue, 9 Feb 2016 09:02:51 +0100 Subject: [PATCH] KEYCLOAK-2425 Replacing SNAPSHOT with timestamp in /auth/resources/ path doesn't work well with load balancing --- common/src/main/java/org/keycloak/common/Version.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/org/keycloak/common/Version.java b/common/src/main/java/org/keycloak/common/Version.java index 8041138eda..b1b9705385 100755 --- a/common/src/main/java/org/keycloak/common/Version.java +++ b/common/src/main/java/org/keycloak/common/Version.java @@ -45,14 +45,10 @@ public class Version { Version.VERSION = props.getProperty("version"); Version.BUILD_TIME = props.getProperty("build-time"); Version.RESOURCES_VERSION = Version.VERSION.toLowerCase(); - if (Version.RESOURCES_VERSION.endsWith("-snapshot")) { - Version.RESOURCES_VERSION = Version.RESOURCES_VERSION.replace("-snapshot", "-" + Time.currentTime()); - } } catch (IOException e) { - Version.VERSION= Version.UNKNOWN; - Version.BUILD_TIME= Version.UNKNOWN; + Version.VERSION = Version.UNKNOWN; + Version.BUILD_TIME = Version.UNKNOWN; } - } }