cozy-stack icon indicating copy to clipboard operation
cozy-stack copied to clipboard

Different behaviour between `POST /sharings` and `POST /sharings/`

Open Peltoche opened this issue 2 years ago • 2 comments

During a test refactoring I have made a typo and I have put a / at the end of the /sharings url. This change have broken my test resulting to a 403 Forbidden instead of 201 Created.

IMHO the trailing slash should be trime early during and shouldn't have any impact at all.

Peltoche avatar Jan 30 '23 15:01 Peltoche

Related to #1876 I guess

Peltoche avatar Jan 30 '23 15:01 Peltoche

I agree, we should do that. It's just that we never took the time to do it.

nono avatar Feb 02 '23 14:02 nono