You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test will raise an Rack::QueryParser::ParamsTooDeepError. Nonetheless, having a rescue_from :all would handle it but I don't think its user's responsibility.
These exceptions are not handled when parsing query params.
We need to rescue them when building params and whenever we are calling
Rack::Utils.parse_nested_query
grape/lib/grape/middleware/versioner/param.rb
Line 25 in 12dc739
grape/lib/grape/middleware/formatter.rb
Line 143 in 12dc739
This test will raise an
Rack::QueryParser::ParamsTooDeepError
. Nonetheless, having arescue_from :all
would handle it but I don't think its user's responsibility.Here are other cases from Rack's test suite
https://github.com/rack/rack/blob/df241355a7f122dc22437398267c1d5f0b27e1ad/test/spec_utils.rb#L230-L239
In the end, we should return a 400 according to Rack
The text was updated successfully, but these errors were encountered: