Open
Description
Since we are Content-Type: application/x-www-form-urlencoded
encoding a scripts source this generates a larger transfer content size.
For example a script of actual size 782,701 Bytes can get expanded to 1,087,143 Bytes which renders an express page (e.g. not ours) of:
Payload Too Large
- We're not handling this failure gracefully... not sure that we can with body-parser :\
- Unable to fork scripts that are too large. (this is the main bug)
- Unable to change (too large of) scripts through the site editor... although upload a file works because it isn't urlencoded. (work-around)
Possibilities:
- There is a
verify
property in body-parser that could be used in our code but we would need to up thelimit
significantly and check/process in theverify
routine if the buffer to UTF-8 string was too big in correlation to themaximum_upload_script_size
. - ... (something else?)