-
-
Save pccowboy/7662e3ebae0f2257acd9405c1f480272 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trying to prevent puts that overwrite by using the If-None-Match header, but not working as I expected... | |
[root@9ba10395 (ops) ~]$ mls -li /zettit_ops/stor/docs_test/117/24 | |
-rwxr-xr-x 1 zettit_ops 4 Jan 25 11:08 test | |
-rwxr-xr-x 1 zettit_ops 6 Jan 25 11:37 test2 | |
-rwxr-xr-x 1 zettit_ops 8 Jan 25 11:42 test3 | |
[root@9ba10395 (ops) ~]$ | |
[root@9ba10395 (ops) ~]$ | |
[root@9ba10395 (ops) ~]$ # This one should fail, a version of the resource is present | |
[root@9ba10395 (ops) ~]$ mput -i --header='If-None-Match: *' /zettit_ops/stor/docs_test/117/24/test3 | |
mput: Cannot write because HTTP precondition not met. | |
[root@9ba10395 (ops) ~]$ | |
[root@9ba10395 (ops) ~]$ | |
[root@9ba10395 (ops) ~]$ # This one I expected to complete successfully, but it fails | |
[root@9ba10395 (ops) ~]$ mput -i --header='If-None-Match: *' /zettit_ops/stor/docs_test/117/24/test4 | |
mput: Cannot write because HTTP precondition not met. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And here is the same result in a session on my instance in joyent's us-east-1 datacenter: