Open marko-lisica opened 2 weeks ago
Testing notes:
Was able to initially reproduce this on 4.70 but after retesting it on 4.71 the issue appears resolved.
When making a lock post request I'm getting a 422 response
with a proper error message: "Can't lock the host because it doesn't have MDM turned on."
Moving to Ready for release
Additional testing:
Fleet version: 4.69.0
💥 Actual behavior
I hit
POST /api/v1/fleet/hosts/:id/lock
to lock host that has MDM turned off. It was successful and lock pending badge appeared on the host details.🧑💻 Steps to reproduce
POST /api/v1/fleet/hosts/:id/lock
🕯️ More info (optional)
N/A
🛠️ To fix
Product designer: @marko-lisica
The user shouldn't be able to send a lock request via API to Apple hosts that have MDM turned off.
Show error if the user tries to do so.
Can't lock the host because it doesn't have MDM turned on.