Project

General

Profile

Actions

Bug #14041

closed

Post-install migration of existing settings throws a PHP error when the configuration contains the legacy layout of a single alias in a Pass List.

Added by Bill Meeks about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Suricata
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
2.7.0
Affected Plus Version:
23.01
Affected Architecture:
All

Description

Some time back the Pass List logic in Suricata was changed to allow the addition of multiple custom IPs and/or aliases to a custom Pass List. This new logic changed the existing <address></address> XML field into an array with items. Multiple IPs or aliases are assigned as elements of this array. The settings migration code called during package installation tests for the older non-array layout and converts it to the new array-based layout. However, under PHP 8.1 the check throws a PHP error when it encounters a legacy non-array based layout. The offending code section uses a pair of is_array() calls with one of them testing for a multi-dimensional array.

Actions

Also available in: Atom PDF