Skip to content

fix(cli): preserve commas in individual upload metadata values - #5903

Open
Yzzz88 wants to merge 4 commits into
Tencent:mainfrom
Yzzz88:fix/upload-metadata-comma-values
Open

Yzzz88 wants to merge 4 commits into
Tencent:mainfrom
Yzzz88:fix/upload-metadata-comma-values

Conversation

@Yzzz88

@Yzzz88 Yzzz88 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Uploading with --metadata region=Guangzhou,Shenzhen rejected Shenzhen as a malformed assignment. Keep each repeated flag intact and retain the previous CSV shorthand for multiple assignments, including quoted CSV fields.

Verification

go test -count=1 -run "TestUploadMetadataCommaValues|TestUpload_Metadata|TestDocUpload_DryRun_RejectsBadMetadata" ./cmd/doc in the CLI module.

@Yzzz88

Yzzz88 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

The Go tests and CLI lint pass. CodeCC shows null for the severe security issue count, with no file or line annotations on GitHub. Could a maintainer check whether the scan completed and either rerun it or share the rule ID and affected line?

This branch has not been deployed

No deployments
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