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

未关闭
#232 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
80

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MDMesh-app/MDMesh 的其他 Issue

查看 MDMesh-app/MDMesh 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。