upload to swift from cli shows directories

Bug #1231331 reported by Dafna Ron
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

there are some differences between how we see files that are uploaded from horizon and files uploaded from the cli.

if I upload a file from horizon I will just see the file name (i.e upload -> select a dir -> select a file)
if I upload a file from cli, if I specify a directory (i.e /tmp) than horizon will show the entire path
if I upload a file from cli without specifying a directory (i.e cd /tmp swift upload <container> <file>) I see just the file.

I think that there should be consistency between horizon and cli.
also, if you use a linux command like scp for example, the original path is not relevant so I do not think that we should be seeing that in swift as well.

Revision history for this message
Dafna Ron (dron-3) wrote :

also, if we try to remove the directory from horizon:

Error: You do not have permission to delete object: tmp

while cli will give:

[root@nott-vdsa ~(keystone_admin)]# swift delete dafna tmp
Object 'dafna/tmp' not found
[root@nott-vdsa ~(keystone_admin)]# swift list dafna
tmp/ks-script-uLSgyo.log
[root@nott-vdsa ~(keystone_admin)]#

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

Horizon conforms to Swift's API spec; I think your confusion stems from how you use your tools to interact with Swift. The semantics of how Swift deals with "pseudo-folders" and path separators (default "/") are not entirely obvious and I think that's where you're getting tripped up. At present I don't think there's actually a bug in Horizon here.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Dafna Ron (dron-3) wrote :

:) I think that your explanation although technically correct stems from the developer point of view and I try to look at this issue from a user's point of view.
so I will rephrase this bug: horizon is missing swift api ability to upload a directory.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
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.