Add feature to leverage COPY from API

Bug #1474939 reported by David Moreau Simard
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Undecided
Unassigned

Bug Description

Swift API supports copying an object: http://developer.openstack.org/api-ref-objectstorage-v1.html#copyObject

There does not seem to be a way to do that from within Swiftclient (either as a library or through CLI).
It would be great to have this feature available inside the client so that we do not have to rely on a pure http request (e.g, curl).

Changed in python-swiftclient:
assignee: nobody → Sirisha Guduru (guduru-sirisha)
Changed in python-swiftclient:
status: New → In Progress
Revision history for this message
Sirisha Guduru (guduru-sirisha) wrote :

Since the curl is available, it will be easy to implement client code for the same.

So the idea here is to copy an object from one container to the other or replace an existing object in two containers where the data in the two objects is different.

Will propose a code change for the same.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-swiftclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/309892

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-swiftclient (master)

Change abandoned by Sirisha Guduru (<email address hidden>) on branch: master
Review: https://review.openstack.org/309892

Revision history for this message
Sirisha Guduru (guduru-sirisha) wrote :

The code changes for this bug is already in progress. Details can be found here:

https://review.openstack.org/280200

Changed in python-swiftclient:
assignee: Sirisha Guduru (guduru-sirisha) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-swiftclient (master)

Reviewed: https://review.openstack.org/280200
Committed: https://git.openstack.org/cgit/openstack/python-swiftclient/commit/?id=4a2465fb12ff7287b62b6941fb8ae43e100adc25
Submitter: Jenkins
Branch: master

commit 4a2465fb12ff7287b62b6941fb8ae43e100adc25
Author: Marek Kaleta <email address hidden>
Date: Mon Feb 15 12:14:17 2016 +0100

    Add copy object method

    Implement copy object method in swiftclient Connection, Service and CLI.

    Although COPY functionality can be accomplished with 'X-Copy-From'
    header in PUT request, using copy is more convenient especially when
    using copy for updating object metadata non-destructively.

    Closes-Bug: 1474939
    Change-Id: I1338ac411f418f4adb3d06753d044a484a7f32a4

Changed in python-swiftclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-swiftclient 3.1.0

This issue was fixed in the openstack/python-swiftclient 3.1.0 release.

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.