Bug: Decaying Models do no display MISP logo. MISP generates error [MissingControllerException] for MISP.png [ Easily fixable ]
elvidence opened this issue · comments
Actual behavior
Decaying models do not display MISP.png because the path is set to /var/www/MISP/app/webroot/img/orgs/MISP.png which does not exist. Only /var/www/MISP/app/webroot/img/ (no orgs
dir) exists and the actual MISP.png file is located in /var/www/MISP/app/files/img/orgs/MISP.png
Expected behavior
Error log is not generated as below and PNG file is correctly displayed.
Steps to reproduce
A simple
ln -s /var/www/MISP/app/files/img/orgs/MISP.png /var/www/MISP/app/webroot/img/orgs/MISP.png
can solve the issue.
Version
2.4.193
Operating System
Ubuntu
Operating System version
22.04
PHP version
7.4
Browser
Firefox
Browser version
No response
Relevant log output
Error: [MissingControllerException] Controller class ImgController could not be found.
Exception Attributes: array (
'class' => 'ImgController',
'plugin' => NULL,
)
Request URL: /img/orgs/MISP.png
Stack Trace:
#0 /var/www/MISP/app/webroot/index.php(101): Dispatcher->dispatch()
#1 {main}
Extra attachments
No response
Code of Conduct
- I agree to follow this project's Code of Conduct