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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing a multipart upload without uploading any data does not error out #212

Open
idlira opened this issue Nov 15, 2022 · 0 comments
Open

Comments

@idlira
Copy link

idlira commented Nov 15, 2022

I agree, an issue expecting an exception is not common, as most issues should solve exceptions instead! 馃槈

This issue is just to align a behavior which happens with the real S3:

A multipart upload is started, nothing gets uploaded (no eTags can be submitted to close the multipart upload). Attempting to close the multipart upload should fail, but instead a 0-byte object is created.

Although 0-byte objects are allowed, the upload should fails as the real S3 does, with an exception like this:
The XML you provided was not well-formed or did not validate against our published schema (Service: Amazon S3; Status Code: 400; Error Code: MalformedXML; Request ID: ZSWW9F6ZJJ5RFN5P; S3 Extended Request ID: HFsBclc4smPOwDb8aiChFQ3OazbacyVgSR4WLUXiFsoa+riQ3Zu+Zi4hN9cbPUZc4bnclyG8fok=; Proxy: null) (com.amazonaws.services.s3.model.AmazonS3Exception)

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

No branches or pull requests

1 participant