Firewall Diagnostic States not searchable after 23.7.4 upgrade

Started by opnfwb, September 14, 2023, 06:46:17 PM

Previous topic - Next topic
Greetings! I'm noticing a small issue where I cannot use the search function when viewing the Firewall/Diagnostics/States. Any search I run in the firewall states diagnostic view always returns with "no results"

I just tested it too and it only shows results when I type full IPv4 or IPv6 addresses. It doesn't show results when there's just partially written ones.

It happens in sessions and in states.

I just tested it on an older version (OPNsense 23.4.2-amd64) too and there partial strings work.
Hardware:
DEC740


Franco you're right. I fired up another VM that still has 23.7.3 on it and I see the same thing.

However, if this is an intentional change I have to admit I much preferred the "old" way of the partial matches. I used to be able to search by keyword of my firewall rule name.

It was these two:

https://github.com/opnsense/core/commit/6487512
https://github.com/opnsense/core/commit/3322a2e

# opnsense-patch 6487512 3322a2e

The idea was to search for split terms, but maybe the boundary matching is handled wrongly now.


Cheers,
Franco


For me I'm still seeing the same behavior after upgrading and am unsure if I can apply these patches on the newer 24.1.x series?

Is this the new intended behavior to not match partial searches in the Firewall Sessions or States view?

Thanks for your time and apologies if I'm being a "squeaky wheel" on this. But I really liked that feature and I miss it. :)

Maybe better open a ticket (https://github.com/opnsense/core) using our bug report template, it's intentional to search for addresses/networks (e.g. 192.168.1.1, 192.168.0.0/24) when offered, I'm doubting about the text parts in the search phrase.

Best regards,

Ad