stf-storage/stf — Issue #3: Add MOVE method
Author: lestrrat
Created: 2012-02-01 03:35:58+00:00
State: open

Prorposed protocol change:

Request:

MOVE /bucket/object HTTP/1.0
X-STF-Move-Destination: /bucket/new_object_name

Request should have no content.
Move destination MUST be in the same bucket. Inter-bucket moves are not allowed (use DELETE + PUT for that)

Response:

In case of a successful move, HTTP status 204 is returned.
If the original object does not exist, 404 is returned
In case of an error (such as attempt to move objects between buckets) 500 is returned