Repository navigation
fix: return 400 for versioning requests blocked by bucket state - #59
Merged
Merged
Conversation
Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Upgrade the available fixes for DOMPurify, brace-expansion, http-cache-semantics and source-map-js. Keep the production audit unfiltered; document the single unpatched braces advisory exception for repository-controlled development globs. The rebuilt embedded frontend remains byte-identical. 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.
When replication or Object Lock prevents suspending bucket versioning, Console turns the server's
400 InvalidBucketStateinto HTTP 500. Preserve the underlying S3 error through both versioning call sites and map this specific error to 400 while retaining the detailed reason. The server's protection rules and unrelated error mappings remain intact.The handler regression exercises the real maintained mc/minio-go client path against an HTTP S3 stub for site replication, bucket replication, Object Lock, access denial and success. Error-conversion tests cover wrapped errors and retain the existing 401/500 behavior for unrelated errors.
Current CI also exposed existing dependency advisories and an incompatible linter. Align Go (1.27.2), golangci-lint (2.14.0), and x/net (v0.60.0) with the maintained server; pin the verified Go Docker builder digest. Refresh the available fixes for DOMPurify, brace-expansion, http-cache-semantics and source-map-js, together with the lockfile and frontend license inventory. A full frontend rebuild produces the same embedded assets.
The development audit has one explicit exception: GHSA-vfj7-8cjw-p6xm (npm 1240992), an unpatched braces recursion issue. Here braces handles repository-controlled build/test globs and is absent from the production dependency graph. The production audit remains unfiltered; other high-severity development advisories still fail CI. Remove this exception when upstream publishes a fix.
Validation passed locally: full Go tests, focused API race tests, make verifiers with the updated linter, go build, CI contract validation, govulncheck (zero reachable vulnerabilities), production dependency audit, development audit with the documented exception, frontend build/optimization, and Go/frontend license inventory checks. The current server also passes its checksum tests when built with this Console candidate.
Addresses pgsty/silo#231. The server's pinned Console dependency will be advanced in a follow-up server change. Remote required matrix and vulnerability checks must pass before merge.