Project

General

Profile

Actions

Bug #10660

closed

RGW swift API:To merge earlier uploaded segments x-object-manifest header can be used. but POSTing x-object-manifest doesn't work. It works only during PUT or object creation.

Added by Ahmad Faheem about 9 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Steps to reproduce:

Common steps:
1. dd if=/dev/zero of=test0 bs=1048576 count=1
2. dd if=/dev/zero of=test1 bs=1048576 count=1
3. swift post container
4. swift upload container test0
5. swift upload container test1

Using PUT
6. curl -i https://object.jiocloud.com:80/swift/v1/container/test -X PUT -H "X-Auth-Token: 00d371aa7ee34f7daebc6799c89f6939" -H "x-object-manifest: container/test" -H "content-length: 0"
7. swift stat container test

Account: v1
Container: container
Object: test
Content Type: application/octet-stream
Content Length: 2097152
Last Modified: Wed, 28 Jan 2015 04:56:32 GMT
ETag: df21c8ae6cea683bdd27459511193a24
Accept-Ranges: bytes
Server: Apache/2.4.7 (Ubuntu)
Connection: close

Using POST
6. curl -i https://object.jiocloud.com:80/swift/v1/container/test -X PUT -H "X-Auth-Token: 00d371aa7ee34f7daebc6799c89f6939" -H "content-length: 0"
7. curl -i https://object.jiocloud.com:80/swift/v1/container/test -X POST -H "X-Auth-Token: 00d371aa7ee34f7daebc6799c89f6939" -H "x-object-manifest: container/test"
8. swift stat container test

Account: v1
Container: container
Object: test
Content Type: application/octet-stream
Content Length: 0
Last Modified: Wed, 28 Jan 2015 04:59:03 GMT
ETag: d41d8cd98f00b204e9800998ecf8427e
Accept-Ranges: bytes
Server: Apache/2.4.7 (Ubuntu)
Connection: close

In swift both the methods are working.
ceph version: 0.80.8

Actions #1

Updated by Yehuda Sadeh about 9 years ago

Where does the swift documentation say that POST is supposed to work for this feature?

Actions #2

Updated by J. Eric Ivancich about 4 years ago

  • Status changed from New to Closed

Yehuda's query was never answered.

Actions

Also available in: Atom PDF