Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
##What
HOF-817 - Payload Too Large.
Why?
When user enters more than 1500 characters in any textbox that requires max length of 1500, validation error message is not triggered instead a payload too large error appears once click on save and continue button.
How?
Body parser incoming request bodies in a middleware by default has a limit set to 100kb which is small for the request body sent over each form service. Every form service has a generic request body size, The aim is to enable each service to pass the required body size from project level .
Set the limit for both Json and urlencode as a parameter from the project level, the values will be declared the .env file of each project.
make a modification in the lib/setting.js and config/hof-default.js file
Testing?
Screenshots (optional)
Anything Else? (optional)
Check list
here is an example commit