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

feat(storage): Make PutObject checksum verification optional #17

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

hugoghx
Copy link
Contributor

@hugoghx hugoghx commented Jun 10, 2024

Some 3rd party services the MinIO SDK can connect with do not return a checksum whenever a file is uploaded. Before this change, this would lead to an error, rendering it impossible to operate with those 3rd party services. With this change, we'll continue to verify checksums if they come through, however we won't error out if they don't and the PutObject call is successful.

Note: There are no new tests with this change as this behaviour is not unit-testable at the moment. I suggest we could have end-to-end tests for this.

Some 3rd party services the MinIO SDK can connect
with do not return a checksum whenever a file is
uploaded. Before this change, this would lead to
an error, rendering it impossible to operate with
those 3rd party services. With this change, we'll
continue to verify checksums if they come through,
however we won't error out if they don't and the
PutObject call is successful.

Note: There are no new tests with this change as
this behaviour is not unit-testeable at the
moment. I suggest we could have end-to-end tests
for this.
@hugoghx hugoghx requested review from louisruch and kheina June 10, 2024 12:11
@hugoghx hugoghx self-assigned this Jun 10, 2024
@hugoghx hugoghx changed the title feat(storage): Make checksum verification optional feat(storage): Make PutObject checksum verification optional Jun 10, 2024
Copy link
Contributor

@kheina kheina left a comment

Choose a reason for hiding this comment

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

LGTM

@hugoghx hugoghx merged commit caa6c4e into main Jun 10, 2024
2 checks passed
@hugoghx hugoghx deleted the hugo-optional-checksum branch June 10, 2024 15:19
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