From 3bc449281ac2425fe201ee13d95576278b4a655e Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Sun, 15 Feb 2026 10:42:19 +0100 Subject: [PATCH] Similar naming on modules. Added sourceprovider/destinationprovider to list of collected password fields --- .../Library/DynamicLoader/RestoreDestinationProviderLoader.cs | 2 +- Duplicati/Library/DynamicLoader/SourceProviderLoader.cs | 2 +- Duplicati/Library/RestAPI/Database/Connection.cs | 2 ++ Duplicati/Library/RestAPI/Serializable/ServerSettings.cs | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Duplicati/Library/DynamicLoader/RestoreDestinationProviderLoader.cs b/Duplicati/Library/DynamicLoader/RestoreDestinationProviderLoader.cs index 39b43264e..e80048e6e 100644 --- a/Duplicati/Library/DynamicLoader/RestoreDestinationProviderLoader.cs +++ b/Duplicati/Library/DynamicLoader/RestoreDestinationProviderLoader.cs @@ -139,7 +139,7 @@ namespace Duplicati.Library.DynamicLoader /// /// Gets a list of loaded SourceProviders, the instances can be used to extract interface information, not used to interact with the SourceProvider. /// - public static IRestoreDestinationProviderModule[] ResotreDestinationProviders { get { return _RestoreDestinationProvider.Interfaces; } } + public static IRestoreDestinationProviderModule[] Modules { get { return _RestoreDestinationProvider.Interfaces; } } /// /// Gets a list of keys supported diff --git a/Duplicati/Library/DynamicLoader/SourceProviderLoader.cs b/Duplicati/Library/DynamicLoader/SourceProviderLoader.cs index 35694c29a..907b85862 100644 --- a/Duplicati/Library/DynamicLoader/SourceProviderLoader.cs +++ b/Duplicati/Library/DynamicLoader/SourceProviderLoader.cs @@ -139,7 +139,7 @@ namespace Duplicati.Library.DynamicLoader /// /// Gets a list of loaded SourceProviders, the instances can be used to extract interface information, not used to interact with the SourceProvider. /// - public static ISourceProviderModule[] SourceProviders { get { return _SourceProviderLoader.Interfaces; } } + public static ISourceProviderModule[] Modules { get { return _SourceProviderLoader.Interfaces; } } /// /// Gets a list of keys supported diff --git a/Duplicati/Library/RestAPI/Database/Connection.cs b/Duplicati/Library/RestAPI/Database/Connection.cs index ec3469780..f0dd040cc 100644 --- a/Duplicati/Library/RestAPI/Database/Connection.cs +++ b/Duplicati/Library/RestAPI/Database/Connection.cs @@ -66,6 +66,8 @@ namespace Duplicati.Server.Database .Concat(CompressionLoader.Modules.SelectMany(x => x.SupportedCommands ?? [])) .Concat(GenericLoader.Modules.SelectMany(x => x.SupportedCommands ?? [])) .Concat(WebLoader.Modules.SelectMany(x => x.SupportedCommands ?? [])) + .Concat(SourceProviderLoader.Modules.SelectMany(x => x.SupportedCommands ?? [])) + .Concat(RestoreDestinationProviderLoader.Modules.SelectMany(x => x.SupportedCommands ?? [])) .Concat(new Options(new Dictionary()).SupportedCommands) .Where(x => x.Type == Library.Interface.CommandLineArgument.ArgumentType.Password) .SelectMany(x => new string[] { x.Name }.Concat(x.Aliases ?? [])) diff --git a/Duplicati/Library/RestAPI/Serializable/ServerSettings.cs b/Duplicati/Library/RestAPI/Serializable/ServerSettings.cs index 74a3924de..0f3924539 100644 --- a/Duplicati/Library/RestAPI/Serializable/ServerSettings.cs +++ b/Duplicati/Library/RestAPI/Serializable/ServerSettings.cs @@ -250,7 +250,7 @@ namespace Duplicati.Server.Serializable get { return - (from n in Library.DynamicLoader.SourceProviderLoader.SourceProviders + (from n in Library.DynamicLoader.SourceProviderLoader.Modules select new DynamicModule(n)) .Concat( from n in Library.DynamicLoader.BackendLoader.Backends @@ -268,7 +268,7 @@ namespace Duplicati.Server.Serializable get { return - (from n in Library.DynamicLoader.RestoreDestinationProviderLoader.ResotreDestinationProviders + (from n in Library.DynamicLoader.RestoreDestinationProviderLoader.Modules select new DynamicModule(n)) .ToArray(); }