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

[GreenCity. Friends] Sorting Parameters Not Working After Fix for Invalid Sort Parameters #8047

Open
KostashchukIryna opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
API back-end This is label if this task is back-end Bug GreenCity
Milestone

Comments

@KostashchukIryna
Copy link
Contributor

KostashchukIryna commented Jan 20, 2025

Environment: Swagger
Reproducible: always
Build found: "commitHash": "2d94ac7fce116bc532e5f1dec5dd7def8bfa4859",
"commitDate": "20/01/2025 15:27:26"

Sorting functionality no longer works after the fix implemented for #6382 (invalid sort parameters causing a 500 status code). Currently, any sorting parameter provided results in an UnsupportedSortException, making sorting unusable.

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

Steps to reproduce

  1. Go to https://greencity.greencity.cx.ua/swagger-ui/index.html#/friend-controller/findAllUsersExceptMainUserAndUsersFriendAndRequestersToMainUser .
  2. Send the request with valid sort parameters (for instance "id").
  3. Observe the response.

Actual result
The status code is 400 Bad Request.
Any sorting parameter causes an exception (UnsupportedSortException: INVALID_SORTING_VALUE), even if the parameters are valid.

Image

Expected result
The status code is 200 Success.

User story and test case links
#1003

Labels to be added
"Bug", "API"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API back-end This is label if this task is back-end Bug GreenCity
Projects
Status: Bugs in progress
Status: In Progress
Development

No branches or pull requests

1 participant