Skip to content

Drop checksum headers + Improve error messages#23

Merged
hugoghx merged 2 commits into
mainfrom
hugo-no-checksum
Oct 1, 2024
Merged

Drop checksum headers + Improve error messages#23
hugoghx merged 2 commits into
mainfrom
hugo-no-checksum

Conversation

@hugoghx
Copy link
Copy Markdown
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 kheina and louisruch October 1, 2024 14:09
@hugoghx hugoghx self-assigned this Oct 1, 2024
@hugoghx hugoghx merged commit 7d2654e into main Oct 1, 2024
@hugoghx hugoghx deleted the hugo-no-checksum branch October 1, 2024 14:13
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