opnsense / opnsense/plugins

security/tor: Advanced mode / help toggles are broken

Open Beginner friendly
#5,722 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
863
Avg merge
2d 6h
Merged PRs (30d)
10

Description

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

Describe the bug
The "advanced mode" and "full help" toggles within the Tor plugin do not display the advanced configuration items or help text. There is no response whatsoever when activating these toggles.

This appears to be related to recent changes within opnsense-ui.js (see core@4b4f0e2 / core@6dd4cde and core@a462959), which parses forms whose id attribute begins with the string value "frm". The forms for the tor plugin do not begin with this value, and therefore the JS action to display advanced configuration or help text no longer applies to the plugin's forms.

To Reproduce
Steps to reproduce the behavior:

  1. Install the Tor plugin.
  2. Go to the Configuration menu.
  3. Go to either the General or the Relaying tab.
  4. Click the toggle for "advanced mode" or "full help."
  5. See that nothing happens.

Expected behavior
Toggling "advanced mode" should display additional configuration items. Toggling "full text" should display help text for all items (where available).

Additional context
I used my browser's dev tools to edit the form id attribute on the tor plugin's General tab. When edited to "frm_general", the toggle for advanced mode worked as expected, because the JS action in opnsense-ui.js applied correctly.

Environment
OPNsense 26.7.4_1-amd64
Virtualized in Proxmox VE / QEMU

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with opnsense-ui.js and the Tor plugin forms used by the General and Relaying tabs. Reproduce the advanced mode and full help toggles, then inspect their form ids against the frm prefix behavior described in the issue. Done means both toggles display their expected configuration items and help text in the Tor plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.