If a user (or the system, e.g. downloading an .app twice on the ~/Downloads folder) has renamed an application .app folder, this new name of the folder can end up as the "Software Title" for the corresponding bundle identifier.
See below for steps to reproduce.
💥 Actual behavior
A user or the system renaming an .app folder should not end up in the software title.
🧑💻 Steps to reproduce
Have macOS host A rename its /Applications/Google Chrome.app to /Applications/Google Chrome 2.app
Enroll a macOS host A to Fleet.
Software title for host A's Google Chrome will be Google Chrome 2.app.
Enroll a macOS host B to Fleet with Chrome installed (but no renaming).
Host B software tab will show Google Chrome 2.app as the software title for the installed Google Chrome version (which is not correct).
Data from customer
~450 titles are reported with the 2.app suffix (out of 50k titles).
We are not sure how the devices end up with the 2.app suffixes but it's happening and causing software titles to be invalid.
🕯️ More info (optional)
osquery's apps.name uses the directory name and Fleet uses such field to populate the Fleet software "name". Consider using bundle_name, bundle_executable and display_name.
Software title should also include the software name in its unique index, not just bundle_identifier.
Fleet version: v4.59.1 (probably previous versions too)
If a user (or the system, e.g. downloading an
.app
twice on the~/Downloads
folder) has renamed an application.app
folder, this new name of the folder can end up as the "Software Title" for the corresponding bundle identifier.See below for steps to reproduce.
💥 Actual behavior
A user or the system renaming an .app folder should not end up in the software title.
🧑💻 Steps to reproduce
/Applications/Google Chrome.app
to/Applications/Google Chrome 2.app
Google Chrome 2.app
.Google Chrome 2.app
as the software title for the installed Google Chrome version (which is not correct).Data from customer
2.app
suffix (out of 50k titles).2.app
suffixes but it's happening and causing software titles to be invalid.🕯️ More info (optional)
apps.name
uses the directory name and Fleet uses such field to populate the Fleet software "name". Consider usingbundle_name
,bundle_executable
anddisplay_name
.unique index
, not justbundle_identifier
.Related issue: https://github.com/fleetdm/fleet/issues/22994