mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
**Related issue:** Resolves #35528 Potentially #38983 I avoided adding a migration to fix existing bad platform data. However a small migration is needed to convert software titles with the source "pkg_packages" that have a bundle id, to the source "apps". ### Changes To get an installer with the wrong platform fixed: - Remove then add back the .pkg installer that showed the wrong platform to see it create a new title with the correct platform To get hosts that report the wrong platform in inventory/library fixed: - Devices would still show the app with the wrong platform in inventory/library. This happens because there are still entries in `software` that match the incorrect previous title. All of these entries need to be deleted for this bug to be fixed. One way for this to happen is for all hosts with that app to remove it then wait for refetch and the `vulnerabilities` cron, or be deleted directly in the database where they should get restored after new refetches. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [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. - [ ] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [ ] If paths of existing endpoints are modified without backwards compatibility, checked the frontend/CLI for any necessary changes ## Testing - [x] Added/updated automated tests - [ ] Where appropriate, [automated tests simulate multiple hosts and test for host isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing) (updates to one hosts's records do not affect another) - [x] QA'd all new/changed functionality manually
1 line
85 B
Text
1 line
85 B
Text
- Fixed a bug where software installers could create titles with the wrong platform.
|