You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making a public share from external storage (either mounted from administrative tools or user), the share results in a Nextcloud Office error "Error: Exception: Call to a member function getUID() on null"
{"reqId":"n2LUX3osSXT8DoT587Ck","level":3,"time":"2023-10-12T18:10:59+00:00","remoteAddr":"192.168.0.62","user":"--","app":"index","method":"GET","url":"/index.php/apps/richdocuments/wopi/files/90961_oc7u3aa5k4ov?access_token=qTLaZ0jVGv4rWBuaNFnHpCMVIdUiTuc4&access_token_ttl=1697170254000&permission=edit","message":"Call to a member function getUID() on null in file '/var/www/html/custom_apps/richdocuments/lib/PermissionManager.php' line 162","userAgent":"COOLWSD HTTP Agent 23.05.3.1","version":"27.1.0.7","exception":{"Exception":"Exception","Message":"Call to a member function getUID() on null in file '/var/www/html/custom_apps/richdocuments/lib/PermissionManager.php' line 162","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\WopiController"],"checkFileInfo"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\WopiController","checkFileInfo",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["90961_oc7u3aa5k4ov","richdocuments.wopi.checkFileInfo"]]},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/wopi/files/90961_oc7u3aa5k4ov"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Call to a member function getUID() on null","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/WopiController.php","line":246,"function":"shouldWatermark","class":"OCA\\Richdocuments\\PermissionManager","type":"->","args":[["OC\\Files\\Node\\File"],null,["OC\\Share20\\Share"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"checkFileInfo","class":"OCA\\Richdocuments\\Controller\\WopiController","type":"->","args":["90961","qTLaZ0jVGv4rWBuaNFnHpCMVIdUiTuc4"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\WopiController"],"checkFileInfo"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\WopiController"],"checkFileInfo"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\WopiController","checkFileInfo",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["90961_oc7u3aa5k4ov","richdocuments.wopi.checkFileInfo"]]},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/wopi/files/90961_oc7u3aa5k4ov"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/PermissionManager.php","Line":162},"CustomMessage":"--"},"id":"652852099e518"}
Additional info
"Well, this is embarrassing, we cannot connect to your document,"
Bug description
When making a public share from external storage (either mounted from administrative tools or user), the share results in a Nextcloud Office error "Error: Exception: Call to a member function getUID() on null"
This appears to be related to these issues:
nextcloud/activity#436
nextcloud/server#19996
Steps to reproduce
3.Attempt to access link
Expected behavior
Public link on external storage should work as it does on Nextcloud folder.
Installation method
Community Docker image
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
"Well, this is embarrassing, we cannot connect to your document,"
In developer console:
"Failed to load resource: the server responded with a status of 500 ()"
https://nextcloud/apps/files_sharing/publicpreview/9ozfKfrfw2BLQsSpJg?x=1918&y=1643&a=true&file=aaa.pdf&scalingup=0
The text was updated successfully, but these errors were encountered: