{
"reqId": "XDTLVTxaidDFwsfofQbtZgAAAAo",
"level": 3,
"time": "2019-01-08T16:09:58+00:00",
"remoteAddr": "",
"user": "ledfan",
"app": "remote",
"method": "PROPFIND",
"url": "/remote.php/dav/trashbin/ledfan/trash",
"message": {
"Exception": "TypeError",
"Message": "Argument 2 passed to OCA\\Files_Trashbin\\Trash\\TrashItem::__construct() must be of the type string, null given, called in /srv/host.be/www/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php on line 57",
"Code": 0,
"Trace": [
{
"file": "/srv/host.be/www/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php",
"line": 57,
"function": "__construct",
"class": "OCA\\Files_Trashbin\\Trash\\TrashItem",
"type": "->",
"args": [
"*** sensitive parameter replaced ***",
null,
1532667637,
"/Applications-laptop.d1532667637",
"*** sensitive parameter replaced ***",
{
"__class__": "OC\\User\\User"
}
]
},
{
"function": "OCA\\Files_Trashbin\\Trash\\{closure}",
"class": "OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/srv/host.be/www/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php",
"line": 55,
"function": "array_map",
"args": [
{
"__class__": "Closure"
},
[
{
"__class__": "OC\\Files\\FileInfo___ a lot of these!"
}
]
]
},
{
"file": "/srv/host.be/www/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php",
"line": 69,
"function": "mapTrashItems",
"class": "OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend",
"type": "->",
"args": [
{
"__class__": "OC\\Files\\FileInfo___ a lot of these!"
}
]
},
{
"file": "/srv/host.be/www/apps/files_trashbin/lib/Trash/TrashManager.php",
"line": 48,
"function": "listTrashRoot",
"class": "OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend",
"type": "->",
"args": [
{
"__class__": "OC\\User\\User"
}
]
},
{
"function": "OCA\\Files_Trashbin\\Trash\\{closure}",
"class": "OCA\\Files_Trashbin\\Trash\\TrashManager",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/srv/host.be/www/apps/files_trashbin/lib/Trash/TrashManager.php",
"line": 49,
"function": "array_reduce",
"args": [
{
"OCP\\Files\\Storage\\IStorage": "*** sensitive parameter replaced ***"
},
{
"__class__": "Closure"
},
"*** sensitive parameter replaced ***"
]
},
{
"file": "/srv/host.be/www/apps/files_trashbin/lib/Sabre/TrashRoot.php",
"line": 68,
"function": "listTrashRoot",
"class": "OCA\\Files_Trashbin\\Trash\\TrashManager",
"type": "->",
"args": [
{
"__class__": "OC\\User\\User"
}
]
},
{
"file": "/srv/host.be/www/3rdparty/sabre/dav/lib/DAV/Tree.php",
"line": 195,
"function": "getChildren",
"class": "OCA\\Files_Trashbin\\Sabre\\TrashRoot",
"type": "->",
"args": []
},
{
"file": "/srv/host.be/www/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 899,
"function": "getChildren",
"class": "Sabre\\DAV\\Tree",
"type": "->",
"args": [
"trashbin/ledfan/trash"
]
},
{
"file": "/srv/host.be/www/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 978,
"function": "generatePathNodes",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
{
"__class__": "Sabre\\DAV\\PropFind"
},
[
{
"__class__": "Sabre\\DAV\\PropFind"
},
{
"__class__": "OCA\\Files_Trashbin\\Sabre\\TrashRoot"
}
]
]
},
{
"file": "/srv/host.be/www/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 1666,
"function": "getPropertiesIteratorForPath",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"trashbin/ledfan/trash",
[
"{http://nextcloud.org/ns}trashbin-filename",
"{http://nextcloud.org/ns}trashbin-deletion-time",
"{DAV:}getlastmodified",
"{DAV:}getetag",
"{DAV:}getcontenttype",
"{DAV:}resourcetype",
"{http://owncloud.org/ns}fileid",
"{http://owncloud.org/ns}permissions",
"{http://owncloud.org/ns}size",
"{DAV:}getcontentlength",
"{http://nextcloud.org/ns}has-preview",
"{http://nextcloud.org/ns}mount-type",
"{http://nextcloud.org/ns}is-encrypted",
"{http://open-collaboration-services.org/ns}share-permissions",
"{http://owncloud.org/ns}comments-unread"
],
1
]
},
{
"file": "/srv/host.be/www/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 355,
"function": "generateMultiStatus",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
{
"__class__": "Generator"
},
false
]
},
{
"function": "httpPropFind",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->",
"args": [
{
"absoluteUrl": "https://host.be/remote.php/dav/trashbin/ledfan/trash",
"__class__": "Sabre\\HTTP\\Request"
},
{
"__class__": "Sabre\\HTTP\\Response"
}
]
},
{
"file": "/srv/host.be/www/3rdparty/sabre/event/lib/EventEmitterTrait.php",
"line": 105,
"function": "call_user_func_array",
"args": [
[
{
"__class__": "Sabre\\DAV\\CorePlugin"
},
"httpPropFind"
],
[
{
"absoluteUrl": "https://host.be/remote.php/dav/trashbin/ledfan/trash",
"__class__": "Sabre\\HTTP\\Request"
},
{
"__class__": "Sabre\\HTTP\\Response"
}
]
]
},
{
"file": "/srv/host.be/www/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 479,
"function": "emit",
"class": "Sabre\\Event\\EventEmitter",
"type": "->",
"args": [
"method:PROPFIND",
[
{
"absoluteUrl": "https://host.be/remote.php/dav/trashbin/ledfan/trash",
"__class__": "Sabre\\HTTP\\Request"
},
{
"__class__": "Sabre\\HTTP\\Response"
}
]
]
},
{
"file": "/srv/host.be/www/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 254,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
{
"absoluteUrl": "https://host.be/remote.php/dav/trashbin/ledfan/trash",
"__class__": "Sabre\\HTTP\\Request"
},
{
"__class__": "Sabre\\HTTP\\Response"
}
]
},
{
"file": "/srv/host.be/www/apps/dav/lib/Server.php",
"line": 301,
"function": "exec",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": []
},
{
"file": "/srv/host.be/www/apps/dav/appinfo/v2/remote.php",
"line": 35,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->",
"args": []
},
{
"file": "/srv/host.be/www/remote.php",
"line": 163,
"args": [
"/srv/host.be/www/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/srv/host.be/www/apps/files_trashbin/lib/Trash/TrashItem.php",
"Line": 41,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0",
"version": "15.0.1.0",
"id": "5c34cb656b6b4"
}
Steps to reproduce
Expected behaviour
Trashbin should load.
Actual behaviour
Trashbin doesn't load, 500 returned to PROPFIND request.
Server configuration
Operating system: Centos 7.6
Web server: Apache/2.4.6
Database: mysql Ver 15.1 Distrib 5.5.60-MariaDB,
PHP version: PHP 7.3.0
Nextcloud version: 15.0.0
Updated from an older Nextcloud/ownCloud or fresh install: updated from 14 (and 15 beta/rc)
Where did you install Nextcloud from: zip file
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: No
Are you using encryption: No.
Nextcloud log (data/nextcloud.log)
Nextcloud log
I tried to run a
occ files:scanand clean command, but that didn't help. I never had the issue in 14, but now having it in 15 (upgraded since the beta, but never loaded the trahsbin...)I guess cc @icewind1991 because you refactored the trashbin code 😃