Horizon cannot delete buckets with prefix PRE/

Bug #2023926 reported by Paulo Rodriguez
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Undecided
Unassigned

Bug Description

Steps:

Using an cli to upload files to a S3 Container on openstack swift using the following command:

 aws --endpoint http://url s3 cp file s3://mybucket//file

The Swift will assume the file has a prefix '/' and will list it as PRE/:

aws --endpoint http://url s3 ls s3://mybucket/

                           PRE /
2023-05-11 13:35:21 10000000 file10MB

This file can be delete through cli using a path like s3://mybucket//file.

On Horizon, if will list a folder with no name on the table and will not delete.

Tags: aws-cli prefix
Revision history for this message
Akihiro Motoki (amotoki) wrote :

horizon does supportr Swift API rather than S3 API.
What happens if you use the Swift API?

Revision history for this message
Paulo Rodriguez (paulo-f-rodriguez) wrote :

I need to use aws cli. I am using s3api middleware. And swift seems to respect that by letting me to put the // on the path...
Thus, I believe horizon should follow.
It that is not the case, I will have to create a middleware to prevent the usage of //.

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.