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 #1

Updated by Bill Meeks about 1 year ago

I will work on this and submit a pull request containing the fix.

Actions #2

Updated by Bill Meeks about 1 year ago

A pull request containing the fix for this issue has been submitted here: https://github.com/pfsense/FreeBSD-ports/pull/1241. When this request is merged, this issue can be marked "resolved".

Actions #3

Updated by Jim Pingle about 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

PR merged, thanks!

Actions

Also available in: Atom PDF