Skip to content

Grape is failing on latest Rack releases. #2668

@ioquatix

Description

@ioquatix
Failures:

  1) Grape::Endpoint#params from body parameters returns a 400 if given an invalid multipart body
     Failure/Error: @params_builder.call(rack_params).deep_merge!(grape_routing_args)

     Rack::Multipart::BoundaryTooLongError:
       multiple boundary parameters found in multipart content type
     # /home/runner/work/rack/rack/lib/rack/multipart/parser.rb:131:in 'Rack::Multipart::Parser.parse_boundary'

It looks like the test constructs two boundary parameters which is invalid. You might need to catch Rack::Multipart::Error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions