After a factory reset the same phone enrolls under a new device id; the old record stays in the console
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
調査の方向性
Start with docs/adr/0003, which says device ids are server-issued and kept in the agent store, so a wipe loses them. Then trace the enrollment request and the device record lookup to see where duplicate prevention checks, and read #137 for the wiped-device state. Done means a design decision on which hardware identifier to match on and how a wiped record is reclaimed or closed, agreed with maintainers before any code changes.
索引モデルが issue の本文から書いたものです。
説明
Area
Admin console (web)
The problem
Steps: enroll a phone by QR, send "Factory reset" from the console, set the phone up again and enroll it with the same QR/token flow. Result: the old record stays in the list, and the phone appears as a second, new device with a new id. The old record has to be deleted by hand. (Related: #137 about showing wiped devices.)
Expected: the re-enrolled phone is matched to its previous record by a stable hardware identifier (Headwind MDM does this by serial/IMEI and keeps the existing device name), or a wiped record is closed/removed automatically. I could not find why the existing duplicate prevention did not merge the two (docs/adr/0003 says ids are server-issued and kept in the agent store, so a wipe loses them).
Proposed solution
- Match on re-enrollment: send a stable hardware identifier with the enrollment request (e.g. the enrollment-specific ID on Android 12+, or serial/IMEI where the platform allows it). If a record with the same identifier already exists in the same customer, reuse it (keep name, group and configuration) instead of creating a new device. Headwind MDM does exactly this by serial/IMEI and it avoids duplicates after a wipe.
- Mark the record "wiped" when the factory-reset command is acknowledged (see #137), so the next enrollment with the same identifier can reclaim it.
- Optional: a console action "Merge into..." for the manual case, and an option to auto-remove wiped records after N days.
Alternatives considered
No response
Before submitting
- I searched existing issues and discussions for the same idea.
- 主要言語
- Java
- スター
- 44
- フォーク
- 25
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 80
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MDMesh-app/MDMesh のほかの issue
-
enhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
MDMesh-app/MDMesh#252 ·
メンテナーはふだん 2 日以内に返信
-
Change Kiosk Titleオープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
MDMesh-app/MDMesh#253 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
MDMesh-app/MDMesh#232 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 3/5 半日 初心者へのやさしさ 45/100
MDMesh-app/MDMesh#205 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
MDMesh-app/MDMesh#204 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
MDMesh-app/MDMesh の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug devops low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
aphtech/brailleblaster#209 ·
メンテナーはふだん 1 日以内に返信