CF 10 crashes on a large number of form fields

隐身守侯 提交于 2019-12-02 12:43:33

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

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!