Exception":"Error","Message":"Call to a member function xpath() on bool
Describe the bug When opening an ODS file, there's a spinning circle and eventually a timeout occurs.
To Reproduce Steps to reproduce the behavior:
- Create an ODS file offline
- Let the server sync
- Try to open it using the web UI
- See error
Expected behavior Spreadsheet should open w/o issues
Screenshots
Client details:
- OS: Reproducible on Ubuntu 24.04 and OSX 14.6.1
- Browser: Opera 112.0.5197.53 and Firefox 129
Server details
Operating system: Debian Bookworm
Web server: Apache 2.4.61-1~deb12u1
Database: Postgresql 15.8-0+deb12u1
PHP version: 8.2.20-1~deb12u1
Nextcloud version: 29.0.4
Version of the richdocuments app 8.4.4
Version of Collabora Online How do I verify this?
Configuration of the richdocuments app
{
"apps": {
"richdocuments": {
"disable_certificate_verification": "yes",
"public_wopi_url": "https:\/\/linuxinlaws.eu\/nextcloud\/apps\/richdocumentscode\/proxy.php?req=",
"installed_version": "8.4.4",
"enabled": "yes",
"types": "prevent_group_restriction",
"wopi_url": "http:\/\/linuxinlaws.eu\/apps\/richdocumentscode\/proxy.php?req="
}
}
}
Nextcloud log (data/nextcloud.log)
{"reqId":"HX3d8psLdlyu4oHdJldw","level":3,"time":"2024-08-10T06:42:47+00:00","remoteAddr":"79.219.166.209","user":"<user>","app":"index","method":"POST","url":"/nextcloud/index.php/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 OPR/112.0.0.0","version":"29.0.4.1","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->"},{"file":"/var/www/nextcloud/apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->"},{"file":"/var/www/nextcloud/apps/richdocuments/lib/Controller/DocumentController.php","line":389,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php' line 56"}}<user>
More than happy to provide additional input if required.
I'm experiencing the same issue when loading spreadsheets in Collabora (Nextcloud Office) version collabora/code:24.04.6.1.1
Can you run a curl request on your Nextcloud server manually to see if the response is a proper XML response from Collabora?
curl -v https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/hosting/discovery
same issue here, after upgrading to nextcloud 29.0.5 (docker) today. The version of richdocuments is 8.4.5.
same issue here
{"reqId":"ZpLUDPmTjLA6Hnu6LmTZ","level":3,"time":"2024-09-01T07:58:48+00:00","remoteAddr":"124.43.77.73","user":"longbob","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","version":"29.0.4.1","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":408,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[485949,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"}}
Hi,
I had the same issue, I've updated the add "Community Document Server" to v 0.1.18 and have to re-enable this app, then it works again.
Hope it helps! Regards
@fregux thx for the info. Unfortunately the add isn't installed in my case. I'm using the official docker image. Only "richdocuments" 8.4.5 is installed. I've just tried to remove the app and reinstall it. The newly installed version is 8.4.6 now but the issue still persists.
I've found a workaround! The latest version of richdocuments, that was installed on my system before upgrading from NC 28 to 29, was 8.3.7. So I've tried to downgrade the app to that - in NC 29 unsupported - version and it worked. Office documents can be edited again :)
Yes, this is the same problem I have. I'll try
I'll close this as there was no reply for the question for further information. Feel free to reopen once that is provided.
Hi @juliushaertl ,
I've got the same issue and that's whats the curl respond:
curl -v https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/hosting/discovery
* Trying 185.207.107.56:443...
* Connected to linuxinlaws.eu (185.207.107.56) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=linuxinlaws.eu
* start date: Sep 3 00:01:59 2024 GMT
* expire date: Dec 2 00:01:58 2024 GMT
* subjectAltName: host "linuxinlaws.eu" matched cert's "linuxinlaws.eu"
* issuer: C=US; O=Let's Encrypt; CN=E6
* SSL certificate verify ok.
> GET /nextcloud/apps/richdocumentscode/proxy.php?req=/hosting/discovery HTTP/1.1
> Host: linuxinlaws.eu
> User-Agent: curl/7.74.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Mon, 16 Sep 2024 10:15:11 GMT
< Server: Apache/2.4.62 (Debian) OpenSSL/3.0.14
< Strict-Transport-Security: max-age=315360000; includeSubdomains;
< Referrer-Policy: no-referrer
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Permitted-Cross-Domain-Policies: none
< X-Robots-Tag: noindex, nofollow
< X-XSS-Protection: 1; mode=block
< Content-Length: 37839
< Last-Modified: Mon, 16 Sep 2024 10:15:11
< Connection: close
< Vary: Accept-Encoding
< Content-Type: text/xml;charset=UTF-8
<
<wopi-discovery>
<net-zone name="external-http">
<!-- Writer documents -->
<app favIconUrl="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/images/x-office-document.svg" name="writer">
<action default="true" ext="sxw" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="odt" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="fodt" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Text template documents -->
<action default="true" ext="stw" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="ott" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- MS Word -->
<action default="true" ext="doc" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="dot" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- OOXML wordprocessing -->
<action default="true" ext="docx" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="docm" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="dotx" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="dotm" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Others -->
<action default="true" ext="wpd" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="pdb" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="hwp" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="wps" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="wri" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="lrf" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="mw" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="rtf" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="txt" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="fb2" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="cwk" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="pages" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="abw" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="602" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="writer-global">
<!-- Text master documents -->
<action default="true" ext="sxg" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="odm" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Writer master document templates -->
<action default="true" ext="otm" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="writer-web">
<action default="true" ext="oth" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Calc documents -->
<app favIconUrl="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/images/x-office-spreadsheet.svg" name="calc">
<action default="true" ext="sxc" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="ods" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="fods" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Spreadsheet template documents -->
<action default="true" ext="stc" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="ots" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- MS Excel -->
<action default="true" ext="xls" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="xla" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- OOXML spreadsheet -->
<action default="true" ext="xltx" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="xltm" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="xlsx" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="xlsb" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="xlsm" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Others -->
<action default="true" ext="dif" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="slk" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="csv" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="dbf" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="wk1" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="gnumeric" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="numbers" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Impress documents -->
<app favIconUrl="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/images/x-office-presentation.svg" name="impress">
<action default="true" ext="sxi" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="odp" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="fodp" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Presentation template documents -->
<action default="true" ext="sti" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="otp" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- MS PowerPoint -->
<action default="true" ext="ppt" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="pot" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- OOXML presentation -->
<action default="true" ext="pptx" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="pptm" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="potx" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="potm" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="ppsx" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Others -->
<action default="true" ext="cgm" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="key" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Draw documents -->
<app name="draw">
<action default="true" ext="sxd" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="odg" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="fodg" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Drawing template documents -->
<action default="true" ext="std" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="otg" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<!-- Others -->
<action ext="svg" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="dxf" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="emf" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="wmf" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="cdr" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="vsd" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="vsdx" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="vss" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="pub" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="p65" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="wpg" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action default="true" ext="fh" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action ext="bmp" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action ext="png" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action ext="gif" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action ext="tiff" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action ext="jpg" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action ext="jpeg" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
<action ext="pdf" name="view_comment" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Math documents -->
<!-- In fact Math documents are not supported at all.
See: https://bugs.documentfoundation.org/show_bug.cgi?id=97006
<app name="math">
<action name="view" default="true" ext="sxm"/>
<action name="edit" default="true" ext="odf"/>
</app>
-->
<!-- Legacy MIME-type actions (compatibility) -->
<app name="image/svg+xml">
<action ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-powerpoint">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-excel">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Writer documents -->
<app name="application/vnd.sun.xml.writer">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.text">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.text-flat-xml">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Calc documents -->
<app name="application/vnd.sun.xml.calc">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.spreadsheet">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.spreadsheet-flat-xml">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Impress documents -->
<app name="application/vnd.sun.xml.impress">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.presentation">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.presentation-flat-xml">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Draw documents -->
<app name="application/vnd.sun.xml.draw">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.graphics">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.graphics-flat-xml">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Chart documents -->
<app name="application/vnd.oasis.opendocument.chart">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Text master documents -->
<app name="application/vnd.sun.xml.writer.global">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.text-master">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Math documents -->
<!-- In fact Math documents are not supported at all.
See: https://bugs.documentfoundation.org/show_bug.cgi?id=97006
<app name="application/vnd.sun.xml.math">
<action name="view" default="true" ext=""/>
</app>
<app name="application/vnd.oasis.opendocument.formula">
<action name="edit" default="true" ext=""/>
</app>
-->
<!-- Text template documents -->
<app name="application/vnd.sun.xml.writer.template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.text-template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Writer master document templates -->
<app name="application/vnd.oasis.opendocument.text-master-template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Spreadsheet template documents -->
<app name="application/vnd.sun.xml.calc.template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.spreadsheet-template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Presentation template documents -->
<app name="application/vnd.sun.xml.impress.template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.presentation-template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Drawing template documents -->
<app name="application/vnd.sun.xml.draw.template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.graphics-template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- MS Word -->
<app name="application/msword">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/msword">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- MS Excel -->
<app name="application/vnd.ms-excel">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- MS PowerPoint -->
<app name="application/vnd.ms-powerpoint">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- OOXML wordprocessing -->
<app name="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-word.document.macroEnabled.12">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.openxmlformats-officedocument.wordprocessingml.template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-word.template.macroEnabled.12">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- OOXML spreadsheet -->
<app name="application/vnd.openxmlformats-officedocument.spreadsheetml.template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-excel.template.macroEnabled.12">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-excel.sheet.binary.macroEnabled.12">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-excel.sheet.macroEnabled.12">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- OOXML presentation -->
<app name="application/vnd.openxmlformats-officedocument.presentationml.presentation">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-powerpoint.presentation.macroEnabled.12">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.openxmlformats-officedocument.presentationml.template">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-powerpoint.template.macroEnabled.12">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- Others -->
<app name="application/vnd.wordperfect">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-aportisdoc">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-hwp">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-works">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-mswrite">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-dif-document">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="text/spreadsheet">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="text/csv">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-dbase">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.lotus-1-2-3">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/cgm">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/vnd.dxf">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/x-emf">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/x-wmf">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/coreldraw">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.visio2013">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.visio">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.ms-visio.drawing">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-mspublisher">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-sony-bbeb">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-gnumeric">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/macwriteii">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-iwork-numbers-sffnumbers">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.oasis.opendocument.text-web">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-pagemaker">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="text/rtf">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="text/plain">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-fictionbook+xml">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/clarisworks">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/x-wpg">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-iwork-pages-sffpages">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.openxmlformats-officedocument.presentationml.slideshow">
<action default="true" ext="" name="edit" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-iwork-keynote-sffkey">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-abiword">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/x-freehand">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/vnd.sun.xml.chart">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/x-t602">
<action default="true" ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/bmp">
<action ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/png">
<action ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/gif">
<action ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/tiff">
<action ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/jpg">
<action ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="image/jpeg">
<action ext="" name="view" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<app name="application/pdf">
<action ext="" name="view_comment" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/browser/ca2ed20/cool.html?"/>
</app>
<!-- End of legacy MIME-type actions -->
<app name="Capabilities">
<action ext="" name="getinfo" urlsrc="https://linuxinlaws.eu/nextcloud/apps/richdocumentscode/proxy.php?req=/hosting/capabilities"/>
</app>
</net-zone>
* Closing connection 0
* TLSv1.3 (OUT), TLS alert, close notify (256):
</wopi-discovery>uid26083@h2web399:~$
@juliushaertl really, you are closing this ? That's definitely not the best service management option. Maybe you should communicate a bit more. Maybe you should explain what a curl command to an external website has to do with an issue/incident in a local installation ? What about reflecting on the further communication and workaround ? We are currently evaluating NC at work and that issue and how it's handled, really doesn't help the effort...
I'm more then happy to reopen, but there was no addition of the requested details for a month. I can also elaborate a bit more of course, the request is not a random one but should be sent towards your installed Collabora server. This is the same request Nextcloud sends. The error seems to indicate an issue parsing the result, that is why checking the result manually helps to narrow down reasons.
Thanks @daraelmin for providing that, reopening to further check.
Hi,
I added a trace just before the error :
private function getUrlSrc(string $mimetype): array {
$discovery = $this->discoveryService->get();
$this->logger->debug('WOPI::getUrlSrc discovery: {discovery}', ['discovery' => $discovery]);
$discoveryParsed = simplexml_load_string($discovery);
if (is_bool($discoveryParsed)) {
$this->logger->error('Didn\'t find urlsrc for mimetype {mimetype} in this WOPI discovery response: {discovery}', ['mimetype' => $mimetype, 'discovery' => $discovery]);
}
$result = $discoveryParsed->xpath(sprintf('/wopi-discovery/net-zone/app[@name=\'%s\']/action', $mimetype));
and I get the following error (look at the response: null) :
{"reqId":"UIt138ozpFPtW5rNynLH","level":3,"time":"2024-10-03T09:08:01+00:00","remoteAddr":"109.190.106.232","user":"plv","app":"richdocuments","method":"POST","url":"/apps/richdocuments/token","message":"Didn't find urlsrc for mimetype application/vnd.oasis.opendocument.text in this WOPI discovery response: null","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0","version":"30.0.0.14","data":{"app":"richdocuments"}}
I have the mime type in the xml from my curl :
curl -v https://cloud.xxx.com/custom_apps/richdocumentscode/proxy.php?req=/hosting/discovery
<app name="application/vnd.oasis.opendocument.text">
<action default="true" ext="" name="edit" urlsrc="https://cloud.xxx.com/custom_apps/richdocumentscode/proxy.php?req=/browser/d5ebff5/cool.html?"/>
</app>
(note : my URL is in custom_apps/ and not apps/)
I hope this can help a bit to debug...
I resolved the issue on my server :
I am behind a reverse proxy traefik that manages HTTPS.
In the parameters of richdocuments : https://cloud.xxx.com/settings/admin/richdocuments, I got a message saying that the URL of WOPI doesn't answer. The url of collabora was badly guessed because nextcloud was looking for an HTTP url and not HTTPS.
But you can force the URL of collabora in the settings (described here : https://help.nextcloud.com/t/collabora-integration-guide/151879)
The url was already good for me in the config but not activated.
Here is the procedure on my server :
root@xxx:~# docker exec -ti -u 33 nextcloud bash
www-data@4acc1ce133c5:~/html$ ./occ config:app:get richdocuments wopi_url
https://cloud.xxx.com/custom_apps/richdocumentscode/proxy.php?req=
www-data@4acc1ce133c5:~/html$ ./occ richdocuments:activate-config
✓ Reset callback url autodetect
Checking configuration
🛈 Configured WOPI URL: https://cloud.xxx.com/custom_apps/richdocumentscode/proxy.php?req=
🛈 Configured public WOPI URL: http://cloud.xxx.com/custom_apps/richdocumentscode/proxy.php?req=
🛈 Configured callback URL:
✓ Fetched /hosting/discovery endpoint
✓ Valid mimetype response
✓ Valid capabilities entry
✓ Fetched /hosting/capabilities endpoint
✓ Detected WOPI server: Collabora Online Development Edition 24.04.7.2
Collabora URL (used for Nextcloud to contact the Collabora server):
https://cloud.xxx.com/custom_apps/richdocumentscode/proxy.php?req=
Collabora public URL (used in the browser to open Collabora):
https://cloud.xxx.com
Callback URL (used by Collabora to connect back to Nextcloud):
autodetected (will use the same URL as your user for browsing Nextcloud)
www-data@4acc1ce133c5:~/html$
@philippe-levan ./occ richdocuments:activate-config resolved the issue in my case as well.
I had the same issue. If you still have it try going to https://server_name="collabora.domain.tld" in my environment. Removing them fixed it.