From 9aa975d665b7e7eb576b02559bf02e9ebf983dbf Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 19 Jun 2026 01:56:29 +0200 Subject: [PATCH] fix(web-app-nextcloud): JSON-encode list/dict addon configvalues in plugin loader occ config:app:set serialised non-mapping sequences via | string (Python repr), so list/dict configvalues like xwiki instances persisted as invalid JSON and the consumer fell back to empty. Encode any non-string sequence as JSON too. Co-Authored-By: Claude Opus 4.8 --- roles/web-app-nextcloud/tasks/plugin/03_configure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/web-app-nextcloud/tasks/plugin/03_configure.yml b/roles/web-app-nextcloud/tasks/plugin/03_configure.yml index ba85a5bbee..11d9adf2b2 100644 --- a/roles/web-app-nextcloud/tasks/plugin/03_configure.yml +++ b/roles/web-app-nextcloud/tasks/plugin/03_configure.yml @@ -11,7 +11,7 @@ {% for item in (addon_spec.config.plugin_configuration | default([])) %} {{ NEXTCLOUD_DOCKER_EXEC_OCC }} \ config:app:set {{ item.appid }} {{ item.configkey }} \ - --value '{{ ( (item.configvalue | to_json) if (item.configvalue is mapping) else (item.configvalue | string) ) + --value '{{ ( (item.configvalue | to_json) if (item.configvalue is mapping or (item.configvalue is sequence and item.configvalue is not string)) else (item.configvalue | string) ) | regex_replace("'", "'" ~ '"' ~ "'" ~ '"' ~ "'") }}' {% endfor %} args: