project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] PBS passed disk status is shown in red

Open artistpromedia opened this issue 3 months ago • 2 comments

Describe the bug

The PBS disk table shows a red status badge when the PBS API returns the healthy lowercase value passed.

The UI compares the value only with uppercase PASSED and OK, so lowercase passed falls through to the failure style.

Steps to Reproduce

  1. Connect a PBS server whose disk-list response contains "status": "passed".
  2. Open that PBS server in PegaProx.
  3. Check the Disks table.

Expected behavior

passed should use the green healthy badge. unknown should remain gray and failed states should remain red.

Environment

  • PegaProx Version: 1.0.2
  • Installation Method: Debian package
  • OS: Debian 13 appliance
  • Browser: Chrome
  • Behind Reverse Proxy? No
  • UI? Corporate

Logs

{"devpath":"/dev/sda","status":"passed"}

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx

artistpromedia avatar Aug 31 '26 05:08 artistpromedia

Reproduced, thanks — and nice minimal repro. The disk table was matching the SMART status only against uppercase PASSED/OK, so a lowercase passed fell through to the red style.

Fixed on Testing: we uppercase the value before the badge comparison now (same normalisation the SMART detail modal already does), so passed → green, unknown → gray, real failures stay red. Ships in the next release.

mkellermann97 avatar Aug 31 '26 07:08 mkellermann97

This landed in v1.1.0 now, so closing. Thanks for the report!

MrMasterbay avatar Aug 31 '26 09:08 MrMasterbay