Repository navigation
Verifiers: a blank Stripe refund id is unverified, never verified - #14
Conversation
A refund id of "" or whitespace passed the empty check, became a snapshot key, and let an otherwise matching refund return verified. FHIR Appointment ids were already rejected; this adds end-to-end regression cases for blank FHIR ids and actor shapes too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
|
@coderabbitai full review Please cover QA and security in this review:
Generated by Claude Code |
Action performed
|
Before: a Stripe refund whose id was
""or only whitespace passed the id check, became a snapshot key, and could makecheck()returnverifiedfor an otherwise matching refund claim.After: a blank or whitespace-only refund id is a malformed read, so the verdict is
unverified.This is the Stripe twin of the whitespace-only Appointment id that CodeRabbit flagged on #11 (already fixed on main in 1ab2852). The empty actor list case from #10 was also already fixed (7e4b89e); this PR adds end-to-end regression cases for both FHIR shapes too.
How:
stripe.pynow rejects ids whose.strip()is empty. New tests: two malformed Stripe pages (empty and whitespace ids), an end-to-end check that a blank-id refund isunverified(it returnedverifiedon main before the fix), and FHIR malformed bundles for empty id, whitespace id and an actor given as[{}]. CHANGELOG has an Unreleased entry. Suite: 181 passed, 11 skipped (optional LangGraph and MCP extras not installed).Generated by Claude Code
Summary by CodeRabbit