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

Add requestPayment and lifecycle stub callbacks [JIRA: RCS-272] #1223

Merged
merged 2 commits into from
Aug 27, 2015

Conversation

shino
Copy link
Contributor

@shino shino commented Aug 25, 2015

Before this PR,

  • GET Bucket Lifecycle returns 403 Access Denied because lifecycle is not
    included in subresources definition of Riak CS.
  • GET Bucket RequestPayment returns 404 Not Found because no dispatch rule for it.

In order to response a little more understandable response, this PR changes them as:

  • For requestPayment, just reply XML with "BucketOwner" after authn/authz.
  • For lifecycle, just reply error XML of "NotImplemented" without anthentication.

To be truthful, motivation for these changes were from s3cmd error for s3cmd info <bucket> ㊙️

In order to response a little more understandable response.  For
requestPayment, just reply XML with "BucketOwner" after authn/authz.
For lifecycle, just reply error XML of "NotImplemented" without
anthentication.
@@ -71,9 +71,13 @@ base_resources() ->
{["buckets", bucket, "objects"], riak_cs_wm_common, props(riak_cs_wm_objects)},
{["buckets", bucket, "delete"], riak_cs_wm_common, props(riak_cs_wm_bucket_delete)},
{["buckets", bucket, "acl"], riak_cs_wm_common, props(riak_cs_wm_bucket_acl)},
%% Just stub, no dynamic contents
{["buckets", bucket, "location"], riak_cs_wm_common, props(riak_cs_wm_bucket_location)},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location is no more a stub because it's return value is configurable via configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, reasonable :) I did so just because location does not have meaning anywhere else in riak cs (except a possibility of v4 auth.)

@kuenishi kuenishi added this to the 2.1.0 milestone Aug 27, 2015
@shino
Copy link
Contributor Author

shino commented Aug 27, 2015

Updated.

borshop added a commit that referenced this pull request Aug 27, 2015
…cycle-stub

Add requestPayment and lifecycle stub callbacks

Reviewed-by: kuenishi
@shino
Copy link
Contributor Author

shino commented Aug 27, 2015

@borshop merge

@borshop borshop merged commit 4f88fe8 into develop Aug 27, 2015
@kuenishi kuenishi deleted the refactor/request-payment-and-lifecycle-stub branch August 27, 2015 08:37
@Basho-JIRA Basho-JIRA changed the title Add requestPayment and lifecycle stub callbacks Add requestPayment and lifecycle stub callbacks [JIRA: RCS-272] Aug 27, 2015
@Basho-JIRA
Copy link

Release note: Add 501 stub for Bucket lifecycle and simple stub for Bucket requestPayment

_[posted via JIRA by Kota Uenishi]_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants