出现错误“超出可用参数键空间"? [英] Getting error "exceeded available parameter key space"?

查看:31
本文介绍了出现错误“超出可用参数键空间"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 rails 应用程序中,在表单发布后,出现错误超出可用参数键空间.表单中的表单域太多.这是错误的原因吗?有意见吗?

In my rails application, after form post, getting error exceeded available parameter key space. there are too many form fields inside form. Is that reason for error? Any views?

推荐答案

如果你真的很需要它,请尝试增加 key_space_limit

If you really need it badly try increasing the key_space_limit

Rack::Utils.key_space_limit = 262144 

但是根据 this 这可能是危险的攻击."

But this can be dangerous as per this "A higher exposure to POST parsing DOS attacks."

检查这个

https://github.com/rack/rack/issues/318

Rails/javascript:参数键太多";- 标准化表单数据的好方法是什么?

http://myrailsway.blogspot.in/2012/04/rangeerror-exceeded-available-parameter.html

这篇关于出现错误“超出可用参数键空间"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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