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

System allows to save review with non-Latin text #313

Open
TetianaPerinha opened this issue Jun 9, 2024 · 0 comments
Open

System allows to save review with non-Latin text #313

TetianaPerinha opened this issue Jun 9, 2024 · 0 comments
Labels
bug Something isn't working medium priority Medium priority issue

Comments

@TetianaPerinha
Copy link
Collaborator

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.
text review non latin

@TetianaPerinha TetianaPerinha added bug Something isn't working medium priority Medium priority issue labels Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working medium priority Medium priority issue
Projects
None yet
Development

No branches or pull requests

1 participant