Skip to content

Host details: "My device" link shows for iOS/iPadOS hosts that aren't enrolled in MDM (Pending or Off) #54129

Description

@AndreyKizimenko

Fleet versions

  • Discovered: rc-minor-fleet-v4.93.0 (1f30f3a)

Web browser and operating system: Chromium 149.0.7827.55 on macOS 27.0


💥 Actual behavior

Image

Host details shows the My device link for iOS/iPadOS hosts that aren't enrolled in Fleet's MDM:

  • MDM status "Pending" (assigned in Apple Business, not enrolled yet): selecting My device shows "Couldn't open My device page. Please try again." Trying again doesn't help, because GET /api/v1/fleet/hosts/:id/device_url returns 500 host has no UUID to build a device URL from.
  • MDM status "Off" (enrolled, then MDM turned off): the link opens the self-service page, which the device's end user can't reach and which can't install anything on an unmanaged device.

🛠️ Expected behavior

Hide the My device link for iOS/iPadOS hosts whose MDM status is "Pending" or "Off". #48439's goal is to show the link only when the My device page is relevant/available for the host.

🧑‍💻 Steps to reproduce

These steps:

  • Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
  • Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
  1. Have an iPhone or iPad with MDM status Pending (assigned to Fleet in Apple Business, not enrolled yet), and/or one with MDM status Off (enrolled, then MDM removed).
  2. As a global admin, open Host details for that host. My device is shown in the User card.
  3. Select My device.

🕯️ More info (optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

#g-apple-at-workProduct group focused on Apple devicesbugSomething isn't working as documented~released bugThis bug was found in a stable release.

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions