Project

General

Profile

Actions

Bug #14606

closed

Deleting Last BFD Profile in FRR Package Causes PHP Fatal Error

Added by Bill Hughes over 1 year ago. Updated over 1 year ago.

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

100%

Estimated time:
Plus Target Version:
Affected Version:
2.7.x
Affected Plus Version:
23.05.1
Affected Architecture:

Description

To reproduce:

1. Enable BFD in FRR.
2. Create a BFD profile (only requires a profile name).
3. Delete the BFD profile.
4. The following error is displayed.

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_bfd.inc:89 Stack trace: #0 /usr/local/pkg/frr/inc/frr_bfd.inc(245): frr_bfd_generate_profiles() #1 /usr/local/pkg/frr.inc(684): frr_generate_config_bfd() #2 /usr/local/www/pkg_edit.php(245) : eval()'d code(1): frr_generate_config() #3 /usr/local/www/pkg_edit.php(245): eval() #4 {main} thrown in /usr/local/pkg/frr/inc/frr_bfd.inc on line 89 PHP ERROR: Type: 1, File: /usr/local/pkg/frr/inc/frr_bfd.inc, Line: 89, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_bfd.inc:89 Stack trace: #0 /usr/local/pkg/frr/inc/frr_bfd.inc(245): frr_bfd_generate_profiles() #1 /usr/local/pkg/frr.inc(684): frr_generate_config_bfd() #2 /usr/local/www/pkg_edit.php(245) : eval()'d code(1): frr_generate_config() #3 /usr/local/www/pkg_edit.php(245): eval() #4 {main} thrown

An example of the error log is attached.

Affects both 23.05.1 and 2.7.0. Tested on Netgate 7100 and VM with CE.

Manually removing the empty <frrbfdprofiles> </frrbfdprofiles> tags in the config.xml stopped the error message from appearing.


Files

PHP_errors_FRR_BFD_error.log (487 Bytes) PHP_errors_FRR_BFD_error.log Bill Hughes, 07/24/2023 12:58 AM
Actions

Also available in: Atom PDF