object put with X-Amz-Copy-Source does not generate xml response

Bug #1378060 reported by Ondergetekende
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Swift3
Incomplete
Undecided
Unassigned

Bug Description

When an object copy is posted, an empty response is returned. This is caused at line

https://github.com/stackforge/swift3/blob/master/swift3/controllers/obj.py#L58

The request gets checked against "HTTP_X_COPY_FROM", which is the swift header. However, the request in that function is the original AWS request, so the check should be against HTTP_X_AMZ_COPY_SOURCE instead.

I'll cook up a patch asap, though I'm struggling with how to do proper unit testing.

Ondergetekende (kvdveer)
description: updated
Changed in swift3:
status: New → Confirmed
Revision history for this message
Ondergetekende (kvdveer) wrote :
Changed in swift3:
assignee: nobody → Ondergetekende (kvdveer)
Changed in swift3:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on swift3 (master)

Change abandoned by Kota Tsuyuzaki (<email address hidden>) on branch: master
Review: https://review.openstack.org/126403
Reason: No activities so abandon this for now.

Revision history for this message
Kota Tsuyuzaki (tsuyuzaki-kota) wrote :

We need to confirm this bug still in Swift3.

Changed in swift3:
assignee: Ondergetekende (kvdveer) → nobody
status: In Progress → Confirmed
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.