Skip to content

feat(difs): Redirect to Objectstore for Objectstore-backed DIF downloads#119392

Open
lcian wants to merge 3 commits into
masterfrom
lcian/feat/difs-download-redirect
Open

feat(difs): Redirect to Objectstore for Objectstore-backed DIF downloads#119392
lcian wants to merge 3 commits into
masterfrom
lcian/feat/difs-download-redirect

Conversation

@lcian

@lcian lcian commented Jul 10, 2026

Copy link
Copy Markdown
Member

This PR makes it so that Objectstore-backed DIFs are downloaded by Symbolicator/browsers/other API users from Objectstore directly, without streaming them through Sentry. This is achieved by issuing a 302 redirect to a pre-signed URL that allows the user to get the object.

Close FS-401

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 10, 2026
lcian and others added 2 commits July 10, 2026 13:49
Replace urllib.request.urlopen with requests.get in
_assert_successful_download so we can assert on response headers
(status code, Content-Disposition) in addition to body content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SwFR1j8BHYWjkHBG8FsSog
@lcian lcian changed the title wip feat(difs): Redirect directly to Objectstore for DIF downloads Jul 10, 2026
@lcian lcian changed the title feat(difs): Redirect directly to Objectstore for DIF downloads feat(difs): Redirect to Objectstore for Objectstore-backed DIF downloads Jul 10, 2026
@lcian lcian marked this pull request as ready for review July 10, 2026 12:25
@lcian lcian requested review from a team as code owners July 10, 2026 12:25

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 292067c. Configure here.

Comment thread src/sentry/api/endpoints/debug_files.py
Comment thread src/sentry/api/endpoints/debug_files.py
@linear-code

linear-code Bot commented Jul 10, 2026

Copy link
Copy Markdown

FS-401

@lcian lcian requested a review from a team July 10, 2026 12:53
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.

1 participant