[bug:gsoc26] Mass command wizards started in two browser tabs overwrite each other
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- In tab A, open Network Operations > Mass command execute, fill in the form (for example type Reboot) and click Review command
- In tab B, open Mass command execute, fill in the form with different values (for example type Custom commands) and click Review command
- Go back to tab A without reloading it and click Execute
- 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."
- 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
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de openwisp/openwisp-controller
-
[fix] Recent Commands row uses "created" timestamp for the "Modified" fieldPosiblemente ocupada @xovishnukosuri la tomó hace 216 días. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
openwisp/openwisp-controller#1263 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
[feature] Emit a signal when a device operating system changesPosiblemente ocupada @Vara715 la tomó hoy. Abiertoenhancement
Dificultad 3/5 Medio día Aptitud para principiantes 65/100
openwisp/openwisp-controller#1506 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
[feature] Add board_name field to Device model for DTB board identificationQuizá libre de nuevo @atif09 la tomó hace 28 días y no hay ningún pull request abierto. Abiertoenhancement gsoc
openwisp/openwisp-controller#1491 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
openwisp/openwisp-controller#1484 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[bug] Template.clean() corrections land one write late over the REST APIQuizá libre de nuevo @krrishnaik la tomó hace 42 días y no hay ningún pull request abierto. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
openwisp/openwisp-controller#1478 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de openwisp/openwisp-controller
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PolicyEngine/policyengine-us#10262 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
kellyjonbrazil/jc#788 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
`/search.json` ignores the documented `editions.sort` parameterPosiblemente ocupada @PranavD2905 la tomó hoy. AbiertoAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
internetarchive/openlibrary#13989 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug P2: misleading query
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
jeffknupp/association#478 ·