问题描述
我们在网络应用程序的管理部分遇到了某些表单的问题。有几种形式包含大量字段(它可以在一个输入字段到数百个字段之间的任何位置)。
我们发现,增长,有一个点,当一个表单被发布时,服务器将抛出500个错误。
运行测试后,我发现服务器可以处理表单其中有100个字段;一旦使用了101个或更多的字段,我们就会得到错误。
我们运行Coldfusion,我们确定Coldfusion不会抛出这个错误。我们从来没有在Coldfusion中看到这个错误,所以我们假设IIS在发送请求到Coldfusion服务器之前抛出一个错误。
我假设有在IIS 7.5中的一些设置,我们可以提高这个限制。我在网上搜索,但我能找到的是如何提高此数据的字节大小限制,而不是对允许的多个字段的任何限制。
$ b
如果是这样的话,
这是修补程序APSB12-06引入的问题。虽然这是一个ColdFusion错误,人们报告了
neo-runtime.xml
中有一个设置,它定义 postsizelimit
- 默认为100。
完整备注位于,但这里是短版本。
这个修补程序在ColdFusion中有一个新的设置,Post Parameter Limit。此设置限制了后期请求中的参数数量。默认值为100.如果后请求包含指定的更多参数,则服务器不处理请求并抛出异常。此过程防止使用哈希冲突的DoS攻击。此设置不同于Post Size Limit(ColdFusion管理员>设置>发布数据的最大大小)。此设置不会显示在ColdFusion管理控制台中。但是您可以在neo-runtime.xml文件中轻松更改此限制。见下文第5点。
要更改postParameterLimit的客户,请转到用于服务器安装的{ColdFusion-Home} / lib或用于Multiserver或J2EE安装的{ColdFusion-Home} / WEB-INF / cfusion / lib。打开文件neo-runtime.xml,后行。
< var name ='postSizeLimit'> ; number> 100.0< / number>< / var>
添加下面的行,您可以用所需的数字更改100。
< var name ='postParametersLimit'>< number> 100.0< / number>< / var>
CF10 +具有可在CF Admin设置页面
。下的POST请求参数数量
>服务器设置 - >设置
在我们的9.0.1服务器上,我们将设置增加到10000,
We've hit a problem with some forms in the admin portion of our web app. There are a handful of forms that contain a large number of fields (it can range anywhere from one input field to the hundreds).
We've found that as these forms grow, there is a point where the server will throw 500 errors when a form is posted.
After running a test, I was able to find that the server can handle forms with 100 fields in them; once 101 or more fields are used, we get the errors.
We run Coldfusion, and we have determined that Coldfusion is not throwing this error. We never see this error logged in Coldfusion, so we are assuming IIS is throwing an error even before it sends the request to the Coldfusion server.
I'm assuming there is some setting in IIS 7.5 where we can up this limit. I've searched on the web, but all I can find is how to raise the byte-size limits of this data, not any kind of limit on a number of fields that are allowed.
So, am I right in assuming that this can be changed, and if so, how can it be done?
This is an issue introduced with hotfix APSB12-06. While it is a ColdFusion error, people have reported receiving the error in Tomcat, before it supposedly hit the CF server
There is a setting in neo-runtime.xml
which defines the postsizelimit
- and is defaulted to 100.
The full notes are located here, but here is the short version.
This hot fix has a new setting in ColdFusion, Post Parameter Limit. This setting limits the number of parameters in a post request. The default value is 100. If a post request contains more parameters as specified, the server doesn't process the request and throws an exception. This process protects against DoS attack using Hash Collision. This setting is different from Post Size Limit (ColdFusion Administrator > Settings > Maximum size of post data). This setting isn't exposed in the ColdFusion Administrator console. But you can easily change this limit in the neo-runtime.xml file. See point 5 below.Customers who want to change postParameterLimit, 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 line.
<var name='postSizeLimit'><number>100.0</number></var>
Add the line below and you can change 100 with the desired number.
<var name='postParametersLimit'><number>100.0</number></var>
CF10+ has the setting available to edit within the CF Admin Settings page under Maximum number of POST request parameters
under Server Settings -> Settings
.
On our 9.0.1 server, we just increased the setting up to 10000 and have seen no adverse effects.
这篇关于如何更改可以使用IIS 7.5在表单中发布的字段数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!