Bug #16089
Swift bulk-delete does not allow forward slash before a container
0%
Description
2016-05-31 09:58:46.202813 7fa7097fa700 20 bulk deleting path: /bulk3/testfile
2016-05-31 09:58:46.202819 7fa7097fa700 20 get_system_obj_state: rctx=0x7fa7097f3e50 obj=us-1.rgw.data.root: state=0x7fa70000bdf8 s->prefetch_data=0
2016-05-31 09:58:46.202822 7fa7097fa700 20 cannot find bucket =
2016-05-31 09:58:46.202824 7fa7097fa700 2 req 1080:0.001072:swift:DELETE /swift/v1:bulk_delete:completing
2016-05-31 09:58:46.202923 7fa7097fa700 2 req 1080:0.001170:swift:DELETE /swift/v1:bulk_delete:op status=0
2016-05-31 09:58:46.202934 7fa7097fa700 2 req 1080:0.001181:swift:DELETE /swift/v1:bulk_delete:http status=200
The swift document shows that '/' is supported before a container:
http://docs.openstack.org/developer/swift/middleware.html#bulk-delete
History
#1 Updated by Alyona Kiseleva almost 8 years ago
Hi,
I cannot reproduce this. May be, I miised something? For example:
$ swift -A $host/auth -U $user -K $pass upload cont file
$ swift -A $host/auth -U $user -K $pass upload cont file2
$ swift -A $host/auth -U $user -K $pass upload cont1 file
$ cat tmp
/cont/file
/cont1/file
/cont1
$ curl -i -H "X-Auth-Token: $token" -H "Accept: application/json" -H "Content-Type: text/plain" -X DELETE $host/swift/v1/?bulk-delete --data-binary @tmp
HTTP/1.1 200 OK
X-Trans-Id: tx0000000000000000012cf-00574d8252-1011-default
Content-Type: application/json; charset=utf-8
Content-Length: 99
Date: Tue, 31 May 2016 12:23:47 GMT
{"Number Deleted":3,"Number Not Found":0,"Response Body":"","Response Status":"200 OK","Errors":[]}