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

tests: Validate structure of request body before processing #3

Open
roshnet opened this issue Nov 1, 2019 · 0 comments
Open

tests: Validate structure of request body before processing #3

roshnet opened this issue Nov 1, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@roshnet
Copy link
Owner

roshnet commented Nov 1, 2019

Description

As of now, for POST /login and POST /signup, the request body needs to have a specific structure.
If that structure of request body is different from what is assumed in handling it, an exception is caused, which can cause entire server to halt, and other undesired effects.

Fix

This can be prevented by validating request body structure, and returning appropriate response if the structure is corrupt.

@roshnet roshnet added enhancement New feature or request good first issue Good for newcomers labels Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant