From c7abe17576bc113fbd0f11e304baa6b44c3a94d9 Mon Sep 17 00:00:00 2001 From: Ainur Date: Wed, 6 Mar 2024 13:45:42 +0100 Subject: [PATCH] CB-4824 return network handlers for some embedded drivers --- .../io/cloudbeaver/model/WebDatabaseDriverInfo.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebDatabaseDriverInfo.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebDatabaseDriverInfo.java index fec13d16fe..a0d4602162 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebDatabaseDriverInfo.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/model/WebDatabaseDriverInfo.java @@ -214,12 +214,12 @@ public String[] getApplicableAuthModels() { @Property public String[] getApplicableNetworkHandlers() { - if (driver.isEmbedded()) { - return new String[0]; + if (!driver.isEmbedded() || CommonUtils.toBoolean(driver.getDriverParameter(DBConstants.DRIVER_PARAM_ENABLE_NETWORK_PARAMETERS))) { + return NetworkHandlerRegistry.getInstance().getDescriptors(driver).stream() + .filter(h -> !h.isDesktopHandler()) + .map(NetworkHandlerDescriptor::getId).toArray(String[]::new); } - return NetworkHandlerRegistry.getInstance().getDescriptors(driver).stream() - .filter(h -> !h.isDesktopHandler()) - .map(NetworkHandlerDescriptor::getId).toArray(String[]::new); + return new String[0]; } @Property