Bug #10827
closedCannot add or delete separators when no rules are present
0%
Description
If separators exist without any rules, they will reappear after being deleted and saved. The same behavior can be seen in NAT>Port Forwards
Steps to reproduce:
1.) Create one or more separator at Firewall / Rules
2.) Delete all rules on the interface while leaving the separator and apply changes
3.) Attempt to delete the separator with no rules present on the interface and save
The separators will fail to be deleted.
The separator can be deleted by adding a rule before attempting it
Updated by Danilo Zrenjanin over 4 years ago
- Status changed from New to Feedback
I couldn't reproduce the issue on the CE image.
Here is what I found irregular:
1)If I first create a separator (on an empty list) then create a rule, the separator gets deleted.
2)Deleting any rule will delete the separator.
Updated by Marcos M over 4 years ago
- Subject changed from Cannot delete separators when no rules are present in Firewall>Rules to Cannot add or delete separators when no rules are present
I was able to reproduce this, and it looks to affect both firewall_nat.php and firewall_rules.php.
Neither adding or removing separators will work when no rules exist.
At least part of the issue seems to be here:
https://github.com/pfsense/pfsense/blob/532be9051b3e633507ec864394b825a7a69a4bec/src/usr/local/www/firewall_rules.php#L218
The code to update the separators only exists within the code that checks if rules exist. Hence, if no rules exist, separator additions are not updated.
Updated by Kris Phillips over 4 years ago
This item should be moved from Feedback to Confirmed, please. I also tested this and can confirm that it is present in 2.4.5p1.
Updated by Dan Mackie about 4 years ago
Updated by Jim Pingle about 4 years ago
- Status changed from Confirmed to Pull Request Review
- Assignee set to Anonymous
- Target version set to 2.5.0
Updated by Renato Botelho almost 4 years ago
- Status changed from Pull Request Review to Feedback
PR has been merged. Thanks!
Updated by Alhusein Zawi almost 4 years ago
I was able to delete separators after deleting the rules
Steps:
created 2 separator.
Created 2 rules and applied changes.
Deleted rules and applied changes.
Deleted separator and saved.
separators have been deleted.
2.5.0.a.20201231.0250
Updated by Viktor Gurov almost 4 years ago
- Status changed from Feedback to Resolved
Updated by Jim Pingle almost 4 years ago
- Category changed from Web Interface to Rules / NAT