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

fix: Sets uploadable files limit to 5 GiB for PutObject and UploadPar… #981

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

Conversation

niksis02
Copy link
Contributor

Fixes #961

Sets an upper limit of 5 GiB (as specified in the AWS documentation) on incoming data for large data actions such as PutObject and UploadPart.
Since wrapBodyReader is used to combine the request body reader with other io.Reader instances, a new io.Reader is layered on top to enforce the data size limit.

@versity-github
Copy link
Collaborator

This won't automatically run in continuous integration without approval. A member of the Versity organization must allow it.

return actionHandler(s, testName, func(s3client *s3.Client, bucket string) error {
obj := "my-obj"

_, err := putObjectWithData(5*1024*1024*1024+1, &s3.PutObjectInput{ // more than 5 Gib
Copy link
Member

Choose a reason for hiding this comment

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

I think this is too large for github actions to handle. Maybe we need a separate test group for larger tests that we cant run automated in actions?

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.

[Bug] - UploadPart max size limit
3 participants