Actions
Bug #53181
closedrgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist
% Done:
100%
Source:
Tags:
multipart copy backport_processed
Backport:
octopus pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
coding: utf-8
from boto3.session import Session
import boto3
import logging
boto3.set_stream_logger('', logging.DEBUG)
access_key = ''
secret_key = ''
host = "s3.amazonaws.com"
url = "http://s3.amazonaws.com"
session = Session(access_key, secret_key)
config = boto3.session.Config(connect_timeout=30000, read_timeout=30000, retries={'max_attempts': 0}, signature_version="s3")
s3_client = session.client('s3', endpoint_url=url, config=config)
dst_bucket = "destbucket"
dst_obj = 'destobject'
src_bucket = "srcbucketnotexist"
src_obj = 'srcobjectnotexist'
mpu = s3_client.create_multipart_upload(Bucket=dst_bucket, Key=dst_obj)
res = s3_client.upload_part_copy(Bucket=dst_bucket, CopySource=src_bucket+"/"+src_obj,
Key=dst_obj,
PartNumber=1, UploadId=mpu["UploadId"])
when src bucket not exist, it should return -ERR_NO_SUCH_BUCKET rather than -ENOENT
when src object not exist, it should return -ENOENT rather than -ACCESS
Updated by joke lee over 2 years ago
Updated by Casey Bodley over 2 years ago
- Status changed from New to Fix Under Review
- Tags set to multipart copy
- Backport set to octopus pacific
- Pull request ID set to 43817
Updated by Casey Bodley over 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot over 2 years ago
- Copied to Backport #53657: octopus: rgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist added
Updated by Backport Bot over 2 years ago
- Copied to Backport #53658: pacific: rgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist added
Updated by Cory Snyder over 2 years ago
I'm not sure that this backport is relevant since RGWPutObj::init_processing was never backported from https://tracker.ceph.com/issues/42825. Can you confirm how we should handle backports for this one, Casey?
Updated by Backport Bot over 1 year ago
- Tags changed from multipart copy to multipart copy backport_processed
Updated by Konstantin Shalygin 6 months ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
Actions