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

Adjust testPresignedPostPolicy to ensure that GetObject... #1996

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marktheunissen
Copy link
Contributor

@marktheunissen marktheunissen commented Sep 2, 2024

...returns the correct checksum. Add checksum headers to policy

For the following issue: minio/minio#20343

@marktheunissen marktheunissen changed the title Adjust testPresignedPostPolicy to ensure that GetObject returns the correct checksum. Add checksum headers to policy Adjust testPresignedPostPolicy to ensure that GetObject... Sep 2, 2024
logError(testName, function, args, startTime, "", "PutObject failed", err)
return
}

Copy link
Contributor Author

@marktheunissen marktheunissen Sep 2, 2024

Choose a reason for hiding this comment

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

I think this was just a copy paste mistake, not sure why we were doing a PutObject here, as we are running the PostPolicy presigned request via the http client further down.

Comment on lines +310 to +330
// Needed for S3 compatibility. MinIO ignores the checksum keys in the policy.
// https://github.com/minio/minio/blob/RELEASE.2024-08-29T01-40-52Z/cmd/postpolicyform.go#L60-L65
Copy link
Contributor

Choose a reason for hiding this comment

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

@jiuker You added this in minio/minio#18074

I don't understand why these should be ignored, which seems like a bug.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I spoke to Jiuker and he agrees it is a bug, so I will remove the ignores in a PR to minio/minio

…orrect checksum. Add checksum headers to policy
@marktheunissen
Copy link
Contributor Author

FYI to myself: minio/minio#18074 (comment)

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