Skip to content
New issue

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

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

Already on GitHub? # to your account

Drop checksum headers + Improve error messages #23

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Conversation

hugoghx
Copy link
Contributor

@hugoghx hugoghx commented Oct 1, 2024

No description provided.

Some non-MinIO services that can use this plugin do not support
`x-amz-checksum-algorithm` and/or `x-amz-checksum-sha256`.

Important to note that if a SHA256 checksum still comes through in the
response, the existing code will verify that it matches what we have
locally.
Current `errorToStatus` is not displaying the underlying error if the
status code is 400. Additionally, we are sending the error into this
function twice: Once in the error message and again in the error itself.

This commit changes the way `errorToStatus` works by sending a message
indicating where the error occured and then the actual error as a
different argument. Additionally, it changes `errorToStatus` to always
print the input message and the error regardless of error type.
@hugoghx hugoghx requested review from louisruch and kheina October 1, 2024 14:09
@hugoghx hugoghx self-assigned this Oct 1, 2024
@hugoghx hugoghx merged commit 7d2654e into main Oct 1, 2024
2 checks passed
@hugoghx hugoghx deleted the hugo-no-checksum branch October 1, 2024 14:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants