Project

General

Profile

Actions

Bug #4048

closed

API mismatch between RGW and Swift

Added by Alexandre Marangone about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
% Done:

0%

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

Description

As discussed with Yehuda, when using RadosGW with a delimiter:
curl -H 'x-auth-token: 909e3793e499425fb90364738107da22' http://192.168.0.101/swift/v1/alex_container2?format=json\&limit=1001\&delimiter=/
[{"name":"mydir\/"}]

when using swift with delimiter:
curl -k -H 'x-auth-token: AUTH_tk9457e8b5ab714ffa89e3414deb9014c9' https://192.168.107.92:8080/v1/AUTH_system/test_container?format=json\&limit=1001\&delimiter=/
[{"subdir":"mydir/"}]

The key returned are different, Immediate impact is OpenStack dashboard throwing an exception when parsing a container with non-empty dir inside.

This also happens with XML output:
Swift:

<container name="test_container"><subdir name="mydir/"><name>mydir/</name></subdir></container>
RGW:
<container><object><name>mydir/</name></object></container>

Actions #1

Updated by Ian Colle about 11 years ago

  • Priority changed from Normal to Urgent
Actions #2

Updated by Yehuda Sadeh about 11 years ago

  • Backport set to bobtail
Actions #3

Updated by Ian Colle about 11 years ago

  • Project changed from Ceph to rgw
  • Category deleted (22)
Actions #4

Updated by Ian Colle about 11 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF