CSV import endpoint crashes without a file
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PHP
- Stars
- 1
- Forks
- 0
- Avg merge
- 7h 58m
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RunningJoke/allipunkte
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunningJoke/allipunkte#74 ·
-
Backend bug severity: low
Difficulty 1/5 Under an hour Newbie friendliness 82/100
RunningJoke/allipunkte#73 ·
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
RunningJoke/allipunkte#72 ·
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
RunningJoke/allipunkte#71 ·
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunningJoke/allipunkte#68 ·
All issues in RunningJoke/allipunkte
Similar issues
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100