Sunagatov / Iced-Latte

a online Marketplace for coffee retail (Backend)
https://iced-latte.uk
MIT License
587 stars 95 forks source link

App return all product reviews with invalid value of param "page" #327

Open TetianaPerinha opened 1 week ago

TetianaPerinha commented 1 week ago

Describe the bug When sending a GET product reviews request with an invalid value of param "page" the system returns all product reviews

To Reproduce Send the GET request as below use value for param page = %, +, #

curl --location 'https://iced-latte.uk/backend/api/v1/products/e6a4d7f2-d40e-4e5f-93b8-5d56ce6724c5/reviews?page={value}

Expected behavior The system should reject the request with 400 HTTP Status code "error": "Bad Request".

Actual result System accept the request and returns all product reviews.

get all reviews with param page = # get all reviews with param page = + get all review with param page = %