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

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

问题描述

有一个 ColdFusion 函数,我们必须传递超过 100 个参数才能获得搜索结果.在将这 100 个奇数参数传递给函数时,ColdFusion 会抛出错误:404 not found"

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"

我尝试将 CF 服务器设置中的帖子大小限制从 100 增加到 300,但仍然出现错误.

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.

为此,您需要通过添加*或更新 XML 节点来增加 neo-runtime.xml 中的post parameters 限制":

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>

然后保存文件并重新启动 ColdFusion 服务器以使更改生效.

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

* 如果 'postParametersLimit' 字段不存在,您可以立即插入它before <var name='postSizeLimit'> - 而它是不是必须把它专门放在那里,这是一种确保它不会被无效嵌套的简单方法.

* 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.

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

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天全站免登陆