将超过100个参数传递给ColdFusion函数会抛出错误 [英] Passing more then 100 arguments to ColdFusion function throws an error

查看:101
本文介绍了将超过100个参数传递给ColdFusion函数会抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个ColdFusion函数,我们必须传递多于100个参数以获得搜索结果。当将这100个奇数参数传递给函数时,ColdFusion抛出错误: 404 not found



将CF服务器设置中的限制从100增加到300,但仍然会收到错误。

解决方案

增加



为此,您需要增加发布通过添加*或更新XML节点: neo-runtime.xml 中的参数限制:

 < var name ='postParametersLimit'>< number> 300.0< / number>< / var> 

然后保存文件并重新启动ColdFusion服务器

< var name ='postSizeLimit'>
- 虽然不是强制性的,但是这是一个简单的方法来确保它不会被无效嵌套。

请注意,这会影响提交的表单字段(即HTTP POST参数)的数量,而不是函数的参数数量,但这可能是您的问题,因为后者不应该导致404错误。


There is a ColdFusion function where we have to pass more then 100 arguments to get a search result. When passing these 100 odd parameters into the function, ColdFusion throws the error: "404 not found"

I tried to increase post size Limit in CF server settings from 100 to 300 but am still getting the error.

解决方案

Increasing the "post size limit" only changes how many megabytes can be received, not the quantity.

For that, you need to increase the "post parameters limit" in neo-runtime.xml, by adding* or updating the XML node:

<var name='postParametersLimit'><number>300.0</number></var>

Then save the file and restart the ColdFusion server for the changes to take effect.

* If the 'postParametersLimit' field is not present, you can insert it immediately before <var name='postSizeLimit'> - whilst it's not mandatory to place it there specifically, this is a simple way to ensure it does not get nested invalidly.

Note that this affects the number of form fields (i.e. HTTP POST parameters) being submitted - not the number of arguments to a function, but this is presumably your problem because the latter should not cause a 404 error.

这篇关于将超过100个参数传递给ColdFusion函数会抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