Open hectcastro opened 10 years ago
Query Params seems to be ignored by Riak CS but we can still use the complete path in s3curl like this:
$ ./s3curl.pl -id identity "http://riak-cs.target.riak/usage/OD4YKDSYARGTNFXPFPQ2/abj/20140101T000000Z/20140131T235959Z" | python -m json.tool
{
"Access": {
"Errors": [],
"Nodes": []
},
"Storage": {
"Errors": [],
"Samples": [
{
"EndTime": "20140123T162628Z",
"StartTime": "20140123T162627Z",
"kdecherf": {
"Bytes": 10169549,
"Objects": 442
}
}
]
}
}
note: Looks riak_cs_s3_rewrite:rewrite_path/4
should pass a query string on usage request.
There may be two separate issues here:
s3curl
vs.s3cmd
Steps to reproduce
Create a bucket and upload a file:
Flush access and storage statistics:
Try to get user statistics via
s3curl
:Try to get user statistics via
s3cmd
:Upgrade Riak CS in-place to 1.4.4:
Re-upload the same file as before:
Flush access and storage statistics:
Try to get user statistics via
s3curl
:Entry in Riak CS access log after this:
Try to get user statistics via
s3cmd
:Entry in Riak CS access log after this: