Comment 1 for bug 1607519

Revision history for this message
Mohit Motiani (mohit-motiani) wrote :

I was able to reproduce it.
Warning message needs to update in this case. Also, a valid looking URI should not be generated if object or container does not exist. Instead, tempURL should be discarded.

#in below case, object does not exist. still it generates a valid URI.
ubuntu@saio-experiment:~/swift$ swift-temp-url GET 3600 /v1/AUTH_test/test_container/file4.txt secrete_key_b
/v1/AUTH_test/test_container/file4.txt?temp_url_sig=a7b362cbb3a5c3482b1cc26ee84a1741de5f3c9d&temp_url_expires=1469742082

#in below case, container and object does not exist. still it generates a valid URI.
ubuntu@saio-experiment:~/swift$ swift-temp-url GET 3600 /v1/AUTH_test/test_container1/file4.txt secrete_key_b
/v1/AUTH_test/test_container1/file4.txt?temp_url_sig=6cffe72513448d2de0b31700fb71427b727e3628&temp_url_expires=1469742091