Closed
Bug 492701
Opened 16 years ago
Closed 16 years ago
form history should cap the number of fields saved per form submission
Categories
(Toolkit :: Form Manager, defect)
Toolkit
Form Manager
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: Dolske, Assigned: MattN)
Details
(Keywords: fixed1.9.1)
Attachments
(1 file, 1 obsolete file)
14.74 KB,
patch
|
Dolske
:
review+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
Along the lines of bug 488796. In addition to limiting the length of any particular value, form history should limit the total number of values it saves for any single form submission. As a wild, liberal guess, I'd say 100 should be plenty.
[Note that since bug 463486 already suppresses unmodified form fields, this cap would only apply to the count of fields actually modified. So, if a form has 500 inputs and the user only modifies the value of the last one, form history should still save it, since 1 is way under this cap.]
Capping the limit helps mitigate the possibility of a DoS attack (by stuffing lots of small fields into a form, even with the bug 488796 fix), and similarly ensures that pathological forms don't result in performance problems when submitted.
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #378195 -
Flags: review?(dolske)
Assignee | ||
Comment 2•16 years ago
|
||
Attachment #378195 -
Attachment is obsolete: true
Attachment #378706 -
Flags: review?(dolske)
Attachment #378195 -
Flags: review?(dolske)
Reporter | ||
Updated•16 years ago
|
Attachment #378706 -
Flags: review?(dolske) → review+
Comment 3•16 years ago
|
||
Comment on attachment 378706 [details] [diff] [review]
v.2 add test descriptions
You realize that you're limiting our ability to arbitrarily add flags and fields to bugzilla records, right?
Attachment #378706 -
Flags: approval1.9.1+
Reporter | ||
Comment 4•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Reporter | ||
Comment 5•16 years ago
|
||
Keywords: fixed1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•