Bug #20278
openValidation of container paths in RGW / Swift API.
0%
Description
After working with curl to manually create some containers(buckets) via the RGW/Swift API, I happened to accidentally create a couple called "/container1/photo.jpg" and "/container1/photo.jpg2"
I believe that swift is not designed to work like this, as a swift container should be "/container/path/to/file". A container name should not incorporate a "/". This is echo'ed by the fact that its very difficult to delete as the swift client replies with.
{{{
:~# swift delete /container1/photo.jpg2 --insecure
WARNING: / in container name; you might have meant 'container1 photo.jpg2' instead of 'container1/photo.jpg2'.
}}}
This makes for some interesting redirecting in the OpenStack Horizon interface too.
It seems like the API should validate the POST calls to reject this incorrect syntax.