Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1614565

Summary: jewel: rgw: copying part without http header "x-amz-copy-source-range" will be mistaken for copying object
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Matt Benjamin (redhat) <mbenjamin>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: high Docs Contact:
Priority: low    
Version: 2.5CC: cbodley, ceph-eng-bugs, ceph-qe-bugs, edonnell, kbader, mbenjamin, owasserm, sweil, tchandra, tserlin, vumrao
Target Milestone: z2   
Target Release: 2.5   
Hardware: All   
OS: All   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-05 19:39:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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