Skip to content

Allow padding to be omitted from binary metadata values#2243

Merged
glbrntt merged 2 commits into
grpc:mainfrom
glbrntt:v2/support-unpadded-bin-metadata
May 27, 2025
Merged

Allow padding to be omitted from binary metadata values#2243
glbrntt merged 2 commits into
grpc:mainfrom
glbrntt:v2/support-unpadded-bin-metadata

Conversation

@glbrntt

@glbrntt glbrntt commented May 27, 2025

Copy link
Copy Markdown
Collaborator

Motivation:

Binary metadata values are encoded as base64 strings. The gRPC spec doesn't require that the values are padded. Currently gRPC Swift requires values to be padded otherwise decoding will fail.

Modifications:

  • Allow padding characters to be omitted when decoding base64

Result:

Can decode unpadded binary metadata values

Motivation:

Binary metadata values are encoded as base64 strings. The gRPC spec
doesn't require that the values are padded. Currently gRPC Swift
requires values to be padded otherwise decoding will fail.

Modifications:

- Allow padding characters to be omitted when decoding base64

Result:

Can decode unpadded binary metadata values
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label May 27, 2025
@glbrntt glbrntt enabled auto-merge (squash) May 27, 2025 09:54
@glbrntt glbrntt merged commit 36e1ad1 into grpc:main May 27, 2025
36 checks passed
@glbrntt glbrntt deleted the v2/support-unpadded-bin-metadata branch May 27, 2025 13:54
dongjoon-hyun added a commit to apache/spark-connect-swift that referenced this pull request May 30, 2025
### What changes were proposed in this pull request?

This PR aims to upgrade `gRPC Swift` to 2.2.2 from 2.2.1.

### Why are the changes needed?

To bring the latest bug fix.
- https://github.com/grpc/grpc-swift/releases/tag/2.2.2
    - grpc/grpc-swift#2243

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #186 from dongjoon-hyun/SPARK-52360.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@rnro rnro mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants