CF 10 crashes on a large number of form fields

我们两清 提交于 2019-12-20 06:23:45

问题


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

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