Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on missing etag in s3 storage driver #1683

Merged
merged 3 commits into from May 6, 2022

Conversation

RunOrVeith
Copy link
Contributor

@RunOrVeith RunOrVeith commented May 5, 2022

Fix broken blob access

Description

Replaces the required access to the etag key with optional access.
I am not sure what implications this has on other components, but you can at least read public blobs again.
This fixes #1682

Status

  • done, ready for review

Checklist (tick everything that applies)

  • Code linting
  • Documentation (no update required)
  • Tests
  • ICLA (I think I signed this already some time ago)

@Kami
Copy link
Member

Kami commented May 6, 2022

Thanks for reporting and fixing this issue.

Do you happen to know how it affects object uploads? Since, IIRC, we use e-tag returned on upload to verify that checksum matches and that there was no corruption on upload. Or this only affects get requests?

EDIT: I had a better look and it indeed appears it only affects GET object requests so it should be fine (only the hash field will be empty in case etag header is not returned, but that's probably fine).

@asfgit asfgit merged commit 9c6f784 into apache:trunk May 6, 2022
@Kami
Copy link
Member

Kami commented May 6, 2022

Merged into trunk, thanks!

@Kami Kami added this to the v3.6.0 milestone Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google storage sometimes does not send etag
3 participants