Console keeps offering "Return to configured kiosk" for devices already running it (bulk / Run command kiosk.enter)

オープン
#232 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin, react, typescript

調査の方向性

Start in web/src/data/kiosk.ts at configuredKioskState and trace how kiosk.enter payloads, configuredKioskIds(), and server-side kiosk generations determine the displayed action. Then inspect the server REST API and bulk command paths named in the report to find where configured kiosk state can be recorded and shared across browsers. Done means devices entering their configured kiosk through bulk or Run command show the correct remote action across browsers; the two additional device failures may need separate investigation.

索引モデルが issue の本文から書いたものです。

説明

bug
Component

Server / REST API

What happened?

Version: server 0.5.0, agents 0.5.0 (also older agents), Docker install.

Steps:

  1. Select all devices in Devices → Run command → Exit kiosk. Devices leave kiosk.
  2. Select all again → Enter kiosk (bulk), same kiosk as the configuration.
  3. 27 commands finish DONE; 24 of those devices report kioskActive=true.
  4. Open any of these devices: Remote actions still shows "Return to configured kiosk"
    as the primary action, as if the device were not in its configured kiosk.

Cause (web/src/data/kiosk.ts, configuredKioskState): a kiosk.enter counts as the
configured kiosk only if its id is in configuredKioskIds(), which lives in the
browser's localStorage and is written only by DeviceDetailPage
(rememberConfiguredKiosk). Bulk sends (BulkModals returnToConfiguredKiosk, Run
command) never record their ids, and another browser never sees them. The
server-side generations (kioskGeneration / kioskReturnGeneration) are only set by
the on-device return, so kioskReturnGeneration stays null for every device.

Expected: the "in configured kiosk" state should come from the server (e.g. mark
kiosk.enter as configured when its payload matches the configuration, or record it
server-side for bulk sends), not from one browser's localStorage.

Related, same rollout:

  • One device rebooted, and 4 s after boot kiosk.enter returned DONE, but its state
    still reports kioskActive=false (no kioskExit event after the command).
  • A second device now fails every command with "Unable to parse preferences proto."
    (same as the earlier report: corrupted Preferences DataStore, no corruptionHandler).
Steps to reproduce

0

MDMesh version / commit

0.5.0

Environment

No response

Relevant logs

Before submitting
  • I searched existing issues and this isn't a duplicate.
  • I'm not reporting a security vulnerability here (those go via private disclosure, not a public issue).
主要言語
Java
スター
44
フォーク
25
平均マージ
1日 13時間
マージ済み PR(30日)
80

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MDMesh-app/MDMesh のほかの issue

MDMesh-app/MDMesh の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。