Skip to content

[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

@zahar777

Description

@zahar777

Environment: Postman

Preconditions
Sign in to the system
POST request http://speak-ukrainian.eastus2.cloudapp.azure.com/dev/api/signin
Body
{
"email": "admin@gmail.com",
"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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions