mikopbx / Core

Main repository! MikoPBX - is free, easy to setup PBX for small business based on Asterisk 16 core
https://www.mikopbx.com
GNU General Public License v3.0
367 stars 61 forks source link

TypeError: Argument 1 passed to MikoPBX\Core\System\Util::getExtensionOfFile() must be of the type string, n... #637

Closed sentry-miko-ru[bot] closed 11 months ago

sentry-miko-ru[bot] commented 1 year ago

Sentry Issue: MIKOPBX-87W

TypeError: Argument 1 passed to MikoPBX\Core\System\Util::getExtensionOfFile() must be of the type string, null given, called in /offload/rootfs/usr/www/src/PBXCoreREST/Controllers/Cdr/GetController.php on line 111
  File "/offload/rootfs/usr/www/src/Core/System/Util.php", line 349, in MikoPBX\Core\System\Util::getExtensionOfFile
    public static function getExtensionOfFile(string $filename): string
  File "/offload/rootfs/usr/www/src/PBXCoreREST/Controllers/Cdr/GetController.php", line 111, in MikoPBX\PBXCoreREST\Controllers\Cdr\GetController::playback
    $extension = Util::getExtensionOfFile($filename);
  File "/offload/rootfs/usr/www/src/PBXCoreREST/Controllers/Cdr/GetController.php", line 89, in MikoPBX\PBXCoreREST\Controllers\Cdr\GetController::callAction
    $this->playback();
  File "/index.php", line 46, in MikoPBX\PbxCore\RestAPI::main
    $application->handle($_SERVER['REQUEST_URI']);
  File "/index.php", line 54
    $restApi->main();
...
(2 additional frame(s) were not displayed)

Надо посмотреть откуда это лезет, у нас же прослушка на уровне Nginx релаизована, возможно это авторизационный запрос, и просто не корректно передается параметр запроса из Nginx