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

Abierto
#232 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin, react, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).
Lenguaje dominante
Java
Estrellas
44
Forks
25
Merge medio
1 d 13 h
PR fusionados (30 d)
80

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MDMesh-app/MDMesh

Todos los issues de MDMesh-app/MDMesh

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.