rack
12 years agoUse rbx in Travis instead of rbx-2.0 rack-1.3
Santiago Pastorino [Wed, 24 Apr 2013 00:11:44 +0000 (21:11 -0300)]
Use rbx in Travis instead of rbx-2.0

12 years agoAdd bundle exec to .travis.yml
Santiago Pastorino [Wed, 24 Apr 2013 00:05:09 +0000 (21:05 -0300)]
Add bundle exec to .travis.yml

12 years agoUpdate .travis.yml
Santiago Pastorino [Wed, 24 Apr 2013 00:02:06 +0000 (21:02 -0300)]
Update .travis.yml

12 years agoprevent crash when cookie doesn't contain "--"
Santiago Pastorino [Mon, 22 Apr 2013 23:20:51 +0000 (20:20 -0300)]
prevent crash when cookie doesn't contain "--"

This backports 881ce764f3fd70a20c5800892a132f1e6c8e7c50 so that rack
won't crash when there isn't a "--" in the rack_session cookie

Fixes #523

12 years agoUse the non deprecated version of source
Santiago Pastorino [Mon, 22 Apr 2013 23:07:25 +0000 (20:07 -0300)]
Use the non deprecated version of source

12 years agoBump version number 1.3.10
James Tucker [Fri, 8 Feb 2013 03:00:50 +0000 (19:00 -0800)]
Bump version number

12 years agoUpdate README for todays releases
James Tucker [Fri, 8 Feb 2013 02:58:34 +0000 (18:58 -0800)]
Update README for todays releases

12 years agoUse secure_compare for hmac comparison
James Tucker [Thu, 7 Feb 2013 22:50:53 +0000 (14:50 -0800)]
Use secure_compare for hmac comparison

 * Closes CVE-2013-0263

12 years agoAdd secure_compare to Rack::Utils
James Tucker [Wed, 6 Feb 2013 23:31:53 +0000 (15:31 -0800)]
Add secure_compare to Rack::Utils

Conflicts:
test/spec_utils.rb

12 years agoBump version 1.3.9
James Tucker [Sun, 13 Jan 2013 22:01:09 +0000 (14:01 -0800)]
Bump version

12 years agoUpdate README for release. Add security section.
James Tucker [Sun, 13 Jan 2013 21:55:50 +0000 (13:55 -0800)]
Update README for release. Add security section.

12 years agoRemove error test, implementation not backported
James Tucker [Sun, 13 Jan 2013 21:39:40 +0000 (13:39 -0800)]
Remove error test, implementation not backported

 * Closes #493

12 years agoSquash warnings in spec_auth
James Tucker [Sun, 13 Jan 2013 21:33:08 +0000 (13:33 -0800)]
Squash warnings in spec_auth

12 years agoReimplement auth scheme fix
James Tucker [Sun, 13 Jan 2013 21:10:20 +0000 (13:10 -0800)]
Reimplement auth scheme fix

 * Add Rack::Auth.add_scheme to enable folks to fix anything that breaks
 * Add common auth schemes, MS ones, AWS ones, etc are missing, as unlikely
 * Checked Rails - they don't use our authorization code
 * Checked Warden - uses rails
 * Checked Omniauth - uses rails
 * Checked doorkeeper - users rails
 * Checked rack-authentication - does it's own thing
 * Checked warden-oauth - doesn't do headers
 * Checked devise - uses rails
 * Checked oauth2-rack - header creation only
 * Checked rack-oauth2-server - does it's own thing
 * Probably missed a bunch, but that'll have to do

12 years agoAdd release announcements to README 1.3.8
James Tucker [Mon, 7 Jan 2013 18:46:43 +0000 (10:46 -0800)]
Add release announcements to README

12 years agoBump to 1.3.8
James Tucker [Mon, 7 Jan 2013 18:40:59 +0000 (10:40 -0800)]
Bump to 1.3.8

12 years agomultipart/parser: avoid unbounded #gets method
Eric Wong [Wed, 22 Aug 2012 22:48:23 +0000 (22:48 +0000)]
multipart/parser: avoid unbounded #gets method

Malicious clients may send excessively long lines
to trigger out-of-memory errors in a Rack web server.

12 years agoBump to 1.3.7 1.3.7
James Tucker [Mon, 7 Jan 2013 01:29:27 +0000 (17:29 -0800)]
Bump to 1.3.7

12 years agoUpdate README based on master
James Tucker [Sun, 6 Jan 2013 23:50:19 +0000 (15:50 -0800)]
Update README based on master

12 years agoFix parsing multiple ranges
Sokolov Yura [Fri, 9 Nov 2012 09:58:56 +0000 (13:58 +0400)]
Fix parsing multiple ranges

Fix parsing miltiple ranges in HTTP_RANGE header according to w3 rfc2616 (according to last example in sec14.35.1 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1 ) (according to BNF rules in http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.1 )

12 years agoAdd a note in KNOWN-ISSUES regarding ECMA escape
James Tucker [Sat, 29 Dec 2012 18:04:46 +0000 (13:04 -0500)]
Add a note in KNOWN-ISSUES regarding ECMA escape

12 years agoRefactor spec_cascade and spec_head
James Tucker [Fri, 28 Dec 2012 22:38:51 +0000 (17:38 -0500)]
Refactor spec_cascade and spec_head

 * StringIO is a better choice than a struct here.

12 years agoRack::Response now conforms to body.close SPEC
James Tucker [Fri, 28 Dec 2012 22:36:36 +0000 (17:36 -0500)]
Rack::Response now conforms to body.close SPEC

 * Previously 204, 205 and 304 bodies were not closed correctly.

12 years agoRack::Head now conforms to body.close SPEC
James Tucker [Fri, 28 Dec 2012 22:28:26 +0000 (17:28 -0500)]
Rack::Head now conforms to body.close SPEC

Conflicts:
test/spec_head.rb

12 years agoCascade now conforms to the body.close SPEC
James Tucker [Fri, 28 Dec 2012 22:19:04 +0000 (17:19 -0500)]
Cascade now conforms to the body.close SPEC

12 years agoClarify the body.close spec section
James Tucker [Fri, 28 Dec 2012 22:02:06 +0000 (17:02 -0500)]
Clarify the body.close spec section

 * This item is frequently missed, including in core.
 * This is not a change in semantic requirement, and does not update the SPEC
   version.

12 years agoEnsure that deflater always closes bodies.
James Tucker [Sat, 3 Nov 2012 15:35:04 +0000 (08:35 -0700)]
Ensure that deflater always closes bodies.

Closes #349

12 years agoRack::BodyProxy#each, fixes rack/rack#434
Zachary Scott [Fri, 2 Nov 2012 23:24:53 +0000 (19:24 -0400)]
Rack::BodyProxy#each, fixes rack/rack#434

12 years agoPrevent infinite recursions from Response#to_ary
James Tucker [Fri, 2 Nov 2012 20:54:39 +0000 (13:54 -0700)]
Prevent infinite recursions from Response#to_ary

Closes #419

12 years agoReturn a bad request for malformed basic auth
James Tucker [Fri, 2 Nov 2012 20:03:59 +0000 (13:03 -0700)]
Return a bad request for malformed basic auth

Closes #438

12 years agorescue Errno::ESRCH for windows, fixes #391
Zachary Scott [Thu, 25 Oct 2012 03:59:49 +0000 (23:59 -0400)]
rescue Errno::ESRCH for windows, fixes #391

12 years agoAdd redrawn logos by Zachary Scott
Christian Neukirchen [Mon, 22 Oct 2012 14:58:43 +0000 (16:58 +0200)]
Add redrawn logos by Zachary Scott

Date: Mon, 22 Oct 2012 10:29:22 -0400
Message-ID: <CAH6G9XNkVkUWh9JPT9HuHzJ4KmRNoPSr8ov3q0rgzH3b=u3cGw@mail.gmail.com>

