本文介绍了将超过 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.

请注意,这会影响提交的 表单字段(即 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 函数会引发错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 19:43