• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 35989475641
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/negotiated-format-fallback
DEFAULT BRANCH: master
Ran 24 Sep 2026 10:50AM UTC
Jobs 32
Files 168
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Sep 2026 10:49AM UTC coverage: 100.0%. Remained the same
35989475641

Pull #3006

github

ericproulx
Answer params and versions holding invalid bytes instead of raising

ActiveSupport's String#blank? matches a whitespace regexp, and a regexp
raises ArgumentError on a UTF-8 String holding bytes the encoding does
not allow -- which is what Rack decodes `%FF` in a query string into.
Request-time checks asked it of an unscrubbed value, so any client
could turn these into a 500:

- `given :a` with `?a=%FF`
- an optional Hash scope with `?a=%FF`, at the root or inside a `given`
- an optional Array scope with `?a[]=%FF`
- `version using: :param` with `?apiver=%FF`
- `version using: :header` with an Accept header holding invalid UTF-8
  (a server handing headers over as binary was not affected)

ParamsScope now asks a private `blank_param?`, which keeps `blank?`'s
answer -- `given` is documented to use it, so `false` and whitespace
still count as absent -- except that a String holding an invalid byte
is never blank: the byte is not whitespace. #2954 applied the same rule
to a DELETE body. The Param versioner scrubs the value, as
AcceptVersionHeader already does, and the Header versioner scrubs the
header before anything reads it: `downcase`, `split` and Rack's q-value
parsing raise on such bytes too. Its precomputed table is still read
with the header as it came, so a hit costs nothing more.

Each now answers as for any other value it does not recognise: the
dependency is met, a String where a Hash is declared is invalid, and an
unknown version is a 404, or a 406 under `strict`.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3006: Answer params and versions holding invalid bytes instead of raising

1490 of 1490 branches covered (100.0%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 3 files covered. (100.0%)

4325 of 4325 relevant lines covered (100.0%)

29283.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_3_2.gemfile - 35989475641.1 24 Sep 2026 10:50AM UTC 167
98.81
GitHub Action Run
2 run-3.3-Gemfile - 35989475641.2 24 Sep 2026 10:50AM UTC 167
98.83
GitHub Action Run
3 run-3.3-gemfiles/rack_3_0.gemfile - 35989475641.3 24 Sep 2026 10:50AM UTC 167
98.83
GitHub Action Run
4 run-3.4-Gemfile - 35989475641.4 24 Sep 2026 10:50AM UTC 167
98.81
GitHub Action Run
5 run-4.0-gemfiles/rack_2_2.gemfile - 35989475641.5 24 Sep 2026 10:50AM UTC 167
98.78
GitHub Action Run
6 run-4.0-gemfiles/grape_swagger.gemfile - 35989475641.6 24 Sep 2026 10:50AM UTC 166
53.45
GitHub Action Run
7 run-4.0-gemfiles/multi_json.gemfile - 35989475641.7 24 Sep 2026 10:49AM UTC 166
46.12
GitHub Action Run
8 run-3.3-gemfiles/rails_8_0.gemfile - 35989475641.8 24 Sep 2026 10:50AM UTC 168
98.83
GitHub Action Run
9 run-4.0-Gemfile - 35989475641.9 24 Sep 2026 10:50AM UTC 167
98.81
GitHub Action Run
10 run-3.4-gemfiles/rails_7_2.gemfile - 35989475641.10 24 Sep 2026 10:50AM UTC 168
98.81
GitHub Action Run
11 run-3.4-gemfiles/rack_2_2.gemfile - 35989475641.11 24 Sep 2026 10:50AM UTC 167
98.78
GitHub Action Run
12 run-3.3-gemfiles/rails_7_2.gemfile - 35989475641.12 24 Sep 2026 10:50AM UTC 168
98.83
GitHub Action Run
13 run-3.3-gemfiles/rack_3_2.gemfile - 35989475641.13 24 Sep 2026 10:50AM UTC 167
98.83
GitHub Action Run
14 run-4.0-gemfiles/multi_xml.gemfile - 35989475641.14 24 Sep 2026 10:50AM UTC 166
45.81
GitHub Action Run
15 run-3.4-gemfiles/rack_3_1.gemfile - 35989475641.15 24 Sep 2026 10:50AM UTC 167
98.81
GitHub Action Run
16 run-3.4-gemfiles/rack_3_2.gemfile - 35989475641.16 24 Sep 2026 10:49AM UTC 167
98.81
GitHub Action Run
17 run-4.0-gemfiles/multi_json_1_20.gemfile - 35989475641.17 24 Sep 2026 10:49AM UTC 166
46.15
GitHub Action Run
18 run-4.0-gemfiles/multi_xml_0_8.gemfile - 35989475641.18 24 Sep 2026 10:50AM UTC 166
45.84
GitHub Action Run
19 run-3.3-gemfiles/rack_3_1.gemfile - 35989475641.19 24 Sep 2026 10:50AM UTC 167
98.83
GitHub Action Run
20 run-4.0-gemfiles/grape_entity.gemfile - 35989475641.20 24 Sep 2026 10:50AM UTC 166
48.9
GitHub Action Run
21 run-3.4-gemfiles/rack_3_0.gemfile - 35989475641.21 24 Sep 2026 10:49AM UTC 167
98.81
GitHub Action Run
22 run-4.0-gemfiles/rails_7_2.gemfile - 35989475641.22 24 Sep 2026 10:50AM UTC 168
98.81
GitHub Action Run
23 run-3.4-gemfiles/rails_8_0.gemfile - 35989475641.23 24 Sep 2026 10:50AM UTC 168
98.81
GitHub Action Run
24 run-3.3-gemfiles/rails_8_1.gemfile - 35989475641.24 24 Sep 2026 10:50AM UTC 168
98.83
GitHub Action Run
25 run-4.0-gemfiles/rack_3_0.gemfile - 35989475641.25 24 Sep 2026 10:50AM UTC 167
98.81
GitHub Action Run
26 run-4.0-gemfiles/hashie.gemfile - 35989475641.26 24 Sep 2026 10:50AM UTC 166
60.12
GitHub Action Run
27 run-4.0-gemfiles/rails_8_1.gemfile - 35989475641.27 24 Sep 2026 10:50AM UTC 168
98.81
GitHub Action Run
28 run-4.0-gemfiles/rails_8_0.gemfile - 35989475641.28 24 Sep 2026 10:50AM UTC 168
98.81
GitHub Action Run
29 run-4.0-gemfiles/dry_validation.gemfile - 35989475641.29 24 Sep 2026 10:50AM UTC 166
56.06
GitHub Action Run
30 run-3.4-gemfiles/rails_8_1.gemfile - 35989475641.30 24 Sep 2026 10:50AM UTC 168
98.81
GitHub Action Run
31 run-3.3-gemfiles/rack_2_2.gemfile - 35989475641.31 24 Sep 2026 10:50AM UTC 167
98.79
GitHub Action Run
32 run-4.0-gemfiles/rack_3_1.gemfile - 35989475641.32 24 Sep 2026 10:50AM UTC 167
98.81
GitHub Action Run
Source Files on build 35989475641
  • Tree
  • List 168
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35989475641
  • Pull Request #3006
  • PR Base - master (#35980339697)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc