If container has sub-folders or file,it can't be deleted from Horizon but allowing me to delete through CLI

Bug #1572629 reported by Praveen Madire
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Won't Fix
Undecided
Unassigned

Bug Description

Steps to reproduce the problem.
1)Create a container through horizon
2)Add sub-floder & upload files to the above container
3)Try to delete container without deleting sub-floders and files,you will see the message on the UI saying unable to delete
4)Now go back to controller node,use swift delete <container name) command to delete the folder created in step 1,you can able to delete the container
It showing different behavior in Horizon & CLI. I shouldn't able to delete the container through CLI if it has sub-folder & files

Revision history for this message
Matthew Oliver (matt-0) wrote :

That is a part of the swiftclient API. So we wont fix that, it purposely go delete objects and then the container.
If you try to hit the swift REST api, say with curl. You wont be able to delete a container if it contains an object.

Changed in swift:
status: New → 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.