Skip to content

Conversation

@marktheunissen
Copy link
Contributor

…etObject requests

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.

Description

Fixes: #20343

How to test this PR?

Mint tests: minio/minio-go#1996

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

writeErrorResponseHeadersOnly(w, toAPIError(ctx, err))
return
}
opts.WantChecksum = checksum
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@klauspost I believe we only need this single line from the snippet you provided on the issue, since we already AddChecksumNoTrailer here: https://github.com/minio/minio/blob/master/cmd/bucket-handlers.go#L1147-L1152

Correct me if I'm wrong, but the mint test in minio/minio-go#1996 passes with this single line change.

Copy link
Contributor

@klauspost klauspost left a comment

Choose a reason for hiding this comment

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

Awesome! The less code the better!

@harshavardhana harshavardhana merged commit d7ef631 into minio:master Sep 2, 2024
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.

ChecksumCRC32 get_object field is not present after uploading via a presigned URL with x-amz-checksum-crc32

3 participants