How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?
Our company, Collabora Productivity, one of the leading contributors to LibreOffice, develops a WOPI app - similar to MS Office Online - called Collabora Online .
We started to evaluate if Nuxeo platform is a compatible WOPI host, to allow our customers to integrate Collabora Online with Nuxeo. We learned that Nuxeo has own WOPI module , , , and rolled out a test Nuxeo server (self-built from master according to ) to try to connect it with Collabora Online.
We could set the server up, and could make necessary changes to configuration as per documentation . Namely, nuxeo.jwt.secret and nuxeo.wopi.discoveryURL had to be specified in nuxeo.conf. Our testing environment doesn't use https to make testing simpler, so no special configuration of that was necessary; nor configuring base URL.
But that wasn't enough to allow Nuxeo recognize the WOPI app, and suggest corresponding buttons/links when working with document types that Collabora Online supports (there are more than 80 of them).
It turned out that Nuxeo had filtered out all apps that Collabora Online was advertising in its discovery. It appears that nuxeo-wopi module uses own configuration contrib:
used for filtering the apps from discovery (WOPIServiceImpl.loadDiscovery), which only includes apps advertised by MS discovery: Word, Excel, PowerPoint, and WopiTest. And we found no documentation on how could we extend the list without modifying the XML inside the JAR. That was my first question: how to allow users to configure app filter list beyond what is pre-defined by Nuxeo? (Of course, we could modify it locally; but that doesn't look sane to suggest doing that to users.)
After our modification of properties-contrib.xml inside nuxeo-wopi JAR, Nuxeo started to recognize our WOPI app, and allowed us to open/edit/save the documents successfully. But the links it provided shown broken images: see badButtonIcons.png (attached). Turns out that Nuxeo assumes that all apps have such names so that there are appropriate
On , there is a sign that connecting WOPI apps other than MS is supported:
If you target a WOPI client other than Office Online, just set its discovery URL instead of the Office Online one.
Thus we think that addressing these two issues could help actually implement such connection, and improve the integration of the two products, to our mutual interest.
Hope this makes sense; hope to hear from you soon.
You can already configure new apps directly in your own module that you deploys inside Nuxeo Server, or through a configuration file inside
For instance, adding a new file
$NUXEO_HOME/nxserver/config where you can add new apps:
<?xml version="1.0"?> <component name="com.collaboraoffice.wopi.properties"> <require>org.nuxeo.wopi.properties</require> <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration"> <property name="org.nuxeo.wopi.supportedAppNames">YouApp1</property> <property name="org.nuxeo.wopi.supportedAppNames">YouApp2</property> <property name="org.nuxeo.wopi.supportedAppNames">YouApp3</property> </extension> </component>
<require>org.nuxeo.wopi.properties</require> is used to append apps to the existing ones defined inside Nuxeo.