Project

General

Profile

Actions

Bug #11372

closed

I can delete nested alias even if it is in use

Added by Alexey Muzychenko almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Viktor Gurov
Category:
Aliases / Tables
Target version:
Start date:
02/05/2021
Due date:
% Done:

0%

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

Description

If I define an alias, use it in any firewall rule directly and try to delete the alias - I get an error "Cannot delete alias. Currently in use by ."
But if I define other alias and use it inside other alias, I can delete it without any checking, even if it is in use.

In such case "IP" nested alias can be deleted without any error prompts, but if I delete nested "Ports" alias, after applying setting it leads to the error in the Notices: "Empty destination port alias 'name_of_alias' for rule ''"

Tested on
2.5.0-DEVELOPMENT (amd64)
built on Mon Feb 01 00:03:10 EST 2021
FreeBSD 12.2-STABLE

Actions #1

Updated by Michael Spears almost 4 years ago

Alexey Muzychenko wrote:

If I define an alias, use it in any firewall rule directly and try to delete the alias - I get an error "Cannot delete alias. Currently in use by ."
But if I define other alias and use it inside other alias, I can delete it without any checking, even if it is in use.

In such case "IP" nested alias can be deleted without any error prompts, but if I delete nested "Ports" alias, after applying setting it leads to the error in the Notices: "Empty destination port alias 'name_of_alias' for rule ''"

Tested on
2.5.0-DEVELOPMENT (amd64)
built on Mon Feb 01 00:03:10 EST 2021
FreeBSD 12.2-STABLE

I was unable to reproduce this on two different testing firewalls. Please provide additional information to reproduce.

Actions #2

Updated by Viktor Gurov almost 4 years ago

Actions #3

Updated by Jim Pingle almost 4 years ago

  • Status changed from New to Pull Request Review
Actions #4

Updated by Renato Botelho almost 4 years ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov
  • Target version set to 2.5.0

Merged

Actions #5

Updated by Jim Pingle almost 4 years ago

  • Status changed from Feedback to Closed

This is working fine. On current code I can't delete an alias which is nested in another in-use alias.

Actions

Also available in: Atom PDF