OpenStack Swift Horizon: Empty folder name listing

A small gotcha that I encountered with OpenStack Swift is the OpenStack Swift Horizon UI failing to list an object that was put into the container.

See the screenshot below. There is an entry in the object listing, but the folder name is empty.

Mysterious no name folder listed.

Attempting to delete the empty folder via the UI results in an error. Deleting is possible only via the Swift client CLI.

No name folder cannot be deleted.

The problem was a straightforward one: the object key contained a leading forward slash. While the swift CLI client sanitises your input when uploading an object, if you use the HTTP API, that doesn’t seem to happen. In my case, I was using Apache jClouds with the following library call:

The mistake was specifying the object path as

rather than

.

Share your thoughts