sam / harbor

Harbor is a Ruby Web Framework.
https://github.com/sam/harbor
MIT License
3 stars 6 forks source link

test_parsing_a_deep_multipart_nested_query is failing with an EOF error in Rack #19

Closed sam closed 12 years ago

sam commented 12 years ago

See the following error:

test_parsing_a_deep_multipart_nested_query(RackUtilsTest):
EOFError: bad content body
  /usr/local/jruby-1.6.7/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/multipart/parser.rb:108:in `get_current_head_and_filename_and_content_type_and_name_and_body'
  /usr/local/jruby-1.6.7/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/multipart/parser.rb:18:in `parse'
  org/jruby/RubyKernel.java:1410:in `loop'
  /usr/local/jruby-1.6.7/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/multipart/parser.rb:17:in `parse'
  /usr/local/jruby-1.6.7/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/multipart.rb:25:in `parse_multipart'
  /Users/sam/src/sam/harbor/test/rack_utils_test.rb:44:in `test_parsing_a_deep_multipart_nested_query'
  org/jruby/RubyBasicObject.java:1698:in `__send__'

It could be this is addressed when moving away from Rack (to Jetty), but that's unknown at this time so I'll leave this failing test/ticket here as a reminder that we need to ensure multi-part uploads are working.