Bug 129842 - Error saving file with guest account
Summary: Error saving file with guest account
Status: RESOLVED MOVED
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-06 20:12 UTC by Torsten
Modified: 2020-02-10 22:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten 2020-01-06 20:12:14 UTC

    
Comment 1 Torsten 2020-01-06 20:19:42 UTC
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"}
Comment 2 Aron Budea 2020-02-10 22:30:28 UTC
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.