InseeFr / InseeFr/sugoi-ui

🐛 400 when modifying a user with a space in username

Open
#507 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.