Bug #9193
closedfirewall_nat.php: PHP error deleting an imported NAT rule with no firewall rules present
100%
Description
Scenario:
1. Empty firewall rule list <filter></filter>
2. Imported NAT rules that reference associated filter rules that do not exist because of point 1
Attempting to delete an affected NAT rule will trigger a PHP error:
Fatal error: Uncaught Error: Only variables can be passed by reference in /usr/local/www/firewall_nat.php:104 Stack trace: #0 {main} thrown in /usr/local/www/firewall_nat.php on line 104 PHP ERROR: Type: 1, File: /usr/local/www/firewall_nat.php, Line: 104, Message: Uncaught Error: Only variables can be passed by reference in /usr/local/www/firewall_nat.php:104 Stack trace: #0 {main} thrown
Updated by Jim Pingle almost 6 years ago
- Status changed from Assigned to Feedback
- % Done changed from 0 to 100
Applied in changeset 701728c0778cbb4ccf95ebfad30bf56339d1a7e3.
Updated by Vladimir Lind almost 6 years ago
On 2.4.5-dev 20 Nov:
Repeated steps 1 and 2 in bug description - after that triggered PHP error by NAT rule deletion attempt.
On 2.4.5-DEVELOPMENT (amd64) built on Thu Jan 03 15:25:56 EST 2019:
Repeated steps 1 and 2 in bug description - NAT rule with accossiated firewall rule was successfully deleted.
Looks good.
Updated by Jim Pingle almost 6 years ago
- Status changed from Feedback to Resolved
Updated by Jim Pingle over 5 years ago
- Target version changed from 2.5.0 to 2.4.4-p3
Updated by Constantine Kormashev over 5 years ago
Tried on 2.4.4-p3, I do not observe the issue. I could upload config with empty firewall rule list <filter></filter>, NAT/PortForward entries and deleting NAT entries did not lead to any issue.