Added quotes to example echo in swift-temp-url
If the curl command is used exactly as in the help, the ampersand in the signature is interpreted as an operator and the curl command breaks. I am aware of developers who have wasted a lot of time because of this. Change-Id: I6468c9a098b56db8242a2cf2c23b7a4857bd8574
This commit is contained in:
parent
45080a5177
commit
7958638e8f
@ -40,13 +40,13 @@ if __name__ == '__main__':
|
||||
print()
|
||||
print('This can be used to form a URL to give out for the access ')
|
||||
print('allowed. For example:')
|
||||
print(' echo https://swift-cluster.example.com`%s GET 60 '
|
||||
'/v1/AUTH_account/c/o mykey`' % prog)
|
||||
print(' echo \\"https://swift-cluster.example.com`%s GET 60 '
|
||||
'/v1/AUTH_account/c/o mykey`\\"' % prog)
|
||||
print()
|
||||
print('Might output:')
|
||||
print(' https://swift-cluster.example.com/v1/AUTH_account/c/o?'
|
||||
print(' "https://swift-cluster.example.com/v1/AUTH_account/c/o?'
|
||||
'temp_url_sig=34d49efc32fe6e3082e411eeeb85bd8a&'
|
||||
'temp_url_expires=1323482948')
|
||||
'temp_url_expires=1323482948"')
|
||||
exit(1)
|
||||
method, seconds, path, key = argv[1:5]
|
||||
try:
|
||||
|
@ -178,3 +178,8 @@ storage host name. For example, prefix the path with
|
||||
https://swift-cluster.example.com/v1/my_account/container/object
|
||||
?temp_url_sig=5c4cc8886f36a9d0919d708ade98bf0cc71c9e91
|
||||
&temp_url_expires=1374497657
|
||||
|
||||
Note that if the above example is copied exactly, and used in a command
|
||||
shell, then the ampersand is interpreted as an operator and the URL
|
||||
will be truncated. Enclose the URL in quotation marks to avoid this.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user