Repository navigation
fix: preserve 400 responses for versioning changes in embedded Console - #238
Merged
Merged
Conversation
Signed-off-by: Feng Ruohang <[email protected]>
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.
Embed the maintained Console fix for versioning requests that are rejected by replication or Object Lock. These requests now retain the server's HTTP 400 and detailed reason instead of becoming HTTP 500 in Console. The only module change pins pgsty/silo-console to e5b165e4c0ee; no other Go dependencies change.
Add regression coverage for the checksum message improvement merged in #229: all five supported algorithms, header and trailer readers, malformed trailers, checksum/part-count mismatches, wrapped API errors, and the existing generic fallback. HTTP 400 and XAmzContentChecksumMismatch remain unchanged.
Validation: make verifiers, make build, and checksum/digest package tests passed. A locally started SILO binary with this exact Console dependency returned 400 through the embedded Console for an Object Lock rejection, preserved the bucket's enabled versioning, returned 201 for an ordinary bucket suspension, and retained access denial. Real S3 uploads with incorrect CRC32, CRC32C, SHA1, SHA256 and CRC64NVME checksums returned the algorithm-specific message without storing an object; a correct CRC32 upload and download succeeded.
The Console fix is merged in pgsty/silo-console#59. The pinned commit is part of its main-branch history, and its tree matches the verified merge tree. That PR includes the corresponding Console handler regressions and the dependency/toolchain repairs; its required matrix and vulnerability checks passed. This change neither publishes a release nor changes the storage format or protection rules.
Fixes #231. Follow-up regression coverage for #226 and #229.