Files
computer-playbook/roles/web-app-xwiki/templates/installjobrequest.xml.j2
Kevin Veen-Birkenbach 83936edf73 fix(xwiki): use proper InstallRequest XML format for extension installation
- Replace custom <request> with class='org.xwiki.extension.job.InstallRequest'
- Use loop over extensions_to_install to build <extensionId> list
- Move namespace into <namespaces><string>wiki:xwiki</string>
- Remove unused <id>/<jobType> from root
- Ensure installDependencies, interactive, verbose inside request
- Fixes issue where server echoed <rest><list/> instead of actual extensions
2025-09-16 15:25:34 +02:00

28 lines
827 B
Django/Jinja

<?xml version="1.0" encoding="UTF-8"?>
<!--
InstallRequest for the XWiki Extension Manager.
We MUST render from the computed `extensions_to_install` list
(not from raw feature flags), otherwise an empty <list/> is sent
and nothing is installed.
-->
<jobRequest xmlns="http://www.xwiki.org">
<request class="org.xwiki.extension.job.InstallRequest">
<extensions>
{% for ext in extensions_to_install %}
<extensionId>
<id>{{ ext.id }}</id>
<version>{{ ext.version }}</version>
</extensionId>
{% endfor %}
</extensions>
<namespaces>
<!-- Install on the main wiki -->
<string>wiki:xwiki</string>
</namespaces>
<installDependencies>true</installDependencies>
<interactive>false</interactive>
<verbose>true</verbose>
</request>
</jobRequest>