Hello
I think that it is a design mistake to allow to manage backend options at 2 different places in the web ui.
The backend options should only be available in the tab 2 where destination is managed. In the tab 5, all other options should be available but NOT backend options. Doing otherwise is illogical since when users have added advanced backend options in the tab 2, they see them available in the option list of the tab 5 but their already entered values are not displayed.
I think that the simplest way to avoid this confusion could be to just remove the backend options in tab 5 UI. This should be trivial it seems:
diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js
index 32b61c0ef..cc45be304 100644
--- a/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js
+++ b/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js
@@ -640,12 +640,8 @@ backupApp.controller('EditBackupController', function ($rootScope, $scope, $rout
var encmodule = $scope.Options['encryption-module'] || '';
var compmodule = $scope.Options['compression-module'] || $scope.Options['--compression-module'] || 'zip';
- var backmodule = $scope.Backup.TargetURL || '';
- var ix = backmodule.indexOf(':');
- if (ix > 0)
- backmodule = backmodule.substr(0, ix);
- $scope.ExtendedOptionList = AppUtils.buildOptionList($scope.SystemInfo, encmodule, compmodule, backmodule);
+ $scope.ExtendedOptionList = AppUtils.buildOptionList($scope.SystemInfo, encmodule, compmodule, false);
setupServerModules();
AppUtils.extractServerModuleOptions($scope.ExtendedOptions, $scope.ServerModules, $scope.servermodulesettings, 'SupportedLocalCommands');
I think that being intended for advanced users, the command line interface should not be concerned by this change.
Thoughts ?