Repository navigation
fix: forward download precondition headers - #1467
Merged
ferhatelmas merged 2 commits intoOct 6, 2026
Merged
Conversation
Coverage Report for CI Build 37467937690Coverage increased (+0.02%) to 84.461%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
Signed-off-by: Ferhat Elmas <elmas.ferhat@gmail.com>
ferhatelmas
force-pushed
the
fix/storage-download-preconditions
branch
from
October 6, 2026 13:04
6064ba2 to
2a3c1b2
Compare
ferhatelmas
approved these changes
Oct 6, 2026
ferhatelmas
enabled auto-merge (squash)
October 6, 2026 13:05
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.
Summary
Fixes #1466.
Forward
If-MatchandIf-Unmodified-Sincefrom ordinary REST object downloads to the existing backend precondition support.Problem and solution
AssetRenderer.getAssetdrops these headers, so a guarded ranged download can return 206 with changed object bytes instead of 412. Public, authenticated, and signed object downloads share this renderer. The fix adds only the two missing header mappings; existing backend semantics and error handling remain unchanged.Related #1446 implemented S3-route/backend support, not this REST renderer mapping. No public API, schema, dependencies, or authorization behavior changes. No documentation changes are needed.
Regression proof
The actual public-object route, renderer, file backend, and REST error handler are exercised with temporary local files. Only database lookups and xattr metadata access are stubbed; no credentials or live services are required.
eccef5e70a67fb4030e0646e5e22602c94f568bc, staleIf-Matchplus a range fails the regression: 206 instead of 412. Forwarding the header makes it pass.Validation
npm run test:unit -- --maxWorkers=2 --testTimeout=60000 --hookTimeout=60000).npm run build,npm run lint(including repository-wide formatting), focused Prettier check, andgit diff --check: passed.The first full unit run had 2,570 passes and one unrelated tracing shutdown-hook timeout at 30 seconds. That file passes in isolation on unchanged upstream and this worktree. The full retry uses CLI-only 60-second test/hook allowances, without changing repository configuration.