nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
355 stars 116 forks source link

*nearly solved* document access denied when terms Of Service app is installed at the same time #681

Closed joergmschulz closed 2 years ago

joergmschulz commented 5 years ago

Describe the bug I upgraded to 3.4.3

Now, on starting to edit office document, only the menu bar appears, but otherwise the screen is lightgrey. In the log, I see the error message quoted below.

I didn't do any further changes. The same error appears when I connect to different collabora servers. These servers can still be accessed from other richdocument installations in Version 3.4.3 and 3.4.2

Downgrades to 3.4.2 and 3.3.12 did not help.

what helped: deinstall Terms of service app

net::ERR_ABORTED 404 DevTools failed to parse SourceMap: https://test.xxxxxxxx.de/terms_of_service/js/terms_of_service_user.js.map

Screenshots If applicable, add screenshots to help explain your problem. grafik

Client details:

Server details

Operating system: debian buster / irrelevant: working installations come from the same OS

Web server: Apache

Database: Postgresql

PHP version: Current

Nextcloud version:

16/Current, after upgrade to 17 no change

Version of Collabora Online LOOLWSD 4.0.6 (git hash: dbfdf5d4) LOKit Collabora OfficeDev 6.0-31 (git hash: 9e571fc)

Logs #### Nextcloud log (data/nextcloud.log) ``` {"reqId":"KwoRnKEWqY8HZ5C8PnCN","level":3,"time":"2019-11-06T09:02:58+00:00","remoteAddr":"2a03:4000:29:5fa::10","user":"--","app":"richdocuments","method":"GET","url":"/index.php/apps/richdocuments/wopi/files/264191_oczc0pmddo8n/contents?access_token=MMV0qgwyTlZeQkHUBcvumI2zIQx0TXFU&access_token_ttl=0&permission=edit","message":{"Exception":"OCP\\Files\\NotPermittedException","Message":"","Code":0,"Trace":[{"file":"/var/www/test/apps/richdocuments/lib/Controller/WopiController.php","line":350,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->","args":["rb"]},{"file":"/var/www/test/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getFile","class":"OCA\\Richdocuments\\Controller\\WopiController","type":"->","args":["264191","MMV0qgwyTlZeQkHUBcvumI2zIQx0TXFU"]},{"file":"/var/www/test/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\WopiController"},"getFile"]},{"file":"/var/www/test/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\WopiController"},"getFile"]},{"file":"/var/www/test/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\WopiController","getFile",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"fileId":"264191_oczc0pmddo8n","_route":"richdocuments.wopi.getFile"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"fileId":"264191_oczc0pmddo8n","_route":"richdocuments.wopi.getFile"}]},{"file":"/var/www/test/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"fileId":"264191_oczc0pmddo8n","_route":"richdocuments.wopi.getFile"}]},{"file":"/var/www/test/lib/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/wopi/files/264191_oczc0pmddo8n/contents"]},{"file":"/var/www/test/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/test/lib/private/Files/Node/File.php","Line":112,"CustomMessage":"getFile failed"},"userAgent":"LOOLWSD WOPI Agent 4.0.6","version":"17.0.0.9","id":"5dc28c5d2fb71"} ``` #### Browser log ``` Insert your browser log here, this could for example include: Fehler beim Laden der folgenden Adresse: Protocol error (unknownError): Could not load the source for blob:https://office5.someserver.xx/9e5cc4ff-xxxxxxxxxxxx2f0362b. [Exception... "Failed to open input source 'blob:https://office5.someserver.xx//9e5cc4ff-xxxxxxxa1bd-d75592f0362b'" nsresult: "0x805303f4 ()" location: "JS frame :: resource://devtools/shared/DevToolsUtils.js :: mainThreadFetch/< :: line 678" data: yes] Stack: mainThreadFetch/<@resource://devtools/shared/DevToolsUtils.js:678:15 mainThreadFetch@resource://devtools/shared/DevToolsUtils.js:530:10 _fetchURLContents@resource://devtools/server/actors/utils/TabSources.js:580:22 urlContents@resource://devtools/server/actors/utils/TabSources.js:547:17 _getSourceText@resource://devtools/server/actors/source.js:255:39 Line: 678, column: 0 ```
joergmschulz commented 2 years ago

see https://github.com/nextcloud/terms_of_service/issues/260 / has nothing to do with richdocuments and can be closed as the root cause has been resolved.