-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't workingcriticalShow-stopper for productionShow-stopper for production
Milestone
Description
When searching for a user with the sciencemesh app enabled, search fails with the following log line:
{
"reqId": "0AlNjzaxMxGPaFxRBw2b",
"level": 3,
"time": "2023-10-30T11:23:28+00:00",
"remoteAddr": "89.46.21.246",
"user": "_kano",
"app": "no app in context",
"method": "GET",
"url": "/ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&itemType=folder&search=freitag%40sunet.se&lookup=true&perPage=25&shareType[]=0&shareType[]=1&shareType[]=6&shareType[]=9&shareType[]=7&shareType[]=10&shareType[]=8&shareType[]=12&shareType[]=undefined&shareType[]=4",
"message": "array_filter(): Argument #1 ($array) must be of type array, null given in file /var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php line 37",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0",
"version": "26.0.7.1",
"exception": {
"Exception": "Exception",
"Message": "array_filter(): Argument #1 ($array) must be of type array, null given in file /var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php line 37",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 183,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
[
"OCA\\Files_Sharing\\Controller\\ShareesAPIController"
],
"search"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Files_Sharing\\Controller\\ShareesAPIController",
"search",
[
"OC\\AppFramework\\DependencyInjection\\DIContainer"
],
[
"ocs.files_sharing.ShareesAPI.search"
]
]
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 64,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/ocsapp/apps/files_sharing/api/v1/sharees"
]
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 23,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 169,
"Previous": {
"Exception": "TypeError",
"Message": "array_filter(): Argument #1 ($array) must be of type array, null given",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php",
"line": 37,
"function": "array_filter",
"args": [
null,
[
"Closure"
]
]
},
{
"file": "/var/www/html/lib/private/Collaboration/Collaborators/Search.php",
"line": 72,
"function": "search",
"class": "OCA\\ScienceMesh\\Plugins\\ScienceMeshSearchPlugin",
"type": "->",
"args": [
"[email protected]",
25,
0,
[
"OC\\Collaboration\\Collaborators\\SearchResult"
]
]
},
{
"file": "/var/www/html/apps/files_sharing/lib/Controller/ShareesAPIController.php",
"line": 227,
"function": "search",
"class": "OC\\Collaboration\\Collaborators\\Search",
"type": "->",
"args": [
"[email protected]",
[
0,
1,
4,
6,
7
],
true,
25,
0
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "search",
"class": "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
"type": "->",
"args": [
"[email protected]",
"folder",
1,
25,
[
"0",
"1",
"6",
"9",
"7",
"10",
"8",
"12",
"undefined",
"4"
],
true
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
[
"OCA\\Files_Sharing\\Controller\\ShareesAPIController"
],
"search"
]
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 183,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
[
"OCA\\Files_Sharing\\Controller\\ShareesAPIController"
],
"search"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Files_Sharing\\Controller\\ShareesAPIController",
"search",
[
"OC\\AppFramework\\DependencyInjection\\DIContainer"
],
[
"ocs.files_sharing.ShareesAPI.search"
]
]
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 64,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/ocsapp/apps/files_sharing/api/v1/sharees"
]
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 23,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php",
"Line": 37
},
"CustomMessage": "--"
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcriticalShow-stopper for productionShow-stopper for production