Fleet version: 4.62.0
Web browser and operating system: Chrome 131.0.6778.265 running on macOS
💥 Actual behavior
Success message is shown "Successfully updated policy automations"

But API response shows error
level=error ts=2025-01-21T16:17:42.757085Z component=http user=admin@fake.com method=PATCH uri=/api/latest/fleet/teams/81/policies/98 took=11.652166ms uuid=25fa6de5-5597-4b16-ab3d-03f14adadd82
Additionally, the software has not been associated with the policy because it does not exist.
🧑💻 Steps to reproduce
Will need two browser windows open
- In the first window, go to /policies/manage and select a Team, Click Add policy, create a new policy and save
- In the second window, add software (FMA, custom package) and save
- In the first window, click "Manage automations" >> Install software, click the check box next to your new policy and select the software created in step 2 from the dropdown, don't save yet
- In the second window, delete the software created in step 2
- In the first window, click save
🕯️ More info (optional)
N/A
QA plan
Fleet version: 4.62.0
Web browser and operating system: Chrome 131.0.6778.265 running on macOS
💥 Actual behavior
Success message is shown "Successfully updated policy automations"

But API response shows error
level=error ts=2025-01-21T16:17:42.757085Z component=http user=admin@fake.com method=PATCH uri=/api/latest/fleet/teams/81/policies/98 took=11.652166ms uuid=25fa6de5-5597-4b16-ab3d-03f14adadd82Additionally, the software has not been associated with the policy because it does not exist.
🧑💻 Steps to reproduce
Will need two browser windows open
🕯️ More info (optional)
N/A
QA plan