Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[bug:gsoc26] Mass command wizards started in two browser tabs overwrite each other

Abierto
#1,489 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@dee077 ya está trabajando en esto.

Desde el 15/9/2026.

  • #1490 de @dee077 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug

Describe the bug
The mass command wizard keeps its state in a single session slot, so starting a second mass command in another browser tab replaces the first one. The first tab can no longer execute its mass command, and reloading it shows the details entered in the second tab.

Steps To Reproduce

  1. In tab A, open Network Operations > Mass command execute, fill in the form (for example type Reboot) and click Review command
  2. In tab B, open Mass command execute, fill in the form with different values (for example type Custom commands) and click Review command
  3. Go back to tab A without reloading it and click Execute
  4. The mass command is not executed and the user is sent back to the first step with: "This mass command was replaced by another one started in a different browser tab, so it was not executed. Please fill in the details again."
  5. Reloading the review page in tab A shows the details entered in tab B

Expected behavior
Each tab keeps its own mass command: tab A reviews and executes what was entered in tab A, tab B what was entered in tab B.

Possible fix
The session stores one wizard under batch_command_wizard, and the review page URL is the same for every wizard, so a request cannot say which wizard it belongs to. Store the wizards in the session as a dictionary keyed by a stable wizard id, keeping only the most recent ones. The existing token, which changes when the targeted devices change, stays inside each wizard.

System Informatioon:

  • OS: Ubuntu 26.04 LTS
  • Python Version: Python 3.12.13
  • Django Version: Django 5.2.17
Lenguaje dominante
Python
Estrellas
779
Forks
328
Merge medio
2 d 19 h
PR fusionados (30 d)
7

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 openwisp/openwisp-controller

Todos los issues de openwisp/openwisp-controller

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.