From 97ab0712e39605520b3ac8fb8df1c00bf0437797 Mon Sep 17 00:00:00 2001 From: Yuriy M <95305560+yuremm@users.noreply.github.com> Date: Mon, 7 Nov 2022 11:54:10 +0300 Subject: [PATCH] feat: for file based scripts check both script revision and file (#2878) modification time #2877 Co-authored-by: Yuriy Movchan --- .../java/io/jans/service/custom/script/CustomScriptManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jans-core/script/src/main/java/io/jans/service/custom/script/CustomScriptManager.java b/jans-core/script/src/main/java/io/jans/service/custom/script/CustomScriptManager.java index 11f948be734..a4447560437 100644 --- a/jans-core/script/src/main/java/io/jans/service/custom/script/CustomScriptManager.java +++ b/jans-core/script/src/main/java/io/jans/service/custom/script/CustomScriptManager.java @@ -224,7 +224,7 @@ private ReloadResult reloadCustomScriptConfigurations( // reload script automatically after changing location_type long fileModifiactionTime = getFileModificationTime(newCustomScript.getLocationPath()); - newCustomScript.setRevision(fileModifiactionTime); + newCustomScript.setRevision(newCustomScript.getRevision() + fileModifiactionTime); } String newSupportedCustomScriptInum = StringHelper.toLowerCase(newCustomScript.getInum());