Skip to content

Conversation

@wlinna
Copy link
Contributor

@wlinna wlinna commented Mar 3, 2025

The status of this PR:
With this PR applied, I am able to set metadata such as content_encoding and content_type in write operations with Gcs. I have tested it with the official Storage emulator provided by firebase-tools.

What's missing:

  • I haven't tested this with the actual GCS yet EDIT: Tested in our project
  • Unit tests for RelatedPart EDIT: There's now a simple unit test

Which issue does this PR close?

Closes #5624

TL;DR: Improves GCS API compliance

Rationale for this change

The rationale for the change is discussed in the issue.

What changes are included in this PR?

  • Implement support for multipart/related (RelatedPart)
  • Use RelatedPart in gcs_insert_object_request instead of FormDataPart

Are there any user-facing changes?

None

@wlinna wlinna requested a review from Xuanwo as a code owner March 3, 2025 20:54
@wlinna wlinna marked this pull request as draft March 3, 2025 20:54
@github-actions github-actions bot added the releases-note/feat The PR implements a new feature or has a title that begins with "feat" label Mar 3, 2025
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you @wlinna for working on this, mostly LGTM!

@wlinna wlinna marked this pull request as ready for review March 8, 2025 08:09
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you @wlinna, really nice to me.

@Xuanwo Xuanwo merged commit befd8e7 into apache:main Mar 8, 2025
245 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Writing to firebase-tools GCS emulator fails if content-type or cache-control is set

2 participants