Project

General

Profile

Bug #12960

Rados Swift API handles prefix differently than Openstack Swift

Added by Sylvain Baubeau about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/04/2015
Due date:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

If I have a test container with a file a/b/c.

With Openstack Swift, if I run swift list --prefix=a/b/c --delimiter=/ test, I get the ["a/b/c"] array
With Ceph RadosGW, I get an empty array.

I created the following patch : https://github.com/ceph/ceph/pull/5828
The Swift test suite (http://docs.openstack.org/developer/swift/development_guidelines.html#testing-guidelines) does not show any regression.


Related issues

Copied to rgw - Backport #13014: Rados Swift API handles prefix differently than Openstack Swift Resolved 09/04/2015

Associated revisions

Revision 27cf2572 (diff)
Added by Sylvain Baubeau about 3 years ago

rgw: add delimiter to prefix only when path is specified

http://tracker.ceph.com/issues/12960
Fixes: #12960

Signed-off-by: Sylvain Baubeau <>

Revision 3b2affce (diff)
Added by Sylvain Baubeau about 3 years ago

rgw: add delimiter to prefix only when path is specified

http://tracker.ceph.com/issues/12960
Fixes: #12960

Signed-off-by: Sylvain Baubeau <>
(cherry picked from commit 27cf257248ea55f8f4bc7851c3956611828bcae2)

History

#1 Updated by Loic Dachary about 3 years ago

  • Backport set to hammer

#2 Updated by Loic Dachary about 3 years ago

  • Description updated (diff)
  • Assignee set to Stephon Striplin

#3 Updated by Loic Dachary about 3 years ago

  • Status changed from New to Need Review
  • Assignee deleted (Stephon Striplin)

#4 Updated by Loic Dachary about 3 years ago

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

#5 Updated by Loic Dachary about 3 years ago

  • Release deleted (hammer)

#6 Updated by Loic Dachary about 3 years ago

  • Status changed from Need Review to Pending Backport

#7 Updated by Loic Dachary about 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF