Nextcloud version (eg, 12.0.2): 18.0.3
Operating system and version (eg, Ubuntu 17.04): opensue Leap 15.1
Apache or nginx version (eg, Apache 2.4.25): apache 2.4.33
PHP version (eg, 7.1): 7.2.5
The issue you are facing:
Upload of files on public share on external storage throw an errors, but files are created.
Is this the first time you’ve seen this error? (Y/N):Y
Steps to replicate it:
- create public share on external storage with possibility to upload
- upload file
The output of your Nextcloud log in Admin > Logging:
[public] Error:
[public] Error: Error: Call to a member function getUID() on null at <<closure>>
0. /srv/www/shtdocs/owncloud/apps/activity/lib/FilesHooks.php line 638
OC\Files\View->getOwner("/nc_transfer/tt//keyboard.pdf")
1. /srv/www/shtdocs/owncloud/apps/activity/lib/FilesHooks.php line 190
OCA\Activity\FilesHooks->getSourcePathAndOwner("/nc_transfer/tt//keyboard.pdf")
2. /srv/www/shtdocs/owncloud/apps/activity/lib/FilesHooks.php line 148
OCA\Activity\FilesHooks->addNotificationsForFileAction("/nc_transfer/tt//keyboard.pdf", "file_created", "", "created_public")
3. /srv/www/shtdocs/owncloud/apps/activity/lib/FilesHooksStatic.php line 47
OCA\Activity\FilesHooks->fileCreate("/nc_transfer/tt//keyboard.pdf")
4. /srv/www/shtdocs/owncloud/lib/private/legacy/hook.php line 111
OCA\Activity\FilesHooksStatic::fileCreate({path: "/nc_transfer/tt//keyboard.pdf"})
5. /srv/www/shtdocs/owncloud/apps/dav/lib/Connector/Sabre/File.php line 389
OC_Hook::emit("OC_Filesystem", "post_create", {path: "/nc_transfer/tt//keyboard.pdf"})
6. /srv/www/shtdocs/owncloud/apps/dav/lib/Connector/Sabre/File.php line 321
OCA\DAV\Connector\Sabre\File->emitPostHooks(false)
7. /srv/www/shtdocs/owncloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
OCA\DAV\Connector\Sabre\File->put(null)
8. /srv/www/shtdocs/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
OCA\DAV\Connector\Sabre\Directory->createFile("keyboard.pdf", null)
9. /srv/www/shtdocs/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
Sabre\DAV\Server->createFile("keyboard.pdf", null, null)
10. <<closure>>
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
11. /srv/www/shtdocs/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
12. /srv/www/shtdocs/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
Sabre\Event\EventEmitter->emit("method:PUT", [Sabre\HTTP\Requ ... }])
13. /srv/www/shtdocs/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
14. /srv/www/shtdocs/owncloud/apps/dav/appinfo/v1/publicwebdav.php line 109
Sabre\DAV\Server->exec()
15. /srv/www/shtdocs/owncloud/public.php line 81
require_once("/srv/www/shtdoc ... p")
PUT /owncloud/public.php/webdav/keyboard.pdf
from 192.168.55.11 at 2020-04-05T06:59:38+00:00
I think it worked earlier but I'm not sure about it.
Files are create with error but cannot be deleted.
BR
Stephan