-
-
Notifications
You must be signed in to change notification settings - Fork 127
Description
Describe the bug
The system allows it to save when sending a POST review request with non-Latin text.
Precondition:
User is registered, the Bearer token is obtained, and the user has not posted a review on a product.
To Reproduce
Send the POST request as below, and use a valid Bearer token.
curl --location 'https://iced-latte.uk/backend/api/v1/products/3ea8e601-24c9-49b1-8c65-8db8b3a5c7a3/reviews'
--header 'Content-Type: application/json'
--header 'Authorization: {token}'
--data '{
"text":"Купил эспрессо онлайн, и был в восторге от качества. Аромат свежесмолотых зерен наполнил кухню, а вкус готового напитка был богатым и сбалансированным, с нотками шоколада и фруктов. Отличный сервис и быстрая доставка — обязательно закажу снова",
"rating": "5"
}'
Expected behavior
The system should reject a request with 400 HTTP Status code and return the appropriate error message.
Actual result
The system accept the request, HTTP Status code = 200, and review posted non-Latin text.