On Mon, Oct 22, 2012 at 10:17 AM, Christian Neukirchen
<chneukirchen@gmail.com> wrote:
> Is it ok to put the other files as MIT license into contrib/?
> (Perhaps add a copyright message to the .svg)

Whatever you want, they're all yours.
Thanks!

12 years agoUpdate years in license
Konstantin Haase [Mon, 30 Jul 2012 13:36:54 +0000 (16:36 +0300)]
Update years in license

12 years agoUse backport of URI module even on ruby 1.9.2-p320.
ITO Nobuaki [Fri, 13 Jul 2012 06:51:50 +0000 (15:51 +0900)]
Use backport of URI module even on ruby 1.9.2-p320.

12 years agoAdded missing dependence on 'timeout' in test/spec_utils.
ITO Nobuaki [Fri, 13 Jul 2012 06:03:17 +0000 (15:03 +0900)]
Added missing dependence on 'timeout' in test/spec_utils.

12 years agoFix request loop on non-stale nonce with time_limit parameter.
ITO Nobuaki [Thu, 12 Jul 2012 02:52:57 +0000 (11:52 +0900)]
Fix request loop on non-stale nonce with time_limit parameter.

12 years agoSet __LINE__ correctly for rackup files.
Conrad Irwin [Mon, 4 Jun 2012 07:28:42 +0000 (00:28 -0700)]
Set __LINE__ correctly for rackup files.

Before this change the line numbers were off by one, which broke
debugging tools like Pry in addition to causing a smidgen of user
confusion.

Reported-At: https://github.com/pry/pry/issues/571

12 years agoupdate the dead link
Hrvoje Šimić [Tue, 22 May 2012 15:00:02 +0000 (17:00 +0200)]
update the dead link
remove the dead link

use internet archive for a dead link

added working link

12 years agoImprove pidfile reporting and test coverage
James Tucker [Sun, 13 May 2012 17:51:45 +0000 (10:51 -0700)]
Improve pidfile reporting and test coverage

 * Output reduced to a single line
 * Integration test added that also suppresses and checks output

12 years agoCheck if the PID in pidfile is still running #371
Jean Boussier [Sat, 5 May 2012 16:05:32 +0000 (12:05 -0400)]
Check if the PID in pidfile is still running #371

Then abort or remove the pidfile

12 years agoCheck that the pidfile is not already present before overriding it
Jean Boussier [Wed, 21 Mar 2012 10:31:02 +0000 (11:31 +0100)]
Check that the pidfile is not already present before overriding it

12 years agopoint to github page instead of rubyforge
Konstantin Haase [Sat, 12 May 2012 19:21:18 +0000 (21:21 +0200)]
point to github page instead of rubyforge

12 years agorackup: include the value of each -I command line option in $LOAD_PATH
Anurag Priyam [Thu, 26 Apr 2012 09:29:59 +0000 (14:59 +0530)]
rackup: include the value of each -I command line option in $LOAD_PATH

`rackup -h` says '-I' can be used more than once.  However, instead of adding
each value to $LOAD_PATH, rackup would discard the value of all but the last
'-I' option.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
12 years agoSkipping empty params inside query what lead to parsing error.
Josef Sin [Thu, 12 Apr 2012 13:28:45 +0000 (15:28 +0200)]
Skipping empty params inside query what lead to parsing error.

Example of these cookies would be: "foo=bar,;bar=foo" or ",foo=bar;,"

Conflicts:
test/spec_utils.rb

12 years agodon't load broken backports on jruby, either
Konstantin Haase [Sun, 11 Mar 2012 11:56:56 +0000 (12:56 +0100)]
don't load broken backports on jruby, either

12 years agofix version comparison, again
Konstantin Haase [Sun, 11 Mar 2012 10:40:36 +0000 (11:40 +0100)]
fix version comparison, again

12 years agofix version comparison
Konstantin Haase [Sun, 11 Mar 2012 10:21:28 +0000 (11:21 +0100)]
fix version comparison

