mirror of
https://github.com/fleetdm/fleet
synced 2026-04-30 09:57:37 +00:00
**Related issue:** Resolves #32084 This PR modifies `isValidAppFilePath` to allow subdirectors in `Applications/`, like in this case `Applications/Cisco/Cisco Secure Client.app`. This also changes the metadata extraction from packageinfo to trim `.app` from the name in all cases. # 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 ### Test plan: --- I ran this on my local environment and it seemed fine - Have environment with the bug recreated, it has two software titles for "Cisco Secure Client", and the one with the bundle id `com.cisco.pkg.anyconnect.vpn` is used by the installer. - URL to pkg: https://fndtnfleetmsp.blob.core.windows.net/fndtnpkgs/cisco-secure-client-macos-5.1.3.62-core-vpn-webdeploy-k9.pkg - Cisco Secure Client doesn't show as installed in UI even after installing. - Run the new migration. - Cisco Secure Client shows as installed now in ui, software title with bundle id `com.cisco.pkg.anyconnect.vpn` is gone from the database, and the software installer references the correct title (`com.cisco.secureclient.gui`). - Check that deleting and reuploading the installer doesn't recreate the bad software title. ### QA Note: --- There are some problems with the install script, but that is probably a different scope than this ticket. `Reinstall` wont work, it says Cisco Secure Client is already installed. Uninstalling through Fleet then Installing again works fine though. |
||
|---|---|---|
| .. | ||
| distribution-1password.xml | ||
| distribution-acrobatreader.xml | ||
| distribution-airtame.xml | ||
| distribution-boxdrive.xml | ||
| distribution-chrome.xml | ||
| distribution-cisco-secure-client.xml | ||
| distribution-cold-turkey.xml | ||
| distribution-edge.xml | ||
| distribution-firefox.xml | ||
| distribution-fleet.xml | ||
| distribution-go.xml | ||
| distribution-iriunwebcam.xml | ||
| distribution-microsoft-teams.xml | ||
| distribution-microsoftexcel.xml | ||
| distribution-microsoftword.xml | ||
| distribution-miscrosoftpowerpoint.xml | ||
| distribution-privileges.xml | ||
| distribution-ringcentral.xml | ||
| distribution-sentinelone.xml | ||
| distribution-zoom-full.xml | ||
| distribution-zoom.xml | ||
| test-zero-installkbytes.xml | ||