帖子中传递的最大参数数量 [英] Maximum number of parameter passed in a post

查看:169
本文介绍了帖子中传递的最大参数数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 请求处理期间的异常:
由带有消息的javax.servlet.ServletException引发:
参数计数超过允许的最大值:512

似乎有一个限制在帖子中传递的参数数量。



我怎样才能在JBoss中扩展这个限制?

解决方案

所有Web服务器中的参数数量都受到限制,无法插入 hashmap collision denial of service attack

通过将以下系统属性添加到配置文件(例如 standalone.xml )来提高限制:

 < property name =org.apache.tomcat.util.http.Parameters.MAX_COUNTvalue =10000/> 

来源

I get this error:

Exception during request processing:
Caused by javax.servlet.ServletException with message:
"Parameter count exceeded allowed maximum: 512"

There seems to be a limit on the number of parameter passed in a post.

How could I extend this limit in JBoss?

解决方案

The number of parameters was limited in all web servers to plug the hashmap collision denial of service attack.

You can raise the limit by adding the following system property to the configuration file (e.g. standalone.xml):

<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="10000"/>

(source)

这篇关于帖子中传递的最大参数数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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