Project

General

Profile

Actions

Regression #14850

open

PHP error may be shown in the alerts section

Added by Jonathan Lee 9 months ago. Updated 27 days ago.

Status:
Pull Request Review
Priority:
Normal
Assignee:
Category:
Snort
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
24.08
Affected Version:
All
Affected Plus Version:
23.05.1
Affected Architecture:

Description

Error:
Fatal error: Uncaught TypeError: fgetcsv(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/www/snort/snort_alerts.php:858 Stack trace: #0 /usr/local/www/snort/snort_alerts.php(858): fgetcsv(false, 1000, ',', '"') #1 {main} thrown in /usr/local/www/snort/snort_alerts.php on line 858 PHP ERROR: Type: 1, File: /usr/local/www/snort/snort_alerts.php, Line: 858, Message: Uncaught TypeError: fgetcsv(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/www/snort/snort_alerts.php:858 Stack trace: #0 /usr/local/www/snort/snort_alerts.php(858): fgetcsv(false, 1000, ',', '"') #1 {main} thrown


Files

Actions #1

Updated by Marcos M 27 days ago

  • Subject changed from ($stream) must be of type resource, bool given Snort 4.1.6_11 to PHP error may be shown in the alerts section
  • Status changed from New to Pull Request Review
  • Assignee set to Marcos M
  • Target version set to 2.8.0
  • Plus Target Version set to 24.08
  • Affected Architecture deleted (SG-2100)

This indicates that the Snort UUID alert file exists but was not readable for some reason. The root cause of that can vary, but we can handle the error more gracefully.

https://gitlab.netgate.com/pfSense/FreeBSD-ports/-/merge_requests/399

Actions

Also available in: Atom PDF