Business Logic - Insufficient Validation

 




Issue:
The shipment will be processed even if data validation is not passed successfully. So, invalid data, including unverified files, will be stored in the file system or a database.



If model state errors are detected, the process has to be interrupted. So, the model binding step's errors and uploaded file validation ones are determined and checked before the instructions will be executed. If any error exists, the process will be interrupted, and invalid data will not be processed.









Comments

Popular posts from this blog

Microservices and Service-Oriented Architecture

Version control and Continuous Integration/Continuous Deployment (CI/CD)

Principles of Clean Code