COPY method fails to handle URL encoding properly

Bug #857673 reported by gholt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
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.

Revision history for this message
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
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to swift (master)

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)
Changed in swift:
status: Fix Committed → Fix Released
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.