Repository navigation
feat(py-client): Support response content disposition in object URLs - #696
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #696 +/- ##
==========================================
+ Coverage 91.40% 91.83% +0.42%
==========================================
Files 118 117 -1
Lines 24551 24137 -414
==========================================
- Hits 22441 22166 -275
+ Misses 2110 1971 -139
☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jan-auer
force-pushed
the
feat/download-response-options
branch
from
October 21, 2026 09:59
43720b0 to
f1337b1
Compare
jan-auer
marked this pull request as ready for review
October 21, 2026 13:07
lcian
reviewed
Oct 22, 2026
lcian
approved these changes
Oct 22, 2026
lcian
left a comment
Member
There was a problem hiding this comment.
I'm not certain about Content-Security-Policy/X-Content-Type-Options etc. so I trust you on that. Other than that LGTM.
lcian
approved these changes
Oct 22, 2026
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Breaking Changes 🛠Py Client
Rs Client
New Features ✨Py Client
🤖 This preview updates automatically when you update the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Entry
response_content_dispositionoption ("inline"or"attachment") toSession.object_url()andSession.presigned_object_url(). Pre-signed URLs include it in their signature.Details
Seer needs to display Objectstore files in the browser, which requires inline content disposition. Currently, it proxies payloads through a custom endpoint to achieve this.
To allow for redirects directly to objectstore, this PR adds support for the
response-content-dispositionquery parameter. The option is added to Python’sobject_url()andpresigned_object_url(). Pre-signed URLs also include the option in their signature so it cannot be changed afterwards.inlineorattachmentand defaults to attachment.X-Content-Type-Options: nosniffand inline responses additionally sendContent-Security-Policy: sandboxwithout relaxation tokens. These are safeguards to prevent browsers from interpreting the content as executable or markup.Internally, this is implemented by a single extractor that validates the options. A small
IntoResponsePartstype then adds the headers to the existing endpoint responses.Note that S3 additionally supports more headers that are not implemented in this PR:
Ref FS-570
via @lcian.
--
View Junior Session [Sentry]