OpenStack Object Storage (Swift)

COPY method fails to handle URL encoding properly

Reported by gholt on 2011-09-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Low
Unassigned

Bug Description

When issuing a COPY command, such as:

curl -X COPY -H X-Auth-Token:token -H Destination:container/newobj "https://host/v1/account/container/deal%252Fdel041fbbb281a7687762ac011e4c8df%252Fflash.png"

The COPY command fails to encode (or reencode in the background, or whatever) the source object name, and then results in a 404 Not Found response.

John Dickinson (notmyname) wrote :

line 1231 in proxy server (as of now). where the header is set in the COPY method

Changed in swift:
milestone: none → 1.4.4
importance: Undecided → Low
Changed in swift:
status: New → In Progress

Reviewed: https://review.openstack.org/946
Committed: http://github.com/openstack/swift/commit/742897856fd9d3969a0a6b38318424d9e6707441
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 742897856fd9d3969a0a6b38318424d9e6707441
Author: John Dickinson <email address hidden>
Date: Wed Oct 19 09:21:14 2011 -0500

    requote the source when doing a COPY

    fixes lp bug 857673
    also fixes similar bug in post-as-copy code
    adds test

    Change-Id: I7a1984506bba28afe2b7ba46998d7306c058fd5c

Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2011-11-18
Changed in swift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers