From 109d376cbd783549fb9676ea41f1bb769293aef4 Mon Sep 17 00:00:00 2001 From: Ainur Date: Wed, 6 Mar 2024 15:48:52 +0100 Subject: [PATCH] CB-4816 refresh drivers config only when starting server --- .../src/io/cloudbeaver/server/CBApplication.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java index 063fb9cfe9f..678a86865da 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBApplication.java @@ -261,6 +261,7 @@ protected void startServer() { log.error(e); return; } + refreshDisabledDriversConfig(); configurationMode = CommonUtils.isEmpty(serverName); @@ -380,6 +381,8 @@ public boolean implies(ProtectionDomain domain, Permission permission) { eventController.scheduleCheckJob(); + refreshDisabledDriversConfig(); + runWebServer(); log.debug("Shutdown"); @@ -542,7 +545,6 @@ protected Path loadServerConfiguration() throws DBException { log.debug("Runtime configuration [" + runtimeConfigFile.getAbsolutePath() + "]"); parseConfiguration(runtimeConfigFile); } - refreshDisabledDriversConfig(); return path; }