CSV import endpoint crashes without a file

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php
Área
api

Línea de trabajo

Start in src/Controller/ImportController.php and find where the csv file field is read, since a missing field raises a TypeError and a 500. Then check the test pinned in tests/Api/ImportTest.php around line 61, which records the current behaviour. The issue suggests removing the endpoint rather than fixing it, so settle that with the maintainer first. Done means the chosen behaviour is implemented and that test is updated to match.

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

Descripción

Backend bug severity: low

Problem

POST /admin/users/csvimport without the csv file field is not validated, which raises a TypeError and gives a 500.

Note

The member import was a one-off. The planned reconciliation (#61) replaces it and does not import. Consider removing this endpoint instead of fixing it.

Where

src/Controller/ImportController.php.
Pinned in tests/Api/ImportTest.php (around line 61).


Found by the API test suite added for #57 (branch feature/57-symfony-7.4); the behaviour is the same before and after the Symfony 7.4 upgrade. The current behaviour is pinned in the test named above (marked NOTE: current behaviour), so update that test together with the fix.

Lenguaje dominante
PHP
Estrellas
1
Forks
0
Merge medio
7 h 58 min
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 RunningJoke/allipunkte

Todos los issues de RunningJoke/allipunkte

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.