<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to configure nuxeo-wopi to use wopi apps other than Ms Office Online? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321534#M8535</link>
    <description>&lt;P&gt;I don't see the "badButtonIcons.png" file.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 13:03:47 GMT</pubDate>
    <dc:creator>Thomas_Roger</dc:creator>
    <dc:date>2020-07-30T13:03:47Z</dc:date>
    <item>
      <title>How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321532#M8533</link>
      <description>&lt;P&gt;Our company, Collabora Productivity, one of the leading contributors to LibreOffice, develops a WOPI app - similar to MS Office Online - called Collabora Online [1].&lt;/P&gt;
&lt;P&gt;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 [2], [3], [4], and rolled out a test Nuxeo server (self-built from master according to [5]) to try to connect it with Collabora Online.&lt;/P&gt;
&lt;P&gt;We could set the server up, and could make necessary changes to configuration as per documentation [3]. 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.&lt;/P&gt;
&lt;P&gt;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).&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;modules/platform/nuxeo-wopi/src/main/resources/OSGI-INF/properties-contrib.xml,&lt;/P&gt;
&lt;P&gt;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.)&lt;/P&gt;
&lt;P&gt;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 &lt;APPNAME&gt;.png in Nuxeo images directory. It does not use the icons suggested in the discovery ([MS-WOPI] sect. 3.1.5.1.1.2.2.3 ct_app-name, attribute "favIconUrl"), nor has it a fallback icon in case there's neither favicon nor bundled icon for the app. So here is my second question, why WOPIJsonEnricher ignores the favicon from discovery, and why isn't there a fallback for Nuxeo to use.&lt;/APPNAME&gt;&lt;/P&gt;
&lt;P&gt;On [3], there is a sign that connecting WOPI apps other than MS is supported:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If you target a WOPI client other than Office Online, just set its
discovery URL instead of the Office Online one.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Hope this makes sense; hope to hear from you soon.&lt;/P&gt;
&lt;P&gt;[1] &lt;A href="https://www.collaboraoffice.com/" target="test_blank"&gt;https://www.collaboraoffice.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;[2] &lt;A href="https://jira.nuxeo.com/browse/NXP-23174" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-23174&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;[3] &lt;A href="https://doc.nuxeo.com/nxdoc/next/nuxeo-office-online-integration/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/next/nuxeo-office-online-integration/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;[4] &lt;A href="https://connect.nuxeo.com/nuxeo/site/marketplace/package/nuxeo-wopi" target="test_blank"&gt;https://connect.nuxeo.com/nuxeo/site/marketplace/package/nuxeo-wopi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;[5] &lt;A href="https://doc.nuxeo.com/corg/" target="test_blank"&gt;https://doc.nuxeo.com/corg/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 12:35:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321532#M8533</guid>
      <dc:creator>Mike_Kaganski</dc:creator>
      <dc:date>2020-07-30T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321533#M8534</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can already configure new apps directly in your own module that you deploys inside Nuxeo Server, or through a configuration file inside &lt;CODE&gt;$NUXEO_HOME/nxserver/config&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;For instance, adding a new file &lt;CODE&gt;collaboraoffice-config.xml&lt;/CODE&gt; in &lt;CODE&gt;$NUXEO_HOME/nxserver/config&lt;/CODE&gt;
where you can add new apps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="com.collaboraoffice.wopi.properties"&amp;gt;
  
  &amp;lt;require&amp;gt;org.nuxeo.wopi.properties&amp;lt;/require&amp;gt;
  
  &amp;lt;extension target="org.nuxeo.runtime.ConfigurationService" point="configuration"&amp;gt;
    &amp;lt;property name="org.nuxeo.wopi.supportedAppNames"&amp;gt;YouApp1&amp;lt;/property&amp;gt;
    &amp;lt;property name="org.nuxeo.wopi.supportedAppNames"&amp;gt;YouApp2&amp;lt;/property&amp;gt;
    &amp;lt;property name="org.nuxeo.wopi.supportedAppNames"&amp;gt;YouApp3&amp;lt;/property&amp;gt;
  &amp;lt;/extension&amp;gt;
  
&amp;lt;/component&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The &lt;CODE&gt;&amp;lt;require&amp;gt;org.nuxeo.wopi.properties&amp;lt;/require&amp;gt;&lt;/CODE&gt; is used to append apps to the existing ones defined inside Nuxeo.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:03:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321533#M8534</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2020-07-30T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321534#M8535</link>
      <description>&lt;P&gt;I don't see the "badButtonIcons.png" file.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:03:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321534#M8535</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2020-07-30T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321535#M8536</link>
      <description>&lt;P&gt;Thanks - added the missing file; sorry for that.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:22:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321535#M8536</guid>
      <dc:creator>Mike_Kaganski</dc:creator>
      <dc:date>2020-07-30T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321536#M8537</link>
      <description>&lt;P&gt;Thank you for information! That's great. Now only icon question remains.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:22:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321536#M8537</guid>
      <dc:creator>Mike_Kaganski</dc:creator>
      <dc:date>2020-07-30T13:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321537#M8538</link>
      <description>&lt;P&gt;Tested and confirmed that it works. Thanks again! Voted; didn't (yet) accept, because don't know if this site allows several accepted answers; and the question still needs an answer to its second part (icons).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:54:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321537#M8538</guid>
      <dc:creator>Mike_Kaganski</dc:creator>
      <dc:date>2020-07-30T13:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nuxeo-wopi to use wopi apps other than Ms Office Online?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321538#M8539</link>
      <description>&lt;P&gt;The images used in the WebUI are taken from &lt;CODE&gt;${env.home}/nuxeo.war/ui/images&lt;/CODE&gt;, named like &lt;CODE&gt;appname.png&lt;/CODE&gt; (the code is in &lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/c7e67299e9c35803d8c25104324ba37e54787f4d/addons/nuxeo-wopi/elements/nuxeo-wopi-link.js#L62"&gt;nuxeo-wopi-link.js&lt;/A&gt;). This allows to install these images in own module, using &lt;CODE&gt;copy&lt;/CODE&gt; &lt;A href="https://doc.nuxeo.com/nxdoc/scripting-commands/"&gt;scripting command&lt;/A&gt; like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;install&amp;gt;
  &amp;lt;copy file="${package.root}/install/images/appname.png" todir="${env.home}/nuxeo.war/ui/images" /&amp;gt;
&amp;lt;/install&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Oct 2020 12:32:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-configure-nuxeo-wopi-to-use-wopi-apps-other-than-ms/m-p/321538#M8539</guid>
      <dc:creator>Mike_Kaganski</dc:creator>
      <dc:date>2020-10-28T12:32:43Z</dc:date>
    </item>
  </channel>
</rss>

