MISP icon indicating copy to clipboard operation
MISP copied to clipboard

Bug: Error Log Clutter with Warnings from Server.php

Open highpingblorg opened this issue 1 year ago • 0 comments

Actual behavior

Anytime a request is made to MISP, it logs a warning no matter what. No functionality breaks therefore it is assumed that the warning is meaningless (unless I am missing something)

Expected behavior

No warning message spam in the error log

Steps to reproduce

Install MISP using the RPM package - https://github.com/amuehlem/MISP-RPM

Version

2.4.194

Operating System

RHEL

Operating System version

8

PHP version

7.4.33

Browser

Firefox

Browser version

No response

Relevant log output

2024-08-01 11:45:23 Warning: Warning (2): Invalid argument supplied for foreach() in [/var/www/MISP/app/Model/Server.php, line 4191]
Trace:
ErrorHandler::handleError() - APP/Lib/cakephp/lib/Cake/Error/ErrorHandler.php, line 230
Server::extensionDiagnostics() - APP/Model/Server.php, line 4191
ServersController::serverSettings() - APP/Controller/ServersController.php, line 1229
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Lib/cakephp/lib/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 101

Extra attachments

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

highpingblorg avatar Aug 01 '24 09:08 highpingblorg