Swift write ACL can't work

asked 2014-10-10 22:59:02 -0500

yummy-bian gravatar image

My swift branch is icehouse.

I have created a read and write acl container successfully.

curl -i http://www.example.com/v1/AUTH_XXX/bucket_read_write -X PUT -H "X-Auth-Token: $token" -H "X-Container-Read: .r:*,.rlistings" -H "X-Container-Write: AUTH_XXX"

Then, I put a file into it with the follow command(omitting token because of write acl privilege), but received "401 Unauthorized".

curl -i http://www.example.com/v1/AUTH_XXX/bucket_read_write/test.log -X PUT -T /root/test.log -H "Content-Type: text/html"

Anybody know how to solve it?

edit retag flag offensive close merge delete