12 years agoregexp issue has been fixed in Ruby 1.9.2-p381
Konstantin Haase [Sun, 11 Mar 2012 10:03:34 +0000 (11:03 +0100)]
regexp issue has been fixed in Ruby 1.9.2-p381

12 years agoUse `const_defined?` so that it only checks withing the scope of URI.
Ben Hamill [Wed, 7 Mar 2012 03:20:32 +0000 (21:20 -0600)]
Use `const_defined?` so that it only checks withing the scope of URI.

12 years agoDon't load the backport for uri/common.rb when running 1.9.3-p125 and beyond
Stefano Cobianchi [Mon, 5 Mar 2012 22:17:53 +0000 (23:17 +0100)]
Don't load the backport for uri/common.rb when running 1.9.3-p125 and beyond

12 years agoUh. Put the conditional on the CORRECT line. :sweat:
Ben Hamill [Sun, 4 Mar 2012 03:36:32 +0000 (21:36 -0600)]
Uh. Put the conditional on the CORRECT line. :sweat:

12 years agoOnly remove a constant if it exists.
Ben Hamill [Sun, 4 Mar 2012 03:25:34 +0000 (21:25 -0600)]
Only remove a constant if it exists.

12 years agoBackported fixes for:
Aaron Patterson [Wed, 25 Jan 2012 19:25:17 +0000 (11:25 -0800)]
Backported fixes for:

  http://bugs.ruby-lang.org/issues/5925

Relevant commit:

  https://github.com/ruby/ruby/commit/edb7cdf1eabaff78dfa5ffedfbc2e91b29fa9ca1

12 years agoFix parsing performance for unquoted filenames
James Tucker [Sun, 13 May 2012 22:02:17 +0000 (15:02 -0700)]
Fix parsing performance for unquoted filenames

Special thanks to Paul Rogers & Eric Wong

Conflicts:
test/spec_multipart.rb

13 years agoAdd warning to strongly recommend to people to have secrets protecting their cookies
James Tucker [Mon, 19 Mar 2012 01:36:31 +0000 (18:36 -0700)]
Add warning to strongly recommend to people to have secrets protecting their cookies

13 years agoRelease notes and version bump 1.3.6
James Tucker [Wed, 28 Dec 2011 02:51:49 +0000 (22:51 -0400)]
Release notes and version bump

13 years agoLimit the size of parameter keys
Evan Phoenix [Tue, 13 Dec 2011 18:18:48 +0000 (10:18 -0800)]
Limit the size of parameter keys

Signed-off-by: James Tucker <jftucker@gmail.com>
13 years agoBump to 1.3.5 (aaah, laptop power running out...) 1.3.5
James Tucker [Tue, 18 Oct 2011 05:30:39 +0000 (22:30 -0700)]
Bump to 1.3.5  (aaah, laptop power running out...)

13 years agoAdd release note for 1.3.5
James Tucker [Tue, 18 Oct 2011 05:28:34 +0000 (22:28 -0700)]
Add release note for 1.3.5

13 years agofixes #246. Silence the warning about redefining this constant from the standard...
Ben Hamill [Tue, 4 Oct 2011 04:44:31 +0000 (23:44 -0500)]
fixes #246. Silence the warning about redefining this constant from the standard library.

13 years agoGahhh TAAABBZZZ 1.3.4
James Tucker [Sat, 1 Oct 2011 20:30:35 +0000 (13:30 -0700)]
Gahhh TAAABBZZZ

13 years agoBump version number
James Tucker [Sat, 1 Oct 2011 20:28:03 +0000 (13:28 -0700)]
Bump version number

13 years agoCorrect 1.3.4 release message
James Tucker [Sat, 1 Oct 2011 20:25:12 +0000 (13:25 -0700)]
Correct 1.3.4 release message

Conflicts:

README.rdoc

13 years agoUpdate README for the 1.3.4 release
James Tucker [Sat, 1 Oct 2011 20:22:52 +0000 (13:22 -0700)]
Update README for the 1.3.4 release

13 years agoUse the modern mongrel that should work on jruby and 1.9
James Tucker [Fri, 16 Sep 2011 23:08:22 +0000 (16:08 -0700)]
Use the modern mongrel that should work on jruby and 1.9

13 years agoAdding travis-ci yaml setup... going to need to fix up the environment
James Tucker [Fri, 16 Sep 2011 23:05:26 +0000 (16:05 -0700)]
Adding travis-ci yaml setup... going to need to fix up the environment

13 years agoAdd a Gemfile, this is purely for travis-ci
James Tucker [Fri, 16 Sep 2011 23:02:21 +0000 (16:02 -0700)]
Add a Gemfile, this is purely for travis-ci

13 years agoSimplify BodyProxy#close to avoid horrible loop conditions in streaming
James Tucker [Sat, 1 Oct 2011 15:55:37 +0000 (08:55 -0700)]
Simplify BodyProxy#close to avoid horrible loop conditions in streaming
scenarios, and save users from themselves

13 years agoAdd some documentation to cover distribution differences in /etc/mime.types.
James Tucker [Sat, 1 Oct 2011 18:39:08 +0000 (11:39 -0700)]
Add some documentation to cover distribution differences in /etc/mime.types.
Closes #187.

13 years agoAdded backport of Ruby URI's 1.9.3 DoS fix
Tim Lucas [Wed, 28 Sep 2011 23:50:10 +0000 (01:50 +0200)]
Added backport of Ruby URI's 1.9.3 DoS fix

13 years agoRegression test for DoS attack on form/cookie param decoding
Tim Lucas [Wed, 28 Sep 2011 23:30:15 +0000 (01:30 +0200)]
Regression test for DoS attack on form/cookie param decoding

See http://redmine.ruby-lang.org/issues/5149

13 years agofix issue with Thin and Rack::BodyProxy on Ruby 1.9.2
Konstantin Haase [Sat, 1 Oct 2011 06:59:04 +0000 (01:59 -0500)]
fix issue with Thin and Rack::BodyProxy on Ruby 1.9.2

13 years agoBump version! 1.3.3
James Tucker [Fri, 16 Sep 2011 23:30:49 +0000 (16:30 -0700)]
Bump version!

13 years agoUpdate for release date
James Tucker [Fri, 16 Sep 2011 23:30:34 +0000 (16:30 -0700)]
Update for release date

13 years agoupdate changes for 1.3.3
Konstantin Haase [Wed, 7 Sep 2011 17:34:00 +0000 (10:34 -0700)]
update changes for 1.3.3

13 years agoBugFix in ConditionalGet; don't crash when we get a malformed HTTP_IF_MODIFIED_SINCE...
Nicholas Mulder [Wed, 31 Aug 2011 15:05:40 +0000 (11:05 -0400)]
BugFix in ConditionalGet; don't crash when we get a malformed HTTP_IF_MODIFIED_SINCE timestamp

13 years agoFix bugs with MRI 1.8.x regex engine
James Tucker [Sun, 21 Aug 2011 23:07:51 +0000 (16:07 -0700)]
Fix bugs with MRI 1.8.x regex engine

13 years agoIgnore tarballs from releases
James Tucker [Sun, 21 Aug 2011 23:07:34 +0000 (16:07 -0700)]
Ignore tarballs from releases

13 years agoMake tests easier to run cross-interpreter
James Tucker [Sun, 21 Aug 2011 23:06:50 +0000 (16:06 -0700)]
Make tests easier to run cross-interpreter

13 years agoFix for psych
James Tucker [Sun, 21 Aug 2011 23:06:28 +0000 (16:06 -0700)]
Fix for psych

13 years agomake tests pass on 1.8 again
Konstantin Haase [Thu, 1 Sep 2011 20:45:46 +0000 (14:45 -0600)]
make tests pass on 1.8 again

13 years agobetter error message when unable to parse cookie, see #225
Konstantin Haase [Tue, 23 Aug 2011 16:25:26 +0000 (18:25 +0200)]
better error message when unable to parse cookie, see #225

13 years agorefactor Request#cookies, fixes #225
Konstantin Haase [Tue, 23 Aug 2011 15:35:39 +0000 (17:35 +0200)]
refactor Request#cookies, fixes #225

13 years agoFixed an unhandled condition where req.GET or req.POST could be nil if a URI
Luke Jahnke [Mon, 1 Aug 2011 13:12:00 +0000 (23:12 +1000)]
Fixed an unhandled condition where req.GET or req.POST could be nil if a URI
such as a=1&a[]=1 was parsed.

13 years agoFix mod_xsendfile url
Santiago Pastorino [Wed, 27 Jul 2011 14:40:27 +0000 (11:40 -0300)]
Fix mod_xsendfile url

13 years agoBump version 1.3.2
James Tucker [Sat, 16 Jul 2011 21:45:19 +0000 (14:45 -0700)]
Bump version

13 years agoUpdate for the 1.3.2 release
James Tucker [Sat, 16 Jul 2011 21:43:44 +0000 (14:43 -0700)]
Update for the 1.3.2 release

Conflicts:

README.rdoc

13 years agoRack::Utils.escape should work with symbols in Ruby 1.8.7
Santiago Pastorino [Sat, 16 Jul 2011 20:14:03 +0000 (17:14 -0300)]
Rack::Utils.escape should work with symbols in Ruby 1.8.7

13 years agoBump version 1.3.1
James Tucker [Wed, 13 Jul 2011 23:13:50 +0000 (16:13 -0700)]
Bump version

13 years agoUpdate readme pending patch release
James Tucker [Wed, 13 Jul 2011 23:10:37 +0000 (16:10 -0700)]
Update readme pending patch release

13 years agoMerge pull request #206 from brendan/19451fc0463ec424fa368cac05be15c75e87e016
James Tucker [Wed, 13 Jul 2011 23:05:43 +0000 (16:05 -0700)]
Merge pull request #206 from brendan/19451fc0463ec424fa368cac05be15c75e87e016

Fixed a Regexp that allows bad urls to DoS you.

13 years agoFixed a Regexp bug that can DoS your box.
Brendan Baldwin [Wed, 13 Jul 2011 20:01:59 +0000 (13:01 -0700)]
Fixed a Regexp bug that can DoS your box.

13 years agoEdited lib/rack/sendfile.rb via GitHub
nleguen [Sat, 2 Jul 2011 20:57:29 +0000 (13:57 -0700)]
Edited lib/rack/sendfile.rb via GitHub

14 years agoupdate changes
Konstantin Haase [Wed, 29 Jun 2011 18:20:25 +0000 (20:20 +0200)]
update changes

14 years agoprepare readme for 1.3.1
Konstantin Haase [Wed, 29 Jun 2011 18:13:36 +0000 (20:13 +0200)]
prepare readme for 1.3.1

14 years agoHave MockRequest call close on the body rather than MockResponse.
Konstantin Haase [Tue, 14 Jun 2011 07:37:48 +0000 (09:37 +0200)]
Have MockRequest call close on the body rather than MockResponse.
That way close is called automatically when testing just with
vanilla Rack, but not called twice when using other testing libs
like rack-test.

Related to #191.

14 years agotest for Rack::Response#close
Konstantin Haase [Fri, 10 Jun 2011 15:59:44 +0000 (17:59 +0200)]
test for Rack::Response#close

14 years agocall #close on body in mock responses
Konstantin Haase [Thu, 9 Jun 2011 20:14:35 +0000 (22:14 +0200)]
call #close on body in mock responses

14 years agoMinor error in documentation regarding the order of parameters in HTTP_X_ACCEL_MAPPING.
Samuel Williams [Wed, 29 Jun 2011 17:21:14 +0000 (10:21 -0700)]
Minor error in documentation regarding the order of parameters in HTTP_X_ACCEL_MAPPING.

14 years agomake sure the Cache-Control header can never be nil
Matthew M. Boedicker [Mon, 27 Jun 2011 00:49:47 +0000 (20:49 -0400)]
make sure the Cache-Control header can never be nil