Steps to reproduce: 1) Install nextcloud and collabora 2) create a folder, share it as link and give write access to the folder 3) create a ods document 4) log off from nextcloud 5) use the share link to access the folder 6) open the document, use a nickname on request 7) do a small change and try to save the document. An error message appears. The log contains the message: "Argument 1 passed to OCA\\Richdocuments\\Service\\UserScopeService::setUserScope() must be of the type string, null given, called in \/var\/www\/nextcloud\/apps\/richdocuments\/lib\/Controller\/WopiController.php on line 449" Here the entire log message: {"reqId":"TlkfYCpFhtaQjZ1a3Acb","level":3,"time":"January 06, 2020 19:56:48","remoteAddr":"176.9.113.182","user":"--","app":"index","method":"POST","url":"\/index.php\/apps\/richdocuments\/wopi\/files\/63901_ocay74hglo75\/contents?access_token=15OoXuWS5XLF7djPasU1uNmZiW5LXn1q&access_token_ttl=0","message":{"Exception":"Exception","Message":"Argument 1 passed to OCA\\Richdocuments\\Service\\UserScopeService::setUserScope() must be of the type string, null given, called in \/var\/www\/nextcloud\/apps\/richdocuments\/lib\/Controller\/WopiController.php on line 449","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\WopiController"},"putFile"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\WopiController","putFile",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"fileId":"63901_ocay74hglo75","_route":"richdocuments.wopi.putFile"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"fileId":"63901_ocay74hglo75","_route":"richdocuments.wopi.putFile"}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"fileId":"63901_ocay74hglo75","_route":"richdocuments.wopi.putFile"}]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":997,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/richdocuments\/wopi\/files\/63901_ocay74hglo75\/contents"]},{"file":"\/var\/www\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":109,"Previous":{"Exception":"TypeError","Message":"Argument 1 passed to OCA\\Richdocuments\\Service\\UserScopeService::setUserScope() must be of the type string, null given, called in \/var\/www\/nextcloud\/apps\/richdocuments\/lib\/Controller\/WopiController.php on line 449","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/apps\/richdocuments\/lib\/Controller\/WopiController.php","line":449,"function":"setUserScope","class":"OCA\\Richdocuments\\Service\\UserScopeService","type":"->","args":[null]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":170,"function":"putFile","class":"OCA\\Richdocuments\\Controller\\WopiController","type":"->","args":["63901","15OoXuWS5XLF7djPasU1uNmZiW5LXn1q"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\WopiController"},"putFile"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\WopiController"},"putFile"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\WopiController","putFile",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"fileId":"63901_ocay74hglo75","_route":"richdocuments.wopi.putFile"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"fileId":"63901_ocay74hglo75","_route":"richdocuments.wopi.putFile"}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"fileId":"63901_ocay74hglo75","_route":"richdocuments.wopi.putFile"}]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":997,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/richdocuments\/wopi\/files\/63901_ocay74hglo75\/contents"]},{"file":"\/var\/www\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/nextcloud\/apps\/richdocuments\/lib\/Service\/UserScopeService.php","Line":44},"CustomMessage":"--"},"userAgent":"LOOLWSD WOPI Agent 4.2.0","version":"17.0.2.1"}
This is an issue in Nextcloud richdocuments (Collabora Online app in Nextcloud), and will be fixed by the following commit once a new version of the app is released: https://github.com/nextcloud/richdocuments/commit/2b4366a996c2bead73bba731c8e98874ddb67e61 Another workaround is to update system PHP to version >7.0.