Bug #8383
closedUpload part of one object passed with incorrect upload id or incorrect object id in S3 API
0%
Description
Description?
Test the case which upload parts of object orderly with radios gateway S3 API. When upload part of object with wrong upload id or wrong object id, the excepted result should fail and give an error report. But it passed, and not give a warn to the end.
Analysis?
It should check the upload id and the object id when upload the object.
Updated by Sage Weil over 9 years ago
- Status changed from New to Need More Info
- Assignee deleted (
Yehuda Sadeh) - Source changed from other to Community (user)
Can you provide more detailed steps to reproduce? ideally, a new test in s3-tests.... :)
Updated by Jingjing Zhao over 9 years ago
Hi,sage,
Sure!
I use S3 API to do this test.
1. Get the upload id by bucketName and object id InitiateMultipartUploadResult initMultiPart = s3ApiCtx.doInitMultipartUpload(bucketName, oid); String uploadId = initMultiPart.getUploadId(); 2. Then I use wrong object id and wrong upload id to upload object s3ApiCtx.doMultiPartUpload(bucketName, oid_error, tmpFile.get(0), 1, uploadId); s3ApiCtx.doMultiPartUpload(bucketName, oid, tmpFile.get(0), 1, uploadId_error);
Two month ago, I thought since the step can be executed that it means there is an error. Now, I realized, it maybe return -1
at s3ApiCtx.doMultiPartUpload, and it should not be a bug.(I didn't check the return value at that time) When this issue http://tracker.ceph.com/issues/8846 resolved, I will install the new version and check the exactly return value.
Sorry for open a bug inappropriately.
Updated by Sage Weil over 9 years ago
- Status changed from Need More Info to Rejected