Concurrent Project creation allows overlapping Data Source paths
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
Línea de trabajo
The bug is in the POST handler for /api/plugins/netbox-scripts/projects/, where data path overlap is validated before the Project is saved. Start by finding that validation and the create path, then check how it runs inside a transaction. Reproduce with two concurrent requests using the steps in the issue. Done means concurrent creation of overlapping Projects on one Data Source is rejected, and the existing edit validation still passes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Plugin Version
v0.1.0
NetBox Version
v4.7.6
Python Version
3.12
Steps to Reproduce
- Create and synchronize a Data Source containing the directory
automation/netbox. - From separate clients, concurrently send two POST requests to
/api/plugins/netbox-scripts/projects/to create Data Source-backed Projects on the same Data Source, using distinct names and keys and the following data paths:automationautomation/netbox
- Check the resulting Projects.
Expected Behavior
One request succeeds and the other is rejected with a validation error. Projects on the same Data Source must not have overlapping directories.
Observed Behavior
If both requests validate before either transaction commits, both Projects can be created despite their overlapping directories.
Subsequent attempts to edit either Project fail validation because of the overlapping data paths.
The race condition was reproduced using separate database sessions on the development branch for #33.
- Lenguaje dominante
- Python
- Estrellas
- 9
- Forks
- 0
- Merge medio
- 18 h 59 min
- PR fusionados (30 d)
- 93
Preparar el entorno
- Sin Dockerfile ni 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 netbox-community/netbox-scripts
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
netbox-community/netbox-scripts#281 ·
Los mantenedores suelen responder en 1 día
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
netbox-community/netbox-scripts#244 ·
Los mantenedores suelen responder en 1 día
-
Correct the documentation of a Project's current revisionPosiblemente ocupada @pheus la tomó hoy. Abiertoapp: scripts Bucket: KTLO status: accepted type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
netbox-community/netbox-scripts#233 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
app: scripts complexity: medium status: backlog type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
netbox-community/netbox-scripts#229 ·
Los mantenedores suelen responder en 1 día
-
app: scripts status: backlog type: housekeeping
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
netbox-community/netbox-scripts#228 ·
Los mantenedores suelen responder en 1 día
Todos los issues de netbox-community/netbox-scripts
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
bad-antics/lateralus-lang#1623 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
fossguild/thelifesnake#82 ·
Los mantenedores suelen responder en 1 día
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorAbiertogood first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pietbarber/Manage2Soar#1189 ·
Los mantenedores suelen responder en 1 día
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinatesPosiblemente ocupada @dtgaebe la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sandialabs/WecOptTool#467 ·