-
Notifications
You must be signed in to change notification settings - Fork 68
Description
This error is related to activity app. If I'll delete activity app everything will be ok.
Steps to reproduce
Create local folder on server ("/test" for example) owned by www-data user with write permissions.
Add created folder as external storage. Create file share link with upload permission on external storage.
Try to upload a folder using shared link.
Expected behaviour
Folder should be uploaded
Actual behaviour
Browser shows folder creation error and upload error while folder is been created.
In logs appears Error: Call to a member function getUID() on null
Server configuration detail
Operating system: Linux 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64
Webserver: Apache (fpm-fcgi)
Database: pgsql PostgreSQL 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0, 64-bit
PHP version:
7.2.24-0ubuntu0.18.04.3
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, json, igbinary, apcu, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, redis, ldap, exif, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, smbclient, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache
Nextcloud version: 18.0.2 - 18.0.2.2
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array
(
)
List of activated apps
Enabled:
- accessibility: 1.4.0
- activity: 2.11.0
- admin_audit: 1.8.0
- calendar: 2.0.2
- cloud_federation_api: 1.1.0
- comments: 1.8.0
- contacts: 3.2.0
- dav: 1.14.0
- deck: 0.8.0
- extract: 1.2.3
- federatedfilesharing: 1.8.0
- federation: 1.8.0
- files: 1.13.1
- files_external: 1.9.0
- files_pdfviewer: 1.7.0
- files_rightclick: 0.15.2
- files_sharing: 1.10.1
- files_trashbin: 1.8.0
- files_versions: 1.11.0
- files_videoplayer: 1.7.0
- firstrunwizard: 2.7.0
- groupfolders: 6.0.2
- issuetemplate: 0.6.0
- logreader: 2.3.0
- lookup_server_connector: 1.6.0
- mail: 1.1.3
- nextcloud_announcements: 1.7.0
- notifications: 2.6.0
- oauth2: 1.6.0
- password_policy: 1.8.0
- photos: 1.0.0
- privacy: 1.2.0
- provisioning_api: 1.8.0
- recommendations: 0.6.0
- serverinfo: 1.8.0
- settings: 1.0.0
- sharebymail: 1.8.0
- support: 1.1.0
- survey_client: 1.6.0
- systemtags: 1.8.0
- text: 2.0.0
- theming: 1.9.0
- twofactor_backupcodes: 1.7.0
- updatenotification: 1.8.0
- user_ldap: 1.8.0
- viewer: 1.2.0
- workflowengine: 2.0.0
Disabled:
- encryption
Configuration (config/config.php)
{
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"192.168.1.226",
"nextcloud_test",
"nextcloud_test"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "18.0.2.2",
"overwrite.cli.url": "https:\/\/nextcloud_test\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"upgrade.disable-web": "true",
"log_type": "file",
"logfile": "\/var\/log\/nextcloud\/nextcloud.log",
"loglevel": "2",
"mail_smtpmode": "smtp",
"remember_login_cookie_lifetime": "1800",
"log_rotate_size": "10485760",
"trashbin_retention_obligation": "auto, 180",
"versions_retention_obligation": "auto, 365",
"simpleSignUpLink.shown": "false",
"memcache.local": "\\OC\\Memcache\\APCu",
"filelocking.enabled": true,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 0.5,
"dbindex": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"logtimezone": "Europe\/Moscow",
"htaccess.RewriteBase": "\/",
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"maintenance": false
}
Are you using external storage, if yes which one: local/smb/nfs
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this par if not used)
background_sync_interval: 1800enabled: yesinstalled_version: 1.8.0types: authentication
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Operating system:
Logs
Web server error log
Nextcloud log
{"reqId":"DmvKTIG3QoIN036PaP75","level":3,"time":"2020-03-17T22:38:12+03:00","remoteAddr":"192.168.1.3","user":"--","app":"public","method":"MKCOL","url":"/public.php/webdav/%D0%A2%D0%BE%D1%87%D0%BA%D0%B0%20%D1%81%D1%82%D0%B8%D0%BB%D1%8F","message":{"Exception":"Error","Message":"Call to a member function getUID() on null","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/activity/lib/FilesHooks.php","line":638,"function":"getOwner","class":"OC\\Files\\View","type":"->","args":["/home/1/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f"]},{"file":"/var/www/nextcloud/apps/activity/lib/FilesHooks.php","line":190,"function":"getSourcePathAndOwner","class":"OCA\\Activity\\FilesHooks","type":"->","args":["/home/1/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f"]},{"file":"/var/www/nextcloud/apps/activity/lib/FilesHooks.php","line":148,"function":"addNotificationsForFileAction","class":"OCA\\Activity\\FilesHooks","type":"->","args":["/home/1/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f","file_created","","created_public"]},{"file":"/var/www/nextcloud/apps/activity/lib/FilesHooksStatic.php","line":47,"function":"fileCreate","class":"OCA\\Activity\\FilesHooks","type":"->","args":["/home/1/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f"]},{"file":"/var/www/nextcloud/lib/private/legacy/hook.php","line":111,"function":"fileCreate","class":"OCA\\Activity\\FilesHooksStatic","type":"::","args":[{"run":true,"path":"/home/1/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f"}]},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1275,"function":"emit","class":"OC_Hook","type":"::","args":["OC_Filesystem","post_create",{"run":true,"path":"/home/1/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f"}]},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1203,"function":"runHooks","class":"OC\\Files\\View","type":"->","args":[["create","write"],"/home/1/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f",true]},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":269,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["mkdir","/\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f",["create","write"]]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":189,"function":"mkdir","class":"OC\\Files\\View","type":"->","args":["//\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1210,"function":"createDirectory","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":590,"function":"createCollection","class":"Sabre\\DAV\\Server","type":"->","args":["\u0422\u043e\u0447\u043a\u0430 \u0441\u0442\u0438\u043b\u044f",{"__class__":"Sabre\\DAV\\MkCol"}]},{"function":"httpMkcol","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://192.168.1.226/public.php/webdav/%D0%A2%D0%BE%D1%87%D0%BA%D0%B0%20%D1%81%D1%82%D0%B8%D0%BB%D1%8F","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpMkcol"],[{"absoluteUrl":"https://192.168.1.226/public.php/webdav/%D0%A2%D0%BE%D1%87%D0%BA%D0%B0%20%D1%81%D1%82%D0%B8%D0%BB%D1%8F","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:MKCOL",[{"absoluteUrl":"https://192.168.1.226/public.php/webdav/%D0%A2%D0%BE%D1%87%D0%BA%D0%B0%20%D1%81%D1%82%D0%B8%D0%BB%D1%8F","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https://192.168.1.226/public.php/webdav/%D0%A2%D0%BE%D1%87%D0%BA%D0%B0%20%D1%81%D1%82%D0%B8%D0%BB%D1%8F","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/publicwebdav.php","line":109,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/public.php","line":81,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/publicwebdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/View.php","Line":1690,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36","version":"18.0.2.2"}