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/ Club/ GET] Status code 200 instead of 404 when entered invalid ID for endpoint /api/clubs/ {id} #2142

Open
Oksana-Lysak opened this issue Jan 18, 2024 · 0 comments
Assignees

Comments

@Oksana-Lysak
Copy link

Get clubs by id of user-owner with pagination with an invalid ID of the user.

Environment: Windows 11 Pro Version 22H2 Build 22621.2428
Google Chrome 118.0.5993.118 (Official build) (64-bit)
Reproducible: always
Build found:
front 2024-01-04 d5b9ee
back 2024-01-04 7dd789

Preconditions

  1. Site http://speak-ukrainian.eastus2.cloudapp.azure.com/dev/ is opened.
  2. The user with ID does not exist in the database
  3. Postman is opened.
  4. The token (admin) is gotten.

Steps to reproduce

  1. Create GET request to 'http://speak-ukrainian.eastus2.cloudapp.azure.com/dev' using endpoint endpoint /api/clubs/ {id} with an invalid ID of the center "10000"
    Parameters.
    Pageable:
    {
    "page": 0,
    "size": 1,
    "sort": [
    "string"
    ]
    }

Actual result
200OK
12

Expected result
404 Not Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Status: ToDo
Development

No branches or pull requests

1 participant