-
Notifications
You must be signed in to change notification settings - Fork 843
FMAs with categories not available in older versions of Fleet fail to add #38254
Copy link
Copy link
Closed
Closed
Copy link
Labels
#g-softwareSoftware product groupSoftware product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.P2Urgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needUrgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needbugSomething isn't working as documentedSomething isn't working as documented~assisting qaThis issue can be QA'd by anyone outside the QA team when capacity allowsThis issue can be QA'd by anyone outside the QA team when capacity allows~released bugThis bug was found in a stable release.This bug was found in a stable release.
Milestone
Metadata
Metadata
Assignees
Labels
#g-softwareSoftware product groupSoftware product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.P2Urgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needUrgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needbugSomething isn't working as documentedSomething isn't working as documented~assisting qaThis issue can be QA'd by anyone outside the QA team when capacity allowsThis issue can be QA'd by anyone outside the QA team when capacity allows~released bugThis bug was found in a stable release.This bug was found in a stable release.
Type
Projects
Status
Done
Fleet version: 4.78 and older
Web browser and operating system: Any
💥 Actual behavior
Recently we added two new software categories: Security and Utilities
If a Fleet-maintained app has one of these categories as its default category, it will fail to add on versions of Fleet prior to when these categories were introduced.
When categories are validated (error occurs)
The validation happens in AddFleetMaintainedApp() (lines 167-177 in ee/server/service/maintained_apps.go), which is called when:
Summary:
🛠️ To fix
Allow the app to be added with no category if the default category doesn't exist.
🧑💻 Steps to reproduce
These steps:
🕯️ More info (optional)
I made this mess, I will attempt to clean it up.
This may continue to be an issue in the future if we determine additional categories need to be made so it is in our best interest to come up with a permanent fix like the one proposed in the To fix section above.