fleet/pkg/file/testdata
Ian Littman 7fb9a94384
Use install path on packageInfo XML if it's a .app before falling back to bundle ID for PKG name extraction (#30669)
Fixes #25587. SubEthaEdit packgeInfo file is a bit bigger, but the only
thing different is the list of package IDs included, and that's not what
was broken/fixed here, so went with an abbreviated version that better
demonstrates what got fixed here.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [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.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Added/updated automated tests
- [x] Manual QA for all new/changed functionality

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Improved extraction of application names from uploaded PKG packages by
using the install path as a fallback method.

* **Tests**
* Added a new test case to verify correct name extraction from PKG
packages using the install path.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-07-09 08:21:10 -05:00
..
distribution 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
installers Fix TestExtractInstallerMetadata test fail. 2024-09-08 13:16:04 -05:00
packageInfo Use install path on packageInfo XML if it's a .app before falling back to bundle ID for PKG name extraction (#30669) 2025-07-09 08:21:10 -05:00
scripts Use pkgutil approach to be more effective at uninstalling (#22618) 2024-10-03 14:21:23 -03:00
software-installers Fix TestExtractInstallerMetadata test fail. 2024-09-08 13:16:04 -05:00
invalid.tar.gz add pkg to inspect xar files (#11015) 2023-04-05 20:49:02 -03:00
signed.pkg add pkg to inspect xar files (#11015) 2023-04-05 20:49:02 -03:00
unsigned.pkg add pkg to inspect xar files (#11015) 2023-04-05 20:49:02 -03:00
wrong-toc.pkg add pkg to inspect xar files (#11015) 2023-04-05 20:49:02 -03:00