Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't discard query string for usage queries #1312

Open
wants to merge 1 commit into
base: 2.0
Choose a base branch
from

Conversation

joecaswell
Copy link

The riak_cs_wm_usage module expects parameters to be passed via query string. Using s3curl a request would be made as such:

s3curl.pl --id admin -- -s -x localhost:8080 -v "http://s3.amazonaws.com/riak-cs/usage/T0FMWBBK6-P-LJFYHWBG?b&s=20160505T1200&e=20160505T180000Z"

Currently riak_cs_s3_rewrite:rewrite_path/4 discards the query string for all URIs starting with "/riak-cs", so no results are returned. This PR would include the query string when the URI is "/riak-cs/usage"

The riak_cs_wm_usage module expects parameters to be passed via query string.  Using s3curl a request would be made as such:

```
s3curl.pl --id admin -- -s -x localhost:8080 -v "http://s3.amazonaws.com/riak-cs/usage/T0FMWBBK6-P-LJFYHWBG?b&s=20160505T1200&e=20160505T180000Z"
```

Currently riak_cs_s3_rewrite:rewrite_path/4 discards the query string for all URIs starting with "/riak-cs", so no results are returned.  This PR would include the query string when the URI is "/riak-cs/usage"
@joecaswell joecaswell added the Bug label May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant