Skip to content

test(s3): fix S3C-206 custom-metadata fixture - #166

Merged
cxymds merged 1 commit into
mainfrom
fix/s3c206-metadata-fixture
Nov 25, 2026
Merged

cxymds merged 1 commit into
mainfrom
fix/s3c206-metadata-fixture

Conversation

@cxymds

@cxymds cxymds commented Nov 25, 2026

Copy link
Copy Markdown
Member

Problem

S3C-206 (CustomMetadata) sends:

{"k":"v","caption":"=?UTF-8?B?5Lit?=   =?UTF-8?B?5paH?="}

but expects the returned metadata to be the single encoded value:

=?UTF-8?B?5Lit5paH?=

RustFS preserves the metadata value it receives, so the case failed on release/1.0.7 in the latest full run even though the product behavior is correct. This is a test-fixture expectation error, not a product defect (full report: rustfs/backlog#3307).

Fix

Send the single encoded value the case already expects, so the test genuinely checks metadata round-trip preservation. Refresh the reviewed rustfs-s3-compat-test.sh digest and note the correction in evidence_basis.

Verification

python3 -B scripts/validation_migration_review.py --require-complete   # pass
LC_ALL=C python3 -B -m unittest -v test_check_shell_syntax.py          # 2 tests OK
bash -n rustfs-s3-compat-test.sh                                       # OK

No live server was run for this test-only fixture correction; S3C-206 should pass against any server that preserves custom metadata.

S3C-206 sent a caption containing two MIME-encoded words but expected the
single encoded value. RustFS preserves the metadata value it receives, so
the case failed on release/1.0.7 even though the product behavior is
correct. Send the expected single value and refresh the reviewed digest.
Copilot AI balanced review requested due to automatic review settings November 25, 2026 00:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@cxymds
cxymds merged commit 21cd149 into main Nov 25, 2026
2 checks passed
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.

2 participants