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

Review. Input text field accepts - special char, links, non-Latin letters. #269

Open
TetianaPerinha opened this issue Apr 17, 2024 · 0 comments · May be fixed by #391
Open

Review. Input text field accepts - special char, links, non-Latin letters. #269

TetianaPerinha opened this issue Apr 17, 2024 · 0 comments · May be fixed by #391
Labels
bug Something isn't working good first issue Good for newcomers medium priority Medium priority issue

Comments

@TetianaPerinha
Copy link
Collaborator

TetianaPerinha commented Apr 17, 2024

Description: According to the requirements review input text field should accept extended Latin letters, digits, symbols .,&!(). But accepts - special char, links, non-Latin letters.

Precondition: User is registered and the Bearer token is obtained.

Step to reproduce:
Execute the POST request as below. Replace the Bearer token with valid data.

curl --location 'http://0.0.0.0:8083/api/v1/products/e0323d1b-1169-4a0e-8d7b-07ff3bfe7f7e/reviews'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer token
--data '{
"text": "Заказал кофе ледяной латте на одном из известных сайтов, и результат превзошел все ожидания! Кофе был доставлен быстро и упакован так, что сохранял идеальную свежесть. Вкус напитка получился насыщенным и богатым, с ярко выраженными нотками жареного зерна. Очень понравилась гладкая текстура и то, как хорошо кофе сочетался с холодом. Этот ледяной латте стал отличным началом дня. Рекомендую к покупке на этом сайте",
"rating": "5"
}'

Expected result: The app should reject the text, HTTP status code = 400, and error message = ”Invalid data".
Actual result: The app allows saving text review that do not meet requirements, HTTP status code = 200

image
image
image

@TetianaPerinha TetianaPerinha added bug Something isn't working good first issue Good for newcomers medium priority Medium priority issue labels Apr 17, 2024
Mohammad-Husen-Mulla added a commit to Mohammad-Husen-Mulla/Iced-Latte that referenced this issue Nov 12, 2024
@Mohammad-Husen-Mulla Mohammad-Husen-Mulla linked a pull request Nov 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers medium priority Medium priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant