Skip to content

fix: prevent panic on malformed cursor#2878

Merged
tstirrat15 merged 1 commit intomainfrom
fix-panic-on-malformed-cursor
Feb 4, 2026
Merged

fix: prevent panic on malformed cursor#2878
tstirrat15 merged 1 commit intomainfrom
fix-panic-on-malformed-cursor

Conversation

@tstirrat15
Copy link
Contributor

Description

A user reported that a malformed cursor string could cause a panic which could bring down the SpiceDB process. This fixes that problem.

Changes

  • Use Parse instead of MustParse
  • Add a test

Testing

Review.

@tstirrat15 tstirrat15 marked this pull request as ready for review February 4, 2026 21:39
@tstirrat15 tstirrat15 requested a review from a team as a code owner February 4, 2026 21:39
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Feb 4, 2026
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.82%. Comparing base (3d98801) to head (c217f62).

❌ Your project check has failed because the head coverage (74.82%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2878      +/-   ##
==========================================
+ Coverage   74.79%   74.82%   +0.03%     
==========================================
  Files         484      484              
  Lines       57786    57789       +3     
==========================================
+ Hits        43217    43233      +16     
+ Misses      11550    11537      -13     
  Partials     3019     3019              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tstirrat15 tstirrat15 enabled auto-merge (squash) February 4, 2026 21:49
@tstirrat15 tstirrat15 merged commit fa1d7f4 into main Feb 4, 2026
44 of 45 checks passed
@tstirrat15 tstirrat15 deleted the fix-panic-on-malformed-cursor branch February 4, 2026 21:52
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants