Skip to content

fix: return 400 for versioning requests blocked by bucket state - #59

Merged
Vonng merged 4 commits into
mainfrom
codex/fix-versioning-error-status
Oct 15, 2026
Merged

Vonng merged 4 commits into
mainfrom
codex/fix-versioning-error-status

Conversation

@Vonng

@Vonng Vonng commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

When replication or Object Lock prevents suspending bucket versioning, Console turns the server's 400 InvalidBucketState into 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.

Vonng added 4 commits October 15, 2026 21:11
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]>
@Vonng
Vonng merged commit b64e545 into main Oct 15, 2026
39 checks passed
@Vonng
Vonng deleted the codex/fix-versioning-error-status branch November 9, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant