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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: Dolske, Assigned: MattN)

Details

(Keywords: fixed1.9.1)

Attachments

(1 file, 1 obsolete file)

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.
Attachment #378195 - Flags: review?(dolske)
Attachment #378195 - Attachment is obsolete: true
Attachment #378706 - Flags: review?(dolske)
Attachment #378195 - Flags: review?(dolske)
Attachment #378706 - Flags: review?(dolske) → review+
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+
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: