fleet/pkg/file/testdata/distribution
Jonathan Katz 59a73b1e47
32084 Cisco Secure Client installer fix (#35077)
**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.
2025-11-03 15:22:39 -05:00
..
distribution-1password.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-acrobatreader.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-airtame.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-boxdrive.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-chrome.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-cisco-secure-client.xml 32084 Cisco Secure Client installer fix (#35077) 2025-11-03 15:22:39 -05:00
distribution-cold-turkey.xml fix: use a new strategy for finding the app name in case the title is wrong (#25297) 2025-01-10 16:42:06 -05:00
distribution-edge.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-firefox.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-fleet.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-go.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-iriunwebcam.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-microsoft-teams.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-microsoftexcel.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-microsoftword.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-miscrosoftpowerpoint.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-privileges.xml Fixed bundle identifier for privileges pkg (#33517) 2025-09-26 14:31:31 -05:00
distribution-ringcentral.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
distribution-sentinelone.xml fix: use a new strategy for finding the app name in case the title is wrong (#25297) 2025-01-10 16:42:06 -05:00
distribution-zoom-full.xml cover edge case for alternative zoom installer (#20286) 2024-07-10 08:05:09 -03:00
distribution-zoom.xml improve extraction of name and version, and add bundle identifier for pkg installers (#19838) 2024-06-25 10:55:24 -03:00
test-zero-installkbytes.xml Parsing package IDs 2024-09-06 09:49:27 -05:00