Comments (3)
Just to be specific, the part of RFC1521 paragraph 7.2.1 that applies is this:
There appears to be room for additional information prior to the
first encapsulation boundary and following the final boundary. These
areas should generally be left blank, and implementations must ignore
anything that appears before the first boundary or after the last
one.
Here is a patch with a test and fix.
from rack.
read from the input until we find the boundary. closed by a5dae21
from rack.
Was this ever released in core? Just came across this exception:
Error during failsafe response: ActionView::Template::Error
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:48:in method_missing' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_dispatch/http/parameters.rb:10:in
parameters'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb:3:in __home_aldo__rvm_gems_ruby_______p__rails__gems_actionpack_______lib_action_dispatch_middleware_templates_rescues_diagnostics_erb___564800590_97272930_941118300' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_view/template.rb:135:in
block in render'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:54:in instrument' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_view/template.rb:127:in
render'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:59:in block in _render_template' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
block in instrument'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21:in instrument' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
instrument'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:56:in _render_template' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:26:in
render'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:88:in rescue_action_locally' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:68:in
render_exception'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:59:in call' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/railties-3.0.7/lib/rails/rack/logger.rb:13:in
call'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rack-1.2.2/lib/rack/runtime.rb:17:in call' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activesupport-3.0.7/lib/active_support/cache/strategy/local_cache.rb:72:in
call'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rack-1.2.2/lib/rack/lock.rb:11:in block in call' <internal:prelude>:10:in
synchronize'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rack-1.2.2/lib/rack/lock.rb:11:in call' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/static.rb:30:in
call'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/railties-3.0.7/lib/rails/application.rb:168:in call' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/railties-3.0.7/lib/rails/application.rb:77:in
method_missing'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/railties-3.0.7/lib/rails/rack/log_tailer.rb:14:in call' /home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rack-1.2.2/lib/rack/content_length.rb:13:in
call'
/home/aldo/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rack-1.2.2/lib/rack/handler/webrick.rb:52:in service' /home/aldo/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
service'
/home/aldo/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run' /home/aldo/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in
block in start_thread'
Started POST "/documents.js" for 70.181.90.212 at 2011-04-29 01:40:39 -0500
EOFError (bad content body)
from rack.
Related Issues (20)
- Nested parameters parsing error in rack 3.0.8 HOT 22
- Cookie being created with [" prefixed to name versions 3.0 thru 3.0.8 HOT 7
- Support for `Partitioned` cookie attribute HOT 15
- can't rackup HOT 5
- Rack::Lint::LintError: Status must be >=100 seen as integer HOT 10
- How to manually decode a Rack::Session::Cookie 2023 HOT 1
- 3.0.8 Multipart PATCH requests fail in minitest(Rack::Multipart::EmptyContentError) HOT 1
- HTTP_VERSION vs SERVER_PROTOCOL and Rack::Lint HOT 5
- Spec ambiguity: environment instance HOT 11
- undefined method `[]' for nil:NilClass HOT 1
- Multiple writes to Rack::Response result in incorrect content-length header in Rack 3 HOT 4
- 3.0.9 not visible in releases nor changelog HOT 2
- RACK_INPUT not rewound on form data HOT 2
- Upgrading from rack ~> 2.2 to >= 3.0.0 required me to do a new request.body.rewind before a request.body.read HOT 2
- Rack v2.2.8 release and changelog is missing HOT 2
- how to listen host Loopback HOT 1
- Request for release - EOFError on empty multipart request HOT 6
- Support for zstd in Deflater
- Discrepancy in the parsing behavior of Rack::Multipart between versions 1.6 and 2.2 HOT 7
- Deprecation should note how to fix HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rack.