Project

General

Profile

Actions

Bug #12543

open

Deleteing a Outbound NAT rule gave me an empty rule and displayed php error in UI.

Added by C J 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

When managing Outbound NAT rules
I managed to remove a duplicate rule
Which gave me the following error:

/firewall_nat_out.php: New alert found: PHP ERROR: Type: 1, File: /usr/local/www/firewall_nat_out.php, Line: 217, Message: Uncaught Error: Cannot use string offset as an array in /usr/local/www/firewall_nat_out.php:217 

This error appeared in the Outbound NAT UI and prevented me from making further changes to these rules, other GUI functionality was also comprised also (E.g. dropdowns in the top navigation)

Unfortunately, I do not have a screenshot of this.

My steps to resolve this:
  • Edit /cf/conf/config.xml
  • Remove empty rule <rule></rule> from <outbound>
  • Save File
  • Reload NAT outbound UI

My Version

2.5.2-RELEASE (amd64)
built on Fri Jul 02 15:33:00 EDT 2021
FreeBSD 12.2-STABLE

Actions #1

Updated by C J 2 months ago

There's a horrible spelling mistake in the title but I can't edit.. Sorry!

Actions #2

Updated by Alhusein Zawi about 2 months ago

what are steps to produce the issue?

I was not able to produce it , deleted duplicated outbound NAT rules without seeing the issue.

Actions #3

Updated by Danilo Zrenjanin about 2 months ago

I couldn't replicate it either.

I created/deleted duplicate entries with no issues in Manual/Hybrid mode.

We would need more details on how to replicate this bug report.

Actions #4

Updated by Kris Phillips about 2 months ago

I also was not able to reproduce this. This bug report should be marked as Feedback until we can determine the steps to reproduce.

Actions

Also available in: Atom PDF