core: Firewall - Rules -WAN - unable to expand the Automatically generated rules with auto-added VPN rules and "legacy" IPsec tunnel(s)
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- 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
The button just does not do anything. Only happens with WAN interface (PPPoE/DHCPv6). It works fine with other interfaces. The floating rules button works just fine even on the WAN interface. Tested with latest stable Edge and Chrome, in incognito mode as well. Nothing obvious in the browser console either, beyond “normal” complaints that jquery-3.5.1.min.js takes long time - see below.
To Reproduce
Steps to reproduce the behavior:
- Go to ‘Firewall: Rules: WAN’
- Click the button next to ‘Automatically generated rules’
- Nothing happens.
Expected behavior
Expand the autogenerated rules list.
Relevant log files
Nothing obvious in the browser console either, beyond complaints that the jquery-3.5.1.min.js takes long time.
[Violation]'click' handler took <N>ms
jquery-3.5.1.min.js:2 [Violation]'click' handler took 235ms
jquery-3.5.1.min.js:2 [Violation]'click' handler took 187ms
jquery-3.5.1.min.js:2 [Violation]'click' handler took 189ms
jquery-3.5.1.min.js:2 [Violation]'click' handler took 179ms
[Violation]Forced reflow while executing JavaScript took <N>ms
[Violation]Forced reflow while executing JavaScript took 204ms
[Violation]Forced reflow while executing JavaScript took 78ms
[Violation]Forced reflow while executing JavaScript took 161ms
[Violation]Forced reflow while executing JavaScript took 164ms
Additional context
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 23.7.7_3 (amd64)
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 23 (23 by maintainers)
Commits related to this issue
- firewall: simple debug test for #6991 — committed to opnsense/core by fichtner 8 months ago
- firewall: move click() to button away from tr #6991 — committed to opnsense/core by fichtner 8 months ago
- firewall: move click() from tr to button #6991 Plus minor cleanups. — committed to opnsense/core by fichtner 8 months ago
- Firewall / Rules - add section for automatic rules being added at the end of the ruleset. Although technically the presentation is not 100% accurate (shown before rules, after groups), the text should... — committed to opnsense/core by AdSchellevis 8 months ago
Thanks for the help with debugging. (As a bonus, I am now able to break the button on any/all interfaces, just adjust the legacy tunnel interface accordingly. LOL.)
Handing this over to @AdSchellevis … fix should be easy now that we know. Thanks!
Well, there’s just openvpn and enc0 listed, nothing manually added there.
Can you try https://github.com/opnsense/core/commit/94b269a8 just to be sure we’re not looking at a broken rendering? Somehow the code hides it multiple times. That could be an issue, but hard to debug 😕