aabarmin / epam-microservices-training-2022

Apache License 2.0
14 stars 15 forks source link

[bug][Monolithic] Internal server error on saving symptom #52

Closed youngInnovator closed 11 months ago

youngInnovator commented 11 months ago

Description Saving a symptom with name greater than 255 characters causes internal server error.

To Reproduce Steps to reproduce the behavior:

  1. cd .\monolithic\monolithic-layered\
  2. mvn spring-boot:run
  3. Go to /symptoms/1
  4. Add text greater than 255 characters in name field
  5. Click on Save
  6. See error

Demo

https://github.com/aabarmin/epam-microservices-training-2022/assets/12484690/0b84af9a-2bc8-4038-bf19-b256347944bc

Expected behavior Application should validate the data and gives error message with bad request 400 error code.