Request with "path" query does not return all the appropriate objects

Bug #892390 reported by Scott Thompson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned

Bug Description

I have a container which holds objects with the following names:

complex/but/not/impossible
complex/but/not/impossible/
simple/
simpleThree///
simpleToo//

Each of these is a simple object of zero bytes with a content type of "application/octet-stream".

If I make a request to retrieve the list of objects in the container I receive the expected list containing all the objects above.

If I add a "path" query to the request where the value of the path is the empty string, I only receive one of those objects, the one named "simple/".

Since there are no objects of type "application/directory" to be found, I would expect that a path query with the root path "" would return me a list of all the objects in the container.

I'm using the Swift "Diabolo Release" as released on September 22. (Swift 1.4.3?)

Scott Thompson (easco)
description: updated
description: updated
Revision history for this message
Juan J. Martínez (jjmartinez) wrote :

I submitted a patch to the docs in Bexar because it was confusing, and current docs doesn't help too much either :)

http://docs.openstack.org/bexar/openstack-object-storage/developer/content/ch03s02.html#d5e514

Just in case it helps, let's get following files:

directory
directory/file
another/different-file

... beingfile and different-file text/plain and directory application/directory (a directory marker).

The JSON output of delimiter="/" and prefix="":

[
{'subdir': 'another/'},
{'bytes': 0,
   'content_type': 'application/directory',
   'hash': 'cfcd208495d565ef66e7dff9f98764da',
   'last_modified': '2012-02-02T13:11:17.417520',
   'name': 'directory'},
{'subdir': 'directory/'}
]

That's equivalent to empty path, that uses / as delimiter.

Changed in swift:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.