CF 10 crashes on a large number of form fields

2020-05-08 08:25发布

When submitting a large number of form fields, ColdFusion 10 crashes even if ColdFusion 9 does not.

enter image description here

3条回答
Anthone
2楼-- · 2020-05-08 08:59

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

查看更多
Ridiculous、
3楼-- · 2020-05-08 09:05

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.

查看更多
做自己的国王
4楼-- · 2020-05-08 09:14

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.

查看更多
登录 后发表回答