Project

General

Profile

Actions

Bug #16824

open

Swift API - DLO manifest cannot be retrieved with 'multipart-manifest=get' query

Added by Mark Kirkwood almost 8 years ago.

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

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Suppose I have uploaded a 2G DLO to Radosgw (0.94.6):

$ swift stat con0 file-2G 
       Account: v1
     Container: con0
        Object: file-2G
  Content Type: binary/octet-stream
Content Length: 2147483648
 Last Modified: Tue, 26 Jul 2016 22:58:32 GMT
          ETag: d41d8cd98f00b204e9800998ecf8427e
      Manifest: con0_segments/file-2G/1469572941.659759/2147483648/1073741824/
    Meta Mtime: 1469572941.659759
 Accept-Ranges: bytes
        Server: Apache/2.4.7 (Ubuntu)
   X-Timestamp: 1469573912.00000
    X-Trans-Id: tx000000000000000000597-005797edb2-31f82f5-default

Now I want to get the manifest, and use some python-swiftclient code:

import swiftclient

conn = swiftclient.Connection(...)

obj = conn.get_object(args.container,
                      args.object,
                      query_string='multipart-manifest=get')
print len(obj[0]), len(obj[1])

I'm expecting the length of the element obj1 to be zero (DLO manfiest content is trivial), however the output of the above program is:

11 2147483648

Oh - we are getting the entire object content, not the maniftest.

No data to display

Actions

Also available in: Atom PDF