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 has users instead of an empty array when entering a non-existent user #6398

Open
HrushaNataliia opened this issue Sep 23, 2023 · 2 comments · Fixed by #6417

Comments

@HrushaNataliia
Copy link

HrushaNataliia commented Sep 23, 2023

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

Preconditions
The user is logged in, and the token is gotten.
There is no user with a name (e.g. name: '!"№;%:?*()₴~')

Steps to reproduce

  1. Send the request: GET greencity.greencity.social/friends/not-friends-yet?name={parameter}
    (e.g. {parameter}: '!"№;%:?*()₴~')
  2. Check a response.

Actual result
The status code is 200 OK. There are users in the response.
image

Expected result
The status code is 200 OK. The response has an empty array.

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

@HrushaNataliia
Copy link
Author

Сontinues to reproduce

@2or5 2or5 removed their assignment Nov 8, 2023
@Voloshkevych Voloshkevych self-assigned this Jan 5, 2024
@VadimasikKPI
Copy link

Tomcat Server version 8.5+ cant decode special characters, we cant solve this problem until Tomcat in newer version solve it!

@ViktoriyaRyazhska ViktoriyaRyazhska moved this to Ready for testing 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

Successfully merging a pull request may close this issue.

5 participants