Skip to content

fix(aci): 404 for non-digit IDs in endpoints #92087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2025
Merged

fix(aci): 404 for non-digit IDs in endpoints #92087

merged 2 commits into from
May 22, 2025

Conversation

kcons
Copy link
Member

@kcons kcons commented May 22, 2025

Change our URL regexes to only recognize numeric IDs.

This doesn't avoid issues from >2**64 numbers, but we can come back with a Model.id-bounds-aware ID parser on all endpoints if that ends up mattering.

Fixes #92083

@kcons kcons requested a review from a team as a code owner May 22, 2025 00:40
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 22, 2025
Copy link

codecov bot commented May 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

⚠️ Parser warning

The parser emitted a warning. Please review your JUnit XML file:

Warning while parsing testcase attributes: Limit of string is 1000 chars, for name, we got 2083 at 1:156414 in /home/runner/work/sentry/sentry/.artifacts/pytest.junit.xml
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #92087   +/-   ##
=======================================
  Coverage   82.76%   82.76%           
=======================================
  Files       10168    10167    -1     
  Lines      582906   582900    -6     
  Branches    22595    22595           
=======================================
- Hits       482419   482415    -4     
+ Misses      99199    99197    -2     
  Partials     1288     1288           

@kcons kcons merged commit a564346 into master May 22, 2025
61 checks passed
@kcons kcons deleted the kcons/92083 branch May 22, 2025 16:02
roaga pushed a commit that referenced this pull request May 22, 2025
Change our URL regexes to only recognize numeric IDs.

This doesn't avoid issues from >2**64 numbers, but we can come back with
a Model.id-bounds-aware ID parser on all endpoints if that ends up
mattering.

Fixes #92083
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError: invalid literal for int() with base 10: 'detectorType=metric_issue'
2 participants