Troubles adding Files-settinfs via files_admin.py script.
-
I’m using the latest version of “Files Admin” from https://stash.kopano.io/projects/KSC/repos/webapp-tools/browse/files_admin.
When I add a owncloud config using the command:
python files_admin.py --user klaus --file owncloud.cfg
with my owncloud.cfg looking like this:
[setting] name = cloud type = Owncloud workgroup = server_path = /remote.php/webdav server_address = cloud.klaus.com server_ssl = true use_zarafa_credentials = true server_port = 443 default_user = default_password =
The value for “Use SSL” is empty afterwards when I look in the settings from within WebApp, and when I do a backup and look through the json-backup, the “Use SSL”-setting actually has turned into
"server_ssl": "true",
which doesn’t work. It should have been
"server_ssl": true,
without the double-quotes around the word “true”, at least if I change to that, it works.
If I change the script like this, it works, at least for me:
diff -ru files_admin.py.orig files_admin.py --- files_admin.py.orig 2020-07-13 09:34:28.473538617 +0200 +++ files_admin.py 2020-07-13 09:58:27.585820636 +0200 @@ -108,7 +108,7 @@ "server_path": encode(configfile['setting']['server_path']).decode('utf-8'), "workgroup": encode(configfile['setting']['workgroup']).decode('utf-8'), "server_address": encode(address).decode('utf-8'), - "server_ssl": ssl, + "server_ssl": configfile['setting'].as_bool('server_ssl'), "current_account_id": encode('d4cacda458a2a26c301f2b7d75ada530').decode('utf-8'), "use_zarafa_credentials": configfile['setting'].as_bool('use_zarafa_credentials'), "user": encode(username).decode('utf-8'),
This on Debian 9, with these packages:
kopano-webapp-plugin-files 2.1.5.305+103.1
kopano-webapp 4.1.2835+114.1
kopano-server 8.7.14.0-0+38.1