Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Limit the size of parameter keys
Signed-off-by: James Tucker <jftucker@gmail.com>
- Loading branch information
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5b9d09aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an issue related to this commit, what's your suggestion to raise this limit? Yes, I have gigantic forms (not multipart forms) that send 100kb of data.
5b9d09aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5b9d09aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have 100k of key data though? This doesn't limit the size of the POST values, just the keys. I highly doubt you have 100kb of key data.
5b9d09aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mongodb's keys are 32 characters long each. I have
answersembeddedresults(= 2 long IDs per data key), 50 results, 10 answers each with 5 fields (remember a checkbox in rails adds a hiddenfield just for the fun of it) brings me (with "only" 2500 fields) easy above your limit. The rails action only needs barely a second to process all that.Still, I don't understand the motivation of your change to rack, is there an issue # related?
5b9d09aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is related to the DOS attacks that were being discussed a couple weeks ago. 2500 fields seems well out side the normal usage of most users. As @chneukirchen said, feel free to set the max to whatever giant value works for you.