Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] [Friend list] [/friends/not-friends-yet] The response status is 500 instead of 400 when sort with invalid parameter #6382

Closed
HrushaNataliia opened this issue Sep 21, 2023 · 0 comments

Comments

@HrushaNataliia
Copy link

HrushaNataliia commented Sep 21, 2023

Environment: Windows 10 Pro, Postman
Reproducible: always
Build found: 21.09.23

Preconditions
The user is logged in, and the token is gotten.

Steps to reproduce

  1. Send the request: GET greencity.greencity.social/friends/not-friends-yet?sort={parameter}
    (e.g. {parametr}: 'qwer')
  2. Check a response.

Actual result
The status code is 500 Internal Server Error
image

Expected result
The status code is 400 Bad Request

User story and test case links
E.g.: "User story #1003

@HrushaNataliia HrushaNataliia changed the title [API] [Friend list] In GET /friends/not-friends-yet is response 500 Internal Server Error instead 200 OK [API] [Friend list] [/friends/not-friends-yet] The response status is 500 instead 400 when sort with invalid parameter Sep 22, 2023
@HrushaNataliia HrushaNataliia changed the title [API] [Friend list] [/friends/not-friends-yet] The response status is 500 instead 400 when sort with invalid parameter [API] [Friend list] [/friends/not-friends-yet] The response status is 500 instead of 400 when sort with invalid parameter Sep 23, 2023
@LiliaMokhnatska LiliaMokhnatska self-assigned this Oct 5, 2023
@LiliaMokhnatska LiliaMokhnatska added this to the Java S38.2 milestone Oct 11, 2023
@ViktoriyaRyazhska ViktoriyaRyazhska moved this to Done in GreenCity Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants