From b35f3c90bde8a7ccb50440bda5800cbb8274a5a1 Mon Sep 17 00:00:00 2001 From: Kota Tsuyuzaki Date: Fri, 8 Jan 2016 01:29:11 -0800 Subject: [PATCH] Add note COPY with conditional headers Swift now supports Range header for COPY (or PUT with X-Copy-From) to make a partial copied object. This patch adds the note to show it obviously supported in Swift community. Change-Id: I6bf28f0932c90e7b305cd61aabce4ed028ae691e Partial-Bug: #1532126 --- swift/proxy/controllers/obj.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/swift/proxy/controllers/obj.py b/swift/proxy/controllers/obj.py index e5910d312e..1a0d1f187a 100644 --- a/swift/proxy/controllers/obj.py +++ b/swift/proxy/controllers/obj.py @@ -416,6 +416,11 @@ class BaseObjectController(Controller): This method handles copying objects based on values set in the headers 'X-Copy-From' and 'X-Copy-From-Account' + Note that if the incomming request has some conditional headers (e.g. + 'Range', 'If-Match'), *source* object will be evaluated for these + headers. i.e. if PUT with both 'X-Copy-From' and 'Range', Swift will + make a partial copy as a new object. + This method was added as part of the refactoring of the PUT method and the functionality is expected to be moved to middleware """