🐛 400 when modifying a user with a space in username
Open
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 7
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 28
Description
To reproduce :
Create a user with a space in its username "example "
Modify it via a PUT request
You should get a 400 "Path id exaple doesn't match with body id example "
because the url is trimmed from the ending space
This username should be accepted and the request go well instead
Contributor guide
No contributing guide indexed for this repository
Research direction
Start from the user modification flow that sends the PUT request and reproduce the case with a username ending in a space. Trace how the username becomes the URL path and compare it with the request body; done means the update succeeds without the 400 path/body mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100