Skip to content

Submit Code *[as Fork]* generates Payload Too Large #793

Open
@Martii

Description

@Martii

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 
  1. We're not handling this failure gracefully... not sure that we can with body-parser :\
  2. Unable to fork scripts that are too large. (this is the main bug)
  3. 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 the limit significantly and check/process in the verify routine if the buffer to UTF-8 string was too big in correlation to the maximum_upload_script_size.
  • ... (something else?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugYou've guessed it... this means a bug is reported.needs discussionBlah, blah, blah, wahh, wahh, wahh, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions