Skip to content

fix: audit findings (2026-11-12, round 5) - #36

Merged
franciscbalint merged 1 commit into
developfrom
fix/audit5-2026-11-12
Nov 12, 2026
Merged

franciscbalint merged 1 commit into
developfrom
fix/audit5-2026-11-12

Conversation

@franciscbalint

Copy link
Copy Markdown
Collaborator

Fixes from the fifth audit (Medium).

  • Non-JSON 200 bodies. An HTML page (or a body that doesn't parse) on HTTP 200 came back as a successful String from 13 JSON calls (the sendfile calls, email-finder/domain-search status and delete, send_list_evaluator_file, send_evaluated_file, list_s3_files). validate_file_check/_delete and scoring_file_check/_delete raised a bare RuntimeError or JSON::ParserError with no status. Every JSON call now raises the SDK's API error with status 200, as Python and PHP do. Sweep specs cover every call in TransportSweep::CALLS and WARMUP_CALLS (17 + 4 failures before the fix).
  • Warmup ignore_conflict is strict. "false" and "junk" were sent as true. Warmup now uses the core client's strict-boolean check (moved to Zerobounce::StrictBool); nil leaves the field out.
  • CI builds, installs and loads the gem. A new step in the matrix job builds the gem, checks every lib/**/*.rb is in it, installs it into an empty GEM_HOME and requires it from outside the checkout. With spec.files = Dir['lib/*', ...] the step fails; before, RuboCop, all specs and publish passed and the shipped gem failed on require.

Specs 549 → 700, RuboCop clean; also run on Ruby 3.2 (with the 3.0 gemfile) and 3.4.

@franciscbalint
franciscbalint merged commit 03ab666 into develop Nov 12, 2026
9 checks passed
@franciscbalint
franciscbalint deleted the fix/audit5-2026-11-12 branch November 12, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant