Bug 1614565 - jewel: rgw: copying part without http header "x-amz-copy-source-range" will be mistaken for copying object
Summary: jewel: rgw: copying part without http header "x-amz-copy-source-range" will b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 2.5
Hardware: All
OS: All
low
high
Target Milestone: z2
: 2.5
Assignee: Matt Benjamin (redhat)
QA Contact: Tejas
URL:
Whiteboard:
: 1562079 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-09 23:17 UTC by Matt Benjamin (redhat)
Modified: 2021-06-10 16:19 UTC (History)
11 users (show)

Fixed In Version: RHEL: ceph-10.2.10-36.el7cp Ubuntu: ceph_10.2.10-31redhat1
Doc Type: Bug Fix
Doc Text:
Previously, incorrect header-processing logic in the Ceph Object Gateways S3 interface caused multi-part copy-part requests lacking the "x-amz-copy-source-range" header to be processed as whole-object copy requests. This caused, requests of this type to fail with the "404, NotFound" error when performed with AWSv4 request signing. With this update, the header processing logic has been corrected and S3 multi-part copy-part requests can be executed as expected by S3 clients.
Clone Of:
Environment:
Last Closed: 2018-09-05 19:39:32 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 22904 0 None None None 2018-08-09 23:17:44 UTC
Red Hat Product Errata RHBA-2018:2651 0 None None None 2018-09-05 19:39:53 UTC

Description Matt Benjamin (redhat) 2018-08-09 23:17:44 UTC
Description of problem:

When use copy part without http header "x-amz-copy-source-range",rgw will use copy_obj to handle it. But according to aws s3 doc https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadUploadPartCopy.html:

    "This request header is not required when copying an entire source object."

So, "x-amz-copy-source-range" is a optional header, and it can't be a mark to distinguish "copy part" from "copy object".

The issue can be reproduced with Jewel 10.2.10.

Comment 7 tserlin 2018-08-16 21:19:07 UTC
*** Bug 1562079 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2018-09-05 19:39:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2651


Note You need to log in before you can comment on or make changes to this bug.