Skip to content

WebUI: Add value constraint checks #22911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

userwiths
Copy link
Contributor

@userwiths userwiths commented Jun 24, 2025

Closes #22758.

Other preferences like Listening Port & announcePort have an explicit check in the JS in preferences.html.
It seems that a few fields however were lacking such checks those fields being:

  1. Outstanding memory
  2. Peer ToS
  3. peer_turnover
  4. peer_turnover_cutoff
  5. peer_turnover_interval

I tested manually those fields and was able to save values above the allowed from the WebUI, which were visualizing as the maximum allowed value in the QT App but remained above those values even after restart according to WebUI.

@glassez
Copy link
Member

glassez commented Jun 24, 2025

@userwiths userwiths force-pushed the fix/missing-value-constraint-checks branch from 32aab54 to 1e55b13 Compare June 24, 2025 10:47
@glassez
Copy link
Member

glassez commented Jun 24, 2025

@userwiths
WebUI: Add value constraint checks

@userwiths userwiths force-pushed the fix/missing-value-constraint-checks branch from 1e55b13 to 8a61031 Compare June 24, 2025 10:54
@glassez glassez changed the title WebUI: Missing value constraint checks WebUI: Add value constraint checks Jun 24, 2025
@xavier2k6 xavier2k6 added the WebUI WebUI-related issues/changes label Jun 25, 2025
@Chocobo1 Chocobo1 added this to the 5.2 milestone Jul 12, 2025
@Chocobo1 Chocobo1 merged commit bf86592 into qbittorrent:master Jul 13, 2025
15 checks passed
@Chocobo1
Copy link
Member

@userwiths
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebUI WebUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outstanding memory when checking torrents has inconsistent behavior between webui and native
4 participants