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] The endpoint GET /api/centers/search/advanced provides status code 500 when sort field in the request is invalid (e.g sort =1, sort = )) #2144

Open
zahar777 opened this issue Jan 18, 2024 · 0 comments
Labels

Comments

@zahar777
Copy link

Environment: Postman

Preconditions
Sign in to the system
POST request http://speak-ukrainian.eastus2.cloudapp.azure.com/dev/api/signin
Body
{
"email": "[email protected]",
"password": "Admin_QC24"
}
{{server}} = http://speak-ukrainian.eastus2.cloudapp.azure.com

Steps to reproduce

  1. Set up GET reques {{server}}/dev/api/centers/search/advanced?centerName=Курси програмування IT-stat&districtName=&cityName=Запоріжжя&stationName=string&page=1&size=1&sort=1

Actual result
Status code 500
image

Expected result
Status code 400 bad request

Labels to be added
"Bug", Priority ("pri: HIght"), Severity ("severity:Low"), Type ("UI, "Functional"), "API" (for back-end bugs).

@zahar777 zahar777 changed the title [API] The endpoint GET /api/centers/search/advanced provide status code 500 when sort is invalig (e.g sort =1, sort = )) [API] The endpoint GET /api/centers/search/advanced provides status code 500 when sort field in the request is invalid (e.g sort =1, sort = )) Jan 23, 2024
@softservedata softservedata moved this to ToDo in QCBoard Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ToDo
Development

No branches or pull requests

1 participant