mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #36682 - Added similar "not found" handling than the one we have when calling `getHostScriptExecutionResultDB` within the `GetHostLockWipeStatus` function for consistency => now return a 404 instead of a 500 when no rows are returned. - Applied similar changes to https://github.com/fleetdm/fleet/issues/33090 (PR: https://github.com/fleetdm/fleet/pull/40009) => logging an error instead of returning a 404, so that the Host details page does not crash. The actual fix would be to remove the `host_mdm_actions` record that contains the orphan `lock_ref` mentioned in the issue. I'm not sure what the root cause is, but I think setting up some monitoring on the logs I added should help determining that. # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] Added/updated automated tests - [ ] QA'd all new/changed functionality manually
1 line
155 B
Text
1 line
155 B
Text
* Prevented a 500 error on the host details page when an MDM command reference in `host_mdm_actions` pointed to a non-existent command (orphan reference).
|