Alias screen search function cannot find by partial names results that begin with an underscore
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:
- Go to 'Firewall/Alias'
- Click on search bar
- Enter any letters that are present in an alias name that begins with _ and contain digits (Ex: name is '_123', enter '12')
- 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).
Tested on 25.7.7
Sorry for the incorrect version in the report. It's actually the same as yours, I presume:
For some reason, it's not working for me:
The search searches through all columns, I assume all results have some sort of "133" in them in any of their fields?
Here it also catches "Expire 3600"
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.