Skip to content

fix(settings): block override submission for remaining 400 cases (#476)#480

Merged
Starosdev merged 1 commit intodevelopfrom
fix/SCR-476-override-400-remaining-cases
Apr 30, 2026
Merged

fix(settings): block override submission for remaining 400 cases (#476)#480
Starosdev merged 1 commit intodevelopfrom
fix/SCR-476-override-400-remaining-cases

Conversation

@Starosdev
Copy link
Copy Markdown
Owner

Summary

  • Disables Add Override button when action is force_status but no status is selected
  • Adds guard in addOverride() to abort when force_status has no status
  • Adds guard to abort when Custom Threshold has warn_above >= fail_above

Both scenarios were accepted by the frontend but rejected by backend validation with a 400, unaddressed by the previous fix in #477.

Linked Issues

Closes #476

Test plan

  • Select Force Status action, leave status empty — button is disabled
  • Select Custom Threshold, set warn_above >= fail_above — form does not submit
  • All previously working override actions (Ignore, valid Force Status, valid Custom Threshold) still submit successfully

Adds frontend guards for two scenarios the original fix missed:
- 'force_status' action with no status selected
- custom threshold with warn_above >= fail_above

Both previously allowed form submission but triggered backend 400s.
@Starosdev Starosdev added the bug Something isn't working label Apr 30, 2026
@Starosdev Starosdev merged commit 40a8a66 into develop Apr 30, 2026
15 checks passed
Starosdev added a commit that referenced this pull request Apr 30, 2026
…, and bug fixes (#481)

## Summary

- Add 12-hour / 24-hour time format preference (#445)
- Fix 400 error when adding SMART attribute overrides — block submission
when action is empty without thresholds, `force_status` without status,
or `warn_above >= fail_above` (#476, #480)
- Widen settings dialog to prevent content cutoff (#475)
- Auto-add `disabletls=Yes` for Gotify URLs on HTTP ports (#472)
- Fix temperature chart tooltip truncation and spike hover (#443)
- Add `insecure_skip_verify` option for Uptime Kuma self-signed TLS
(#418)
- Fix potential memory leak sources in backend (#419)
- Fix missing `device_wwn` column in summary query (#423)

## Linked Issues

Closes #476
Closes #475
Closes #472
Closes #443
Closes #418

## Test plan

- [x] CI checks passed on develop
- [x] Override form blocks submission on all invalid state combinations
- [x] Gotify HTTP URLs receive disabletls param automatically
- [x] Time format preference persists across sessions
Starosdev pushed a commit that referenced this pull request Apr 30, 2026
## [1.52.0](v1.51.0...v1.52.0) (2026-04-30)

### Features

* **settings:** attribute override validation, time format preference, and bug fixes ([#481](#481)) ([4218085](4218085)), closes [#445](#445) [#476](#476) [#480](#480) [#475](#475) [#472](#472) [#443](#443) [#418](#418) [#419](#419) [#423](#423) [#476](#476) [#475](#475) [#472](#472) [#443](#443) [#418](#418)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant