Project

General

Profile

Actions

Bug #8383

closed

Upload part of one object passed with incorrect upload id or incorrect object id in S3 API

Added by Jingjing Zhao almost 10 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.

Actions #1

Updated by Ian Colle almost 10 years ago

  • Assignee set to Yehuda Sadeh
Actions #2

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.... :)

Actions #3

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.

Actions #4

Updated by Sage Weil over 9 years ago

  • Status changed from Need More Info to Rejected
Actions

Also available in: Atom PDF