object name with slashes can not be listed

Bug #1009880 reported by Edward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Undecided
Unassigned

Bug Description

If we use swift command tool to upload a file with path separator - slashes, you will never be able to get these objects listed in the container GUI. But you can get it by using swift list command.

swift upload container1 /etc/issue
swift list container1

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

In swift's docs (http://docs.openstack.org/trunk/openstack-object-storage/developer/content/pseudo-hierarchical-folders-directories.html), it actually says that you must create 0-byte objects with type "application/directory" if you intend to use the pseudo-folder feature:

"To take advantage of this feature, the directory marker objects must also be created to represent the appropriate directories. The following additional objects need to be created. A good convention would be to create these as zero- or one-byte files with a Content-Type of application/directory."

So that's how we implemented things in Horizon; to expect those pseudo-folder objects and use those to allow traversal down into a structure. Unfortunately that doesn't play so nice with the *other* method of handling pseudo-folders which is basically to not use the "delimiter" argument on the API and just show everything, slashes and all.

At present I'm not aware of a good compromise between the two, so we erred on the side of the recommended practice in swift's docs. Suggestions are welcome.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

We could make the FOLDER_DELIMETER configurable so that the pseudo-folder feature in swift could be optionally disabled if desired... https://github.com/openstack/horizon/blob/master/horizon/api/swift.py#L33

Changed in horizon:
importance: Medium → Wishlist
milestone: none → grizzly-1
status: Triaged → Confirmed
Changed in horizon:
milestone: grizzly-1 → grizzly-2
Changed in horizon:
assignee: Gabriel Hurley (gabriel-hurley) → nobody
milestone: grizzly-2 → grizzly-3
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :
Changed in horizon:
importance: Wishlist → Undecided
milestone: grizzly-3 → none
status: Confirmed → Won't Fix
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.