问题
When submitting a large number of form fields, ColdFusion 10 crashes even if ColdFusion 9 does not.
回答1:
Earlier versions of ColdFusion 9 did not restrict the number of form fields that could be submitted. ColdFusion 10, be default limits the number of fields to 100.
If you go to Server Settings -> Settings then the to Request Size Limits section. There is a setting called Maximum number of POST request parameters
. It needs to be adjusted upward
回答2:
As Leigh mentioned (I can personally attest to this), this limit was actually added in 9.0.2. The problem was that there was no way to change it in the admin UI, had to do it in XML.
回答3:
In ColdFusion – 9: First install the security fix( http://helpx.adobe.com/coldfusion/kb/coldfusion-security-hotfix.html ) for ColdFusion - 9.
- Go to {ColdFusion-Home}/lib for Server Installation
- OR: {ColdFusion-Home}/WEB-INF/cfusion/lib for Multiserver or J2EE installation.
- Open file neo-runtime.xml
- After the line:
<var name='postSizeLimit'><number>100.0</number></var>
- Add the line
<var name='postParametersLimit'><number>100.0</number></var>
You can change the limit as per your need.
来源:https://stackoverflow.com/questions/19664441/cf-10-crashes-on-a-large-number-of-form-fields