MiscService::convertShareRecipient(): Argument #2 ($sharedWith) must be of type string, null given
nickvergessen opened this issue · 1 comments
nickvergessen commented
{
"reqId": "XOLSi7NPAgeAO1EXCpEn",
"level": 3,
"time": "2022-09-23T04:00:01+00:00",
"remoteAddr": "",
"user": "--",
"app": "cron",
"method": "",
"url": "--",
"message": "OCA\\RelatedResources\\Service\\MiscService::convertShareRecipient(): Argument #2 ($sharedWith) must be of type string, null given, called in /var/www/cloud.nextcloud.com/nextcloud/apps/related_resources/lib/Listener/FileShareUpdate.php on line 69",
"userAgent": "--",
"version": "25.0.0.13",
"exception": {
"Exception": "TypeError",
"Message": "OCA\\RelatedResources\\Service\\MiscService::convertShareRecipient(): Argument #2 ($sharedWith) must be of type string, null given, called in /var/www/cloud.nextcloud.com/nextcloud/apps/related_resources/lib/Listener/FileShareUpdate.php on line 69",
"Code": 0,
"Trace": [
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/apps/related_resources/lib/Listener/FileShareUpdate.php",
"line": 69,
"function": "convertShareRecipient",
"class": "OCA\\RelatedResources\\Service\\MiscService",
"type": "->",
"args": [
3,
null
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",
"line": 87,
"function": "handle",
"class": "OCA\\RelatedResources\\Listener\\FileShareUpdate",
"type": "->",
"args": [
{
"__class__": "OCP\\Share\\Events\\ShareDeletedEvent"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 251,
"function": "__invoke",
"class": "OC\\EventDispatcher\\ServiceEventListener",
"type": "->",
"args": [
{
"__class__": "OCP\\Share\\Events\\ShareDeletedEvent"
},
"OCP\\Share\\Events\\ShareDeletedEvent",
{
"__class__": "Symfony\\Component\\EventDispatcher\\EventDispatcher"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 73,
"function": "callListeners",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
{
"__class__": "Closure"
},
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
],
"OCP\\Share\\Events\\ShareDeletedEvent",
{
"__class__": "OCP\\Share\\Events\\ShareDeletedEvent"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
"line": 88,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
{
"__class__": "OCP\\Share\\Events\\ShareDeletedEvent"
},
"OCP\\Share\\Events\\ShareDeletedEvent"
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
"line": 100,
"function": "dispatch",
"class": "OC\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
"OCP\\Share\\Events\\ShareDeletedEvent",
{
"__class__": "OCP\\Share\\Events\\ShareDeletedEvent"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Share20/Manager.php",
"line": 1241,
"function": "dispatchTyped",
"class": "OC\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
{
"__class__": "OCP\\Share\\Events\\ShareDeletedEvent"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Share20/Manager.php",
"line": 1556,
"function": "deleteShare",
"class": "OC\\Share20\\Manager",
"type": "->",
"args": [
{
"__class__": "OC\\Share20\\Share"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Share20/Manager.php",
"line": 1457,
"function": "checkExpireDate",
"class": "OC\\Share20\\Manager",
"type": "->",
"args": [
{
"__class__": "OC\\Share20\\Share"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/apps/files_sharing/lib/ExpireSharesJob.php",
"line": 99,
"function": "getShareById",
"class": "OC\\Share20\\Manager",
"type": "->",
"args": [
"300131"
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/public/BackgroundJob/Job.php",
"line": 78,
"function": "run",
"class": "OCA\\Files_Sharing\\ExpireSharesJob",
"type": "->",
"args": [
null
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/public/BackgroundJob/TimedJob.php",
"line": 103,
"function": "start",
"class": "OCP\\BackgroundJob\\Job",
"type": "->",
"args": [
{
"__class__": "OC\\BackgroundJob\\JobList"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/lib/public/BackgroundJob/TimedJob.php",
"line": 93,
"function": "start",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->",
"args": [
{
"__class__": "OC\\BackgroundJob\\JobList"
}
]
},
{
"file": "/var/www/cloud.nextcloud.com/nextcloud/cron.php",
"line": 152,
"function": "execute",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->",
"args": [
{
"__class__": "OC\\BackgroundJob\\JobList"
},
{
"__class__": "OC\\Log"
}
]
}
],
"File": "/var/www/cloud.nextcloud.com/nextcloud/apps/related_resources/lib/Service/MiscService.php",
"Line": 57,
"CustomMessage": "--"
},
"id": "632d3607c96f4"
}
ArtificialOwl commented
fixed by #53