core icon indicating copy to clipboard operation
core copied to clipboard

Alias screen search function cannot find by partial names results that begin with an underscore

Open dca00 opened this issue 1 month ago • 4 comments

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

  • [x ] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [x ] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Describe the bug

Aliases that begin with _ are not found when their partial names are entered in the search box

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Firewall/Alias'
  2. Click on search bar
  3. Enter any letters that are present in an alias name that begins with _ and contain digits (Ex: name is '_123', enter '12')
  4. The complete list remains un-filtered

Expected behavior

Only the alias _123 should appear in the filtered list

Describe alternatives you considered

N/A

Screenshots

N/A

Relevant log files

N/A

Additional context

N/A

Environment

OPNsense 25.7.7 (amd64).

dca00 avatar Nov 21 '25 15:11 dca00

Image

Tested on 25.7.7

Monviech avatar Nov 21 '25 15:11 Monviech

Sorry for the incorrect version in the report. It's actually the same as yours, I presume: Image

For some reason, it's not working for me: Image

dca00 avatar Nov 21 '25 15:11 dca00

The search searches through all columns, I assume all results have some sort of "133" in them in any of their fields?

Image

Here it also catches "Expire 3600"

Monviech avatar Nov 21 '25 15:11 Monviech

I highly doubt that. Some IP networks might have 133 in them, but not all do, and the list does not change when 133 is entered, so the search is definitely not working 100%. Also, if the search is looking through all networks in the content, then it is a problem. It should not. From the user perspective, such 'dumb' search is counter-productive. The contents of host/network/geoIP country-based aliases should not be a part of the same search as the search of names/descriptions. Here is a small sample of our most populous aliases, excluding geoIP, and this is not a large organization at all. I had worked for those that had 10s of 1000s of hosts/networks blocked or allowed.

Image If the UI loads all of the content into the browser memory, then the alias screen is doomed to be slow, which it currently is.

dca00 avatar Nov 21 '25 15:11 dca